feat: add MiniMax as alternative LLM provider (M2.7 default)#517
feat: add MiniMax as alternative LLM provider (M2.7 default)#517octo-patch wants to merge 2 commits into
Conversation
Add MiniMax (MiniMax-M2.5, MiniMax-M2.5-highspeed) as an alternative AI provider for text completions. MiniMax uses an OpenAI-compatible API and is configured via the MINIMAX_API_KEY environment variable. When set, MiniMax takes priority over OpenAI. - Add lib/ai-provider.ts with provider factory, temperature clamping, and API key detection - Update generate route to use provider-agnostic model selection - Add unit tests (11 tests) and integration tests (3 tests) - Update .env.example and README.md with MiniMax configuration Co-Authored-By: Octopus <liyuan851277048@icloud.com>
|
Someone is attempting to deploy a commit to the Elegance Team on Vercel. A member of the Team first needs to authorize it. |
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to model list - Set MiniMax-M2.7 as default model - Keep all previous models as alternatives - Update related tests
Summary
@ai-sdk/openaiOpenAI-compatible adapterMiniMax-M2.7(latest flagship with enhanced reasoning and coding)MiniMax-M2.7-highspeed,MiniMax-M2.5,MiniMax-M2.5-highspeedChanges
apps/web/lib/ai-provider.ts: Provider factory with MiniMax priority, temperature clampingapps/web/app/api/generate/route.ts: Updated API key checkapps/web/.env.example: MiniMax configuration docsREADME.md: Updated setup instructions and tech stackapps/web/__tests__/ai-provider.test.ts: 11 unit testsapps/web/__tests__/ai-provider.integration.test.ts: 4 integration tests (M2.7, M2.7-highspeed, M2.5 legacy, streaming)Why
MiniMax-M2.7 is the latest flagship model with enhanced reasoning and coding capabilities. The OpenAI-compatible API allows reuse of existing
@ai-sdk/openaiwithout new dependencies.Testing