feat: add MiniMax as 4th LLM provider (M2.7, 204K context)#18
Open
octo-patch wants to merge 1 commit intoY-Research-SBU:mainfrom
Open
feat: add MiniMax as 4th LLM provider (M2.7, 204K context)#18octo-patch wants to merge 1 commit intoY-Research-SBU:mainfrom
octo-patch wants to merge 1 commit intoY-Research-SBU:mainfrom
Conversation
Add MiniMax (M2.7/M2.7-highspeed, 204K context) as a first-class LLM provider alongside OpenAI, Anthropic, and Qwen. MiniMax uses an OpenAI-compatible API via ChatOpenAI with custom base URL, so no new dependencies are required. Changes: - default_config.py: Add minimax_api_key config field - trading_graph.py: Add MiniMax to _get_api_key(), _create_llm(), update_api_key() with temperature clamping (0.01-1.0) - web_interface.py: Add MiniMax to provider validation, API key management, and status endpoints - templates/demo_new.html: Add MiniMax to provider dropdown and API key input group in web UI - README.md, README_CN.md: Add MiniMax env var docs and acknowledgement - tests/: 19 unit tests + 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, Anthropic, and Qwen. MiniMax offers the M2.7 model with 204K context window and an OpenAI-compatible API, making integration seamless via
ChatOpenAIwith a custom base URL — no new dependencies required.Changes
default_config.py: Addminimax_api_keyconfig fieldtrading_graph.py: Add MiniMax to_get_api_key(),_create_llm()(with temperature clamping to 0.01–1.0), andupdate_api_key()web_interface.py: Add MiniMax to provider validation, API key management, key status, and error handling endpointstemplates/demo_new.html: Add MiniMax to LLM provider dropdown and API key input group in the web UIREADME.md/README_CN.md: Add MiniMax environment variable setup and acknowledgementtests/: 19 unit tests + 3 integration tests covering config, factory, temperature clamping, API key lifecycle, provider switching, and web endpointsMiniMax Models
MiniMax-M2.7MiniMax-M2.7-highspeedUsage
Or via config:
Test Plan
Notes
ChatOpenAIclass withopenai_api_base="https://api.minimax.io/v1"— zero new dependencies