From 1f1462a5f623059545dea6e82c6b7f903b324b86 Mon Sep 17 00:00:00 2001 From: Octopus Date: Wed, 18 Mar 2026 11:15:20 -0500 Subject: [PATCH] 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 --- .env.example | 4 ++-- hindsight-api-slim/hindsight_api/config.py | 2 +- .../hindsight_api/engine/providers/openai_compatible_llm.py | 4 ++-- hindsight-docs/docs/developer/models.mdx | 6 +++--- .../versioned_docs/version-0.4/developer/models.mdx | 6 +++--- skills/hindsight-docs/references/developer/models.md | 6 +++--- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.env.example b/.env.example index ad5fadc3..5a538486 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/hindsight-api-slim/hindsight_api/config.py b/hindsight-api-slim/hindsight_api/config.py index 612b9a67..a1eb5722 100644 --- a/hindsight-api-slim/hindsight_api/config.py +++ b/hindsight-api-slim/hindsight_api/config.py @@ -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", diff --git a/hindsight-api-slim/hindsight_api/engine/providers/openai_compatible_llm.py b/hindsight-api-slim/hindsight_api/engine/providers/openai_compatible_llm.py index 3df35d2b..7cd46930 100644 --- a/hindsight-api-slim/hindsight_api/engine/providers/openai_compatible_llm.py +++ b/hindsight-api-slim/hindsight_api/engine/providers/openai_compatible_llm.py @@ -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__( diff --git a/hindsight-docs/docs/developer/models.mdx b/hindsight-docs/docs/developer/models.mdx index 22bb8c95..076f4520 100644 --- a/hindsight-docs/docs/developer/models.mdx +++ b/hindsight-docs/docs/developer/models.mdx @@ -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 diff --git a/hindsight-docs/versioned_docs/version-0.4/developer/models.mdx b/hindsight-docs/versioned_docs/version-0.4/developer/models.mdx index 22bb8c95..076f4520 100644 --- a/hindsight-docs/versioned_docs/version-0.4/developer/models.mdx +++ b/hindsight-docs/versioned_docs/version-0.4/developer/models.mdx @@ -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 diff --git a/skills/hindsight-docs/references/developer/models.md b/skills/hindsight-docs/references/developer/models.md index 8680de45..cc124052 100644 --- a/skills/hindsight-docs/references/developer/models.md +++ b/skills/hindsight-docs/references/developer/models.md @@ -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