feat: add MiniMax as LLM provider#17
Open
octo-patch wants to merge 1 commit into
Open
Conversation
Add MiniMax (https://www.minimax.io) as a first-class LLM provider alongside OpenAI, Groq, OpenRouter, Gemini, Anthropic, and Ollama. MiniMax offers the MiniMax-M2.7 and MiniMax-M2.7-highspeed models with 204K context windows via an OpenAI-compatible API. Changes: - Add "minimax" provider branch in get_llm() factory using ChatOpenAI with base_url=https://api.minimax.io/v1 and temperature=0.7 - Update config.example.yaml with MiniMax example configuration - Update README.md and README_CN.md with MiniMax provider docs and API key setup - Add 18 tests (12 unit + 3 config + 3 integration) in tests/test_minimax_provider.py Usage: Set MINIMAX_API_KEY in .env, then configure config.yaml: model: name: "MiniMax-M2.7" provider: "minimax"
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, Groq, OpenRouter, Gemini, Anthropic, and Ollama.
MiniMax offers the MiniMax-M2.7 and MiniMax-M2.7-highspeed models with 204K context windows via an OpenAI-compatible API, making it a drop-in alternative for crypto trading analysis.
Changes
src/llm/__init__.py: Addminimaxprovider branch inget_llm()factory usingChatOpenAIwithbase_url=https://api.minimax.io/v1andtemperature=0.7(MiniMax requires temperature in (0, 1])config.example.yaml: Add MiniMax configuration example and list minimax in provider commentsREADME.md: Add MiniMax to supported providers list, addMINIMAX_API_KEYto env setupREADME_CN.md: Same updates for Chinese documentationtests/test_minimax_provider.py: 18 tests (12 unit + 3 config validation + 3 integration)Usage
Test Plan
config.yamlwithprovider: minimaxand run backtestAll 18 tests pass.