feat: add MiniMax as first-class LLM provider#112
Open
octo-patch wants to merge 1 commit into79E:masterfrom
Open
feat: add MiniMax as first-class LLM provider#112octo-patch wants to merge 1 commit into79E:masterfrom
octo-patch wants to merge 1 commit into79E:masterfrom
Conversation
Add MiniMax (M2.7 + M2.7-highspeed) as a supported LLM provider alongside OpenAI, with automatic temperature clamping (0-1), penalty parameter removal, GPTTokens fallback for billing, premium model classification, key validation, and frontend model presets. Changes: - server/utils/modelUtils.ts: Model classification, temp clamping, option sanitization - server/helpers/chat/index.ts: Apply clampOptions before API calls - server/routers/apis/chat.ts: GPTTokens fallback, premium billing/VIP routing - server/helpers/keyUsage/index.ts: MiniMax key validation endpoint - src/store/config/slice.ts: MiniMax models in frontend defaults - src/components/ConfigModal/index.tsx: Generic model selector label - README.md: MiniMax configuration guide and model documentation - vitest.config.ts + tests/: 31 unit + integration tests Co-Authored-By: octopus <octopus@github.com>
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 first-class LLM provider alongside OpenAI. MiniMax offers OpenAI-compatible API endpoints with models featuring up to 1M token context windows.
Changes
server/utils/modelUtils.ts): Model classification, temperature clamping (0-1), penalty parameter removal, GPTTokens fallbackserver/helpers/chat/index.ts): Automatic option clamping before API callsserver/routers/apis/chat.ts): Safe token counting, premium billing routing, VIP access gatingserver/helpers/keyUsage/index.ts): MiniMax API key health checksrc/store/config/slice.ts): MiniMax-M2.7 and M2.7-highspeed in dropdownsrc/components/ConfigModal/index.tsx): Generic model selector labelMiniMax Admin Configuration
https://api.minimax.ioMiniMax-M2.7,MiniMax-M2.7-highspeedminimax-chatTest plan