feat: add MiniMax as first-class LLM provider#1850
Open
octo-patch wants to merge 3 commits intobytedance:mainfrom
Open
feat: add MiniMax as first-class LLM provider#1850octo-patch wants to merge 3 commits intobytedance:mainfrom
octo-patch wants to merge 3 commits intobytedance:mainfrom
Conversation
added 2 commits
March 15, 2026 22:22
- Add MiniMax handler with OpenAI-compatible API integration - Register MiniMax-M2.5 and MiniMax-M2.5-highspeed models (204K context) - Add temperature validation (MiniMax requires range (0.0, 1.0]) - Add MINIMAX_API_KEY environment variable support - Add unit test for MiniMax model resolution - Update model-provider docs (EN/ZH) with MiniMax configuration
Add integration tests, llm-client tests, and usage example for MiniMax.
✅ Deploy Preview for tarko ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for agent-tars-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
PR Bot seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to model list - Set MiniMax-M2.7 as default model - Keep all previous models (M2.5, M2.5-highspeed) as alternatives - Update example, docs (en/zh), and 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 in the Tarko LLM client, enabling users to seamlessly use MiniMax M2.5 and M2.5-highspeed models (204K context window) via the OpenAI-compatible API.
Changes
llm-client/src/handlers/minimax.ts): Dedicated MiniMax handler with temperature validation (must be in (0.0, 1.0]) and auto-default to 1.0llm-client/src/models.ts): MiniMax-M2.5 and MiniMax-M2.5-highspeed with streaming, images, and tool call supportllm-client/src/handlers/utils.ts): Wire MiniMax handler into the provider factoryllm-client/src/chat/index.ts): MiniMaxModel type and provider map entryagent/examples/model-providers/minimax.ts): Usage example following existing patternsUsage
MiniMax API Notes
https://api.minimax.io/v1(OpenAI-compatible)Test plan
pnpm testin model-provider)