feat: add MiniMax as a new LLM provider#6723
Open
octo-patch wants to merge 1 commit intoChatGPTNextWeb:mainfrom
Open
feat: add MiniMax as a new LLM provider#6723octo-patch wants to merge 1 commit intoChatGPTNextWeb:mainfrom
octo-patch wants to merge 1 commit intoChatGPTNextWeb:mainfrom
Conversation
Add MiniMax (https://api.minimax.io) as a new LLM provider with support for MiniMax-M1, M2, and M2.5 series models. MiniMax provides an OpenAI-compatible API with up to 204K context window. Changes include: - New client platform implementation (app/client/platforms/minimax.ts) - New server-side API handler (app/api/minimax.ts) - Provider constants, enums, and model definitions - Server config for MINIMAX_API_KEY and MINIMAX_URL env vars - Access store with validation and API key management - Settings UI with endpoint and API key configuration - Locale strings for English and Chinese - Route handler registration - README documentation for both EN and CN Note: MiniMax API requires temperature in (0.0, 1.0], handled automatically by clamping zero values to 0.01.
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 new LLM provider for NextChat. MiniMax offers OpenAI-compatible API with powerful models including the MiniMax-M2.5 series with up to 204K context window.
Changes
app/api/minimax.ts(server-side API handler),app/client/platforms/minimax.ts(client platform)MINIMAX_BASE_URL,MiniMaxobject,ServiceProvider.MiniMax,ModelProvider.MiniMax,ApiPath.MiniMax, and model definitions (MiniMax-M1/M2/M2.5 series)MINIMAX_API_KEYandMINIMAX_URLenvironment variablesminimaxUrl,minimaxApiKeystate andisValidMiniMax()validationMiniMaxApiclass registration and API key resolutionSpecial handling
Supported Models
MiniMax-M1,MiniMax-M1-80kMiniMax-M2,MiniMax-M2-80kMiniMax-M2.5,MiniMax-M2.5-80kTest Plan
tsc --noEmit)