feat: add MiniMax as a direct LLM provider#1457
Open
octo-patch wants to merge 1 commit intovercel:mainfrom
Open
feat: add MiniMax as a direct LLM provider#1457octo-patch wants to merge 1 commit intovercel:mainfrom
octo-patch wants to merge 1 commit intovercel:mainfrom
Conversation
- Add MiniMax-M2.5 and MiniMax-M2.5-highspeed models to the model selector - Route MiniMax models directly via @ai-sdk/openai (OpenAI-compatible API) instead of through the AI Gateway, enabling users to use their own API key - Add MINIMAX_API_KEY environment variable support - Add MiniMax provider group in the model selector UI - Add integration tests for MiniMax API - Update README to mention MiniMax support
Contributor
|
@octo-patch is attempting to deploy a commit to the Zeb Hermann's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add MiniMax as a direct LLM provider alongside the AI Gateway, giving users access to MiniMax-M2.5 and MiniMax-M2.5-highspeed models with a 204K context window.
Changes
lib/ai/models.ts: Add MiniMax-M2.5 and MiniMax-M2.5-highspeed to the curated model listlib/ai/providers.ts: Route MiniMax models directly via@ai-sdk/openai(OpenAI-compatible API) instead of through the AI Gatewaycomponents/multimodal-input.tsx: Add "MiniMax" to provider display names in the model selector UIpackage.json: Add@ai-sdk/openaidependency for direct provider access.env.example: AddMINIMAX_API_KEYenvironment variableREADME.md: Document MiniMax provider supporttests/: Add MiniMax integration tests and update model selector test regexHow It Works
MiniMax models bypass the AI Gateway and connect directly to the MiniMax API (
https://api.minimax.io/v1) using the OpenAI-compatible interface. Users set theMINIMAX_API_KEYenvironment variable to enable MiniMax models.API Documentation