Repository navigation
fix(providers): switch MiniMax API-key provider to anthropic-messages - #15297
Merged
Merged
Conversation
gumadeiras
force-pushed
the
fix/minimax-api-type-15275
branch
from
February 13, 2026 19:43
83c0b2b to
7eb45a4
Compare
gumadeiras
force-pushed
the
fix/minimax-api-type-15275
branch
from
February 13, 2026 19:43
7eb45a4 to
0e7f84a
Compare
Member
GwonHyeok
pushed a commit
to learners-superpumped/openclaw
that referenced
this pull request
Feb 15, 2026
…openclaw#15297) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 0e7f84a Co-authored-by: lailoo <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
mf-yang
added a commit
to mf-yang/openclaw-cn
that referenced
this pull request
Feb 15, 2026
2 of 3 tasks
lovewanwan
pushed a commit
to lovewanwan/openclaw
that referenced
this pull request
Apr 28, 2026
…openclaw#15297) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 0e7f84a Co-authored-by: lailoo <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
ogt-redknie
pushed a commit
to ogt-redknie/OPENX
that referenced
this pull request
May 2, 2026
…openclaw#15297) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 0e7f84a Co-authored-by: lailoo <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
May 9, 2026
…openclaw#15297) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 0e7f84a Co-authored-by: lailoo <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
lhfer
pushed a commit
to lhfer/openclaw
that referenced
this pull request
Oct 11, 2026
…openclaw#15297) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 0e7f84a Co-authored-by: lailoo <[email protected]> Co-authored-by: gumadeiras <[email protected]> Reviewed-by: @gumadeiras
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
buildMinimaxProvider()inmodels-config.providers.tsdefaults toapi: "openai-completions"atbaseUrl: "https://api.minimax.chat/v1", but MiniMax M2.5 (and all current MiniMax models) requiresapi: "anthropic-messages"athttps://api.minimax.io/anthropic.This causes
invalid role: developer (2013)errors when users configure MiniMax via API key without going through the onboarding wizard.Root Cause
buildMinimaxProvider()(used byresolveImplicitProvidersfor API-key auth) had:api: "openai-completions"❌baseUrl: "https://api.minimax.chat/v1"❌While
buildMinimaxPortalProvider()(used for OAuth) andapplyMinimaxApiProviderConfig()(onboarding wizard) both correctly use:api: "anthropic-messages"✅baseUrl: "https://api.minimax.io/anthropic"✅Fix
Switch
buildMinimaxProvider()to useMINIMAX_PORTAL_BASE_URL(https://api.minimax.io/anthropic) andapi: "anthropic-messages", aligning it with the portal provider and onboarding config. Remove the now-unusedMINIMAX_API_BASE_URLconstant.Test
Before (on main)
After (on fix branch)
All 46 provider + onboard-auth tests pass.
Closes #15275
Greptile Overview
Greptile Summary
This PR aligns the implicit MiniMax API-key provider created by
resolveImplicitProviderswith the already-correct OAuth/onboarding paths by switching MiniMax to use the Anthropic-compatible endpoint.Concretely,
buildMinimaxProvider()insrc/agents/models-config.providers.tsnow usesapi: "anthropic-messages"and thehttps://api.minimax.io/anthropicbase URL (viaMINIMAX_PORTAL_BASE_URL), and removes the now-unusedMINIMAX_API_BASE_URLconstant. A new Vitest regression test (src/agents/models-config.providers.minimax.test.ts) asserts that whenMINIMAX_API_KEYis set, the implicit provider configuration uses the correct API and baseUrl, preventing the reportedinvalid role: developer (2013)errors.No merge-blocking issues found in the changes.
Confidence Score: 5/5
Last reviewed commit: 5f16219