Repository navigation
feat(provider): add MiniMax with Flash defaults and preserved tool history - #2120
Open
octo-patch wants to merge 2 commits into
Open
octo-patch wants to merge 2 commits into
octo-patch wants to merge 2 commits into
Conversation
Add MiniMax as an OpenAI-compatible LLM provider with its own provider class (MiniMaxLLM), registered under the new LLMType.MINIMAX enum value. - Add MINIMAX to LLMType and register MiniMaxLLM in the provider registry. - MiniMaxLLM subclasses OpenAILLM and enforces the MiniMax temperature constraint (0.0, 1.0] on every request. - Add MiniMax-M3 (1M context) and MiniMax-M2.7 (204800 context) pricing and context windows to token_counter. - Document both the global (api.minimax.io) and China (api.minimaxi.com) endpoints in README and config2.example.yaml. - Add a provider unit test.
This branch had an error being deployed
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.
Reason: Add MiniMax as a first-class text provider with MiniMax-M3.1-Flash as the real default, while preserving explicit model and endpoint configuration.
Features
MiniMax-M3.1-Flashandhttps://api.minimax.io/v1.Feature Docs
Updated README and
config/config2.example.yaml. The local flat cost estimate does not account for cache discounts, larger-input M3 tiers, or priority pricing. Model reference: https://platform.minimax.io/docs/guides/models-intro.md.Influence
Defaults apply only to
api_type: minimax. The existing Chat Completions transport is retained. Requests leave thinking and effort at API defaults unless effort is explicitly passed through the tool request API. No paid inference was performed.Result
httpx.MockTransport: 45 HTTP requests covering default/saved/legacy/custom models, global/China/custom URLs, nonstreaming/streaming/tool calls, multimodal content, reasoning history, explicit effort, and unchanged generic defaults.git diff --checkpassed for the follow-up. Cached Black 25.9.0 passed on the changed configuration/provider and new test. Its token-counter formatting failure also reproduces on unchanged upstream11cdf466d042aece04fc6cfd13b28e1a70341b1f; no unrelated reformat was made.google.generativeaiin the cached environment. Full pinned tests/pre-commit remain unverified; heavy dependency setup is paused by available disk capacity.Other
This updates the existing PR branch with a normal follow-up commit. No published history was rewritten.