feat(provider): add MiniMax-M2.7 (Global + CN)#2363
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 27e22c3141
ℹ️ 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".
| [ChatModelProviders.MINIMAX]: { | ||
| modelName: modelName, | ||
| apiKey: await getDecryptedKey(customModel.apiKey || settings.minimaxApiKey), | ||
| configuration: { | ||
| baseURL: customModel.baseUrl || ProviderInfo[ChatModelProviders.MINIMAX].host, |
There was a problem hiding this comment.
Add MiniMax to sampling parameter allow-lists
This new MiniMax branch wires the provider through ChatOpenAI, but getProviderSpecificParams() is not updated to treat MINIMAX as supporting topP/frequencyPenalty, so any user-configured sampling overrides are silently dropped for MiniMax models while they still work for similar OpenAI-compatible providers like SiliconFlow and DeepSeek. This causes unexpected generation behavior whenever users tune those fields on a MiniMax custom model.
Useful? React with 👍 / 👎.
27e22c3 to
d9d074d
Compare
d9d074d to
8d1eb87
Compare
|
Thanks for the contribution! We're planning to move provider integrations to a unified gateway approach soon, which may make individual provider PRs unnecessary. Putting this on hold until that direction settles. Will revisit then. |
Adds MiniMax as a built-in OpenAI-compatible provider with
MiniMax-M2.7selectable from the model picker. Mirrors the SiliconFlow pattern.Two regional providers since URLs and API keys differ:
api.minimax.io, key from platform.minimax.ioapi.minimaxi.com, key from platform.minimaxi.comformat,lint,test(1904/1904) all pass.