feat: add MiniMax as a first-class AI provider (M2.7 default)#61
feat: add MiniMax as a first-class AI provider (M2.7 default)#61octo-patch wants to merge 2 commits intoTraderAlice:masterfrom
Conversation
Add MiniMax (https://www.minimax.io) support via the Vercel AI SDK's OpenAI-compatible adapter. MiniMax offers MiniMax-M2.5 (204K context) and MiniMax-M2.5-highspeed models through an OpenAI-compatible API. Changes: - model-factory.ts: add minimax provider case using @ai-sdk/openai with compatibility mode and chat completions endpoint - config.ts: add minimax to apiKeys Zod schema - config.ts (web routes): expose minimax API key status - types.ts (UI): add minimax to ApiKeys type - AIProviderPage.tsx: add MiniMax to provider list with model presets - README.md: mention MiniMax in AI Provider and api-keys docs Tested with both MiniMax-M2.5 and MiniMax-M2.5-highspeed models. All 766 existing tests continue to pass.
22e116b to
8ad0645
Compare
|
Hi @octo-patch, thanks for the contribution! We appreciate the effort. However, due to security considerations, we're unable to directly accept external PRs at this time. That said, MiniMax support is something we're thinking about. Currently there are two possible approaches we're considering:
We haven't decided yet how to best surface this in the frontend for quick switching between providers. Once we've figured that out, we'll close this PR and include your name in the commit as the original proposer. Thanks again for your interest in the project! |
|
Thanks for the response, @luokerenx4! Completely understand the security considerations. Great to hear that MiniMax support is on the roadmap — happy to close this PR if you'd prefer to handle it internally. Let me know if there's anything else I can help with! |
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to model list - Set MiniMax-M2.7 as default model (first in list) - Keep all previous models as alternatives
Summary
Add MiniMax as a first-class AI provider via Vercel AI SDK OpenAI-compatible adapter, with M2.7 as default model.
Changes
@ai-sdk/openai)https://api.minimax.io/v1Why
MiniMax-M2.7 is the latest flagship model with enhanced reasoning and coding capabilities.
Testing