feat: upgrade MiniMax default model from M2.5 to M2.7 (#606)
* feat: upgrade MiniMax default model from M2.5 to M2.7 MiniMax has released MiniMax-M2.7, their latest model with a 1M context window (up from 204K). This updates the default model across config, docs, and examples. M2.5 remains fully compatible for users who prefer it. - Update PROVIDER_DEFAULT_MODELS to MiniMax-M2.7 - Update .env.example and documentation references - Add test_minimax_provider.py with M2.7 and backward compat tests * chore: remove test file per review feedback --------- Co-authored-by: PR Bot <pr-bot@minimaxi.com>
This commit is contained in:
parent
0727f2d069
commit
1f1462a5f6
6 changed files with 14 additions and 14 deletions
|
|
@ -20,10 +20,10 @@ HINDSIGHT_API_LLM_BASE_URL=https://api.openai.com/v1
|
|||
# HINDSIGHT_API_LLM_VERTEXAI_REGION=us-central1
|
||||
# HINDSIGHT_API_LLM_VERTEXAI_SERVICE_ACCOUNT_KEY=/path/to/service-account-key.json # Optional, uses ADC if not set
|
||||
|
||||
# Example: MiniMax configuration (204K context window)
|
||||
# Example: MiniMax configuration (1M context window)
|
||||
# HINDSIGHT_API_LLM_PROVIDER=minimax
|
||||
# HINDSIGHT_API_LLM_API_KEY=your-minimax-api-key
|
||||
# HINDSIGHT_API_LLM_MODEL=MiniMax-M2.5
|
||||
# HINDSIGHT_API_LLM_MODEL=MiniMax-M2.7
|
||||
|
||||
# Example: LM Studio local configuration (Qwen 2.5 32B recommended)
|
||||
# HINDSIGHT_API_LLM_PROVIDER=lmstudio
|
||||
|
|
|
|||
|
|
@ -356,7 +356,7 @@ PROVIDER_DEFAULT_MODELS = {
|
|||
"anthropic": "claude-haiku-4-5-20251001",
|
||||
"gemini": "gemini-2.5-flash",
|
||||
"groq": "openai/gpt-oss-120b",
|
||||
"minimax": "MiniMax-M2.5",
|
||||
"minimax": "MiniMax-M2.7",
|
||||
"ollama": "gemma3:12b",
|
||||
"lmstudio": "local-model",
|
||||
"vertexai": "google/gemini-2.5-flash-lite",
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ This provider handles all OpenAI API-compatible models including:
|
|||
- Groq: Fast inference with seed control and service tiers
|
||||
- Ollama: Local models with native streaming API support
|
||||
- LMStudio: Local models with OpenAI-compatible API
|
||||
- MiniMax: MiniMax-M2.5 models with 204K context window
|
||||
- MiniMax: MiniMax-M2.7 models with 1M context window
|
||||
|
||||
Features:
|
||||
- Reasoning models with extended thinking (o1, o3, GPT-5 families)
|
||||
|
|
@ -48,7 +48,7 @@ class OpenAICompatibleLLM(LLMInterface):
|
|||
- Groq: Fast inference with seed control and service tiers
|
||||
- Ollama: Local models with native streaming API for better structured output
|
||||
- LMStudio: Local models with OpenAI-compatible API
|
||||
- MiniMax: MiniMax-M2.5 models via OpenAI-compatible API (https://api.minimax.io/v1)
|
||||
- MiniMax: MiniMax-M2.7 models via OpenAI-compatible API (https://api.minimax.io/v1)
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ Each provider has a recommended default model that's used when `HINDSIGHT_API_LL
|
|||
| `anthropic` | `claude-haiku-4-5-20251001` |
|
||||
| `gemini` | `gemini-2.5-flash` |
|
||||
| `groq` | `openai/gpt-oss-120b` |
|
||||
| `minimax` | `MiniMax-M2.5` |
|
||||
| `minimax` | `MiniMax-M2.7` |
|
||||
| `ollama` | `gemma3:12b` |
|
||||
| `lmstudio` | `local-model` |
|
||||
| `vertexai` | `gemini-2.0-flash-001` |
|
||||
|
|
@ -149,10 +149,10 @@ export HINDSIGHT_API_LLM_PROVIDER=lmstudio
|
|||
export HINDSIGHT_API_LLM_BASE_URL=http://localhost:1234/v1
|
||||
export HINDSIGHT_API_LLM_MODEL=your-local-model
|
||||
|
||||
# MiniMax (204K context window)
|
||||
# MiniMax (1M context window)
|
||||
export HINDSIGHT_API_LLM_PROVIDER=minimax
|
||||
export HINDSIGHT_API_LLM_API_KEY=your-minimax-api-key
|
||||
export HINDSIGHT_API_LLM_MODEL=MiniMax-M2.5
|
||||
export HINDSIGHT_API_LLM_MODEL=MiniMax-M2.7
|
||||
|
||||
# Vertex AI (Google Cloud)
|
||||
export HINDSIGHT_API_LLM_PROVIDER=vertexai
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ Each provider has a recommended default model that's used when `HINDSIGHT_API_LL
|
|||
| `anthropic` | `claude-haiku-4-5-20251001` |
|
||||
| `gemini` | `gemini-2.5-flash` |
|
||||
| `groq` | `openai/gpt-oss-120b` |
|
||||
| `minimax` | `MiniMax-M2.5` |
|
||||
| `minimax` | `MiniMax-M2.7` |
|
||||
| `ollama` | `gemma3:12b` |
|
||||
| `lmstudio` | `local-model` |
|
||||
| `vertexai` | `gemini-2.0-flash-001` |
|
||||
|
|
@ -149,10 +149,10 @@ export HINDSIGHT_API_LLM_PROVIDER=lmstudio
|
|||
export HINDSIGHT_API_LLM_BASE_URL=http://localhost:1234/v1
|
||||
export HINDSIGHT_API_LLM_MODEL=your-local-model
|
||||
|
||||
# MiniMax (204K context window)
|
||||
# MiniMax (1M context window)
|
||||
export HINDSIGHT_API_LLM_PROVIDER=minimax
|
||||
export HINDSIGHT_API_LLM_API_KEY=your-minimax-api-key
|
||||
export HINDSIGHT_API_LLM_MODEL=MiniMax-M2.5
|
||||
export HINDSIGHT_API_LLM_MODEL=MiniMax-M2.7
|
||||
|
||||
# Vertex AI (Google Cloud)
|
||||
export HINDSIGHT_API_LLM_PROVIDER=vertexai
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ Each provider has a recommended default model that's used when `HINDSIGHT_API_LL
|
|||
| `anthropic` | `claude-haiku-4-5-20251001` |
|
||||
| `gemini` | `gemini-2.5-flash` |
|
||||
| `groq` | `openai/gpt-oss-120b` |
|
||||
| `minimax` | `MiniMax-M2.5` |
|
||||
| `minimax` | `MiniMax-M2.7` |
|
||||
| `ollama` | `gemma3:12b` |
|
||||
| `lmstudio` | `local-model` |
|
||||
| `vertexai` | `gemini-2.0-flash-001` |
|
||||
|
|
@ -146,10 +146,10 @@ export HINDSIGHT_API_LLM_PROVIDER=lmstudio
|
|||
export HINDSIGHT_API_LLM_BASE_URL=http://localhost:1234/v1
|
||||
export HINDSIGHT_API_LLM_MODEL=your-local-model
|
||||
|
||||
# MiniMax (204K context window)
|
||||
# MiniMax (1M context window)
|
||||
export HINDSIGHT_API_LLM_PROVIDER=minimax
|
||||
export HINDSIGHT_API_LLM_API_KEY=your-minimax-api-key
|
||||
export HINDSIGHT_API_LLM_MODEL=MiniMax-M2.5
|
||||
export HINDSIGHT_API_LLM_MODEL=MiniMax-M2.7
|
||||
|
||||
# Vertex AI (Google Cloud)
|
||||
export HINDSIGHT_API_LLM_PROVIDER=vertexai
|
||||
|
|
|
|||
Loading…
Reference in a new issue