feat(provider): add minimax_cn provider for Chinese endpoint (minimaxi.com)#2721
Closed
soh-tetsu wants to merge 1 commit intoantinomyhq:mainfrom
Closed
feat(provider): add minimax_cn provider for Chinese endpoint (minimaxi.com)#2721soh-tetsu wants to merge 1 commit intoantinomyhq:mainfrom
soh-tetsu wants to merge 1 commit intoantinomyhq:mainfrom
Conversation
…i.com) The existing `minimax` provider points to `api.minimax.io` (international). MiniMax also operates a separate Chinese endpoint at `api.minimaxi.com` which requires its own provider entry. Using the `anthropic_compatible` generic provider with ANTHROPIC_URL set to `https://api.minimaxi.com/anthropic/v1` fails because Forge attempts to discover models via `GET {base_url}/models`, but MiniMax's CN endpoint does not implement that endpoint (returns 404). This adds a dedicated `minimax_cn` provider with a hardcoded model list, bypassing the live `/models` fetch entirely. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Contributor
|
duplicate #2701 |
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
The existing
minimaxprovider points toapi.minimax.io(international endpoint). MiniMax also operates a separate Chinese endpoint atapi.minimaxi.comwhich requires its own provider entry.Problem
Using the generic
anthropic_compatibleprovider withANTHROPIC_URL=https://api.minimaxi.com/anthropic/v1fails at activation:Forge calls
GET {base_url}/modelsto discover available models, but MiniMax's CN endpoint does not implement that endpoint.Fix
Add a dedicated
minimax_cnprovider with a hardcoded model list, bypassing the live/modelsfetch entirely — the same approach used byminimax(international).Models included:
MiniMax-M2.7,MiniMax-M2.7-highspeed,MiniMax-M2.5,MiniMax-M2.5-highspeed,MiniMax-M2.1,MiniMax-M2.1-highspeed,MiniMax-M2Usage
forge provider login # select minimax_cn → enter MINIMAX_API_KEY