Add MiniMax as first-class LLM provider (M2.7 + M2.7-highspeed, MINIMAX_API_KEY auto-detection, temp clamping)#42
Open
octo-patch wants to merge 1 commit into
Conversation
- config.py: MINIMAX_API_KEY auto-detection sets llm_api_key, base_url (https://api.minimax.io/v1), and default model (MiniMax-M2.7) when no explicit LLM_API_KEY is present - model_client.py: _is_minimax() URL detector; _get_effective_temperature() clamps temperature to 0.01 for MiniMax when set to 0; exposes llm_is_minimax flag in get_current_settings() - README.md / README_CN.md: MiniMax configuration section with env-var and config-file examples, model table - tests/test_minimax_provider.py: 19 unit + 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
This PR adds MiniMax as a first-class LLM provider for
readmex.Changes
src/readmex/config.pyMINIMAX_API_KEYenvironment variable support: when set (andLLM_API_KEYis not set), it automatically configures the LLM provider with MiniMax defaults:https://api.minimax.io/v1MiniMax-M2.7LLM_BASE_URL,LLM_MODEL_NAME) still take precedencesrc/readmex/utils/model_client.py_is_minimax(base_url)— detectsminimax.io/minimax.chatendpoints_get_effective_temperature()— clampstemperatureto> 0.0for MiniMax (the API rejectstemperature=0)llm_is_minimaxtoget_current_settings()return dictREADME.md/README_CN.mdtests/test_minimax_provider.py(19 tests, all passing)Quick start
Available MiniMax models
MiniMax-M2.7MiniMax-M2.7-highspeedMiniMax-M2.5MiniMax-M2.5-highspeed