Add MiniMax regional API presets - #78
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1c3a18f8dd
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| label: "MiniMax Global (Anthropic)", | ||
| description: "MiniMax Global API preset using the Anthropic-compatible protocol.", | ||
| type: "anthropic", | ||
| base_url: "https://api.minimax.io/anthropic", |
There was a problem hiding this comment.
Route MiniMax Anthropic model discovery through /v1
When users choose either MiniMax Anthropic preset and click Test or force-refresh models, the routes call buildModelsUrl(), which currently concatenates the preset base with /models; with this base that becomes https://api.minimax.io/anthropic/models instead of MiniMax's Anthropic-compatible model-list endpoint under /anthropic/v1/models. Generation still works because the runner inserts /v1/messages, but model discovery/test fails for the new Anthropic presets unless the stored base includes /v1 internally or buildModelsUrl() adds it for Anthropic bases.
Useful? React with 👍 / 👎.
Reason: Add direct MiniMax API presets for current models and regional endpoints.
Changes:
Checks:
git diff --check origin/main...HEAD