feat: add MiniMax as first-class LLM provider#121
Open
octo-patch wants to merge 1 commit intoNarcooo:masterfrom
Open
feat: add MiniMax as first-class LLM provider#121octo-patch wants to merge 1 commit intoNarcooo:masterfrom
octo-patch wants to merge 1 commit intoNarcooo:masterfrom
Conversation
Add MiniMax (MiniMax-M2.7, MiniMax-M2.7-highspeed) as a built-in provider alongside OpenAI and Anthropic. MiniMax uses OpenAI-compatible API at api.minimax.io/v1 with automatic temperature clamping to (0, 1]. Changes: - Add "minimax" to provider enum in LLMConfigSchema and AgentLLMOverrideSchema - Handle minimax routing in createLLMClient() with default base URL - Clamp temperature in both chatCompletion() and chatWithTools() for minimax - Update CLI config commands (set-global, init) with minimax provider option - Update .env.example with MiniMax configuration example - Update README (zh/en/ja) with MiniMax quick setup docs - Add 17 unit tests and 3 integration tests
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 and Anthropic.
MiniMax offers OpenAI-compatible API with powerful models:
MiniMax-M2.7— latest model, 204K context windowMiniMax-M2.7-highspeed— optimized for speed, 204K context windowChanges
"minimax"toLLMConfigSchemaandAgentLLMOverrideSchemaminimaxincreateLLMClient()— uses OpenAI SDK internally with MiniMax default base URLchatCompletion()andchatWithTools()config set-globalandinitwith minimax provider option.env.exampleQuick setup
Files changed (11 files, ~474 additions)
packages/core/src/models/project.tspackages/core/src/llm/provider.tspackages/core/src/utils/config-loader.tspackages/cli/src/commands/config.tspackages/cli/src/commands/init.ts.env.exampleREADME.md/README.en.md/README.ja.mdpackages/core/src/__tests__/minimax-provider.test.tspackages/core/src/__tests__/minimax-integration.test.tsTest plan
inkos config set-global --provider minimax --base-url https://api.minimax.io/v1 --api-key <key> --model MiniMax-M2.7inkos doctorconnectivity check with MiniMax