Repository navigation
fix(minimax): prefer M3.1 Flash through LiteLLM chat adapter - #9
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
This branch has not been 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: The optional MiniMax template still recommends M2.7 alongside M3 and uses an outdated provider declaration. MiniMax now documents a native Responses endpoint, while this template intentionally keeps its tested LiteLLM upstream hop on Chat Completions so Codex Responses requests use LiteLLM's verified translation path.
This updates the commented examples to MiniMax-M3.1-Flash first and MiniMax-M3 second, uses chat-mode provider declarations for this LiteLLM route, and permits Flash's explicit reasoning_effort values through LiteLLM. The template documents Flash's always-on thinking and unsupported fields. Existing active providers, custom aliases, saved legacy model IDs, and the MiniMax image-generation skill remain unchanged.
Validation:
python -m unittest discover -s tests -v: all 6 tests pass againstlitellm[proxy]==1.106.0. Real Router calls reach mocked HTTPX transport, with socket connections and DNS blocked. Coverage includes streaming Responses translation, both regions, all five Flash effort values, saved/custom IDs, and media/tool payload preservation.ruff check tests/test_minimax_litellm.py,ruff format --check tests/test_minimax_litellm.py, andgit diff --checkpass.Compatibility and security: Codex retains its Responses wire format to the local proxy; only the MiniMax upstream declaration changes to chat. The new tests pin LiteLLM 1.106.0, and other versions should be rechecked. No credential or permission defaults change. Merge selected template entries into an existing local config to retain custom and legacy aliases.
References: