Skip to content

feat(provider): add minimax_cn provider for Chinese endpoint (minimaxi.com)#2721

Closed
soh-tetsu wants to merge 1 commit intoantinomyhq:mainfrom
soh-tetsu:feat/add-minimax-cn-provider
Closed

feat(provider): add minimax_cn provider for Chinese endpoint (minimaxi.com)#2721
soh-tetsu wants to merge 1 commit intoantinomyhq:mainfrom
soh-tetsu:feat/add-minimax-cn-provider

Conversation

@soh-tetsu
Copy link
Copy Markdown

Summary

The existing minimax provider points to api.minimax.io (international endpoint). MiniMax also operates a separate Chinese endpoint at api.minimaxi.com which requires its own provider entry.

Problem

Using the generic anthropic_compatible provider with ANTHROPIC_URL=https://api.minimaxi.com/anthropic/v1 fails at activation:

[00:06:52] AnthropicCompatible is now the default provider
[00:06:52] ERROR: Failed to fetch models from Anthropic provider
    Caused by: Failed to fetch models
    Caused by: GET https://api.minimaxi.com/anthropic/v1/models
    Caused by: 404 GET https://api.minimaxi.com/anthropic/v1/models

Forge calls GET {base_url}/models to discover available models, but MiniMax's CN endpoint does not implement that endpoint.

Fix

Add a dedicated minimax_cn provider with a hardcoded model list, bypassing the live /models fetch entirely — the same approach used by minimax (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-M2

Usage

forge provider login
# select minimax_cn → enter MINIMAX_API_KEY

…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>
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@amitksingh1490
Copy link
Copy Markdown
Contributor

duplicate #2701

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants