From f2980105bc29460b381d936a32d92931e08d30ba Mon Sep 17 00:00:00 2001 From: octo-patch Date: Tue, 2 Jun 2026 06:23:52 +0800 Subject: [PATCH] feat: upgrade MiniMax default model to M3 - Set MiniMax-M3 as the default model in the configuration example - Update the available models list to put M3 first while keeping M2.7 and M2.7-highspeed for backward compatibility - Drop M2.5 / M2.5-highspeed from the documented model list since they are superseded by the M2.7 / M3 generations - Update test fixtures and assertions in test_minimax_client.py to use MiniMax-M3 as the default test model --- docs/configuration.md | 4 ++-- tests/test_minimax_client.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 121e638c..3e4dafab 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -99,14 +99,14 @@ Set `AZURE_OPENAI_API_KEY` and `AZURE_OPENAI_ENDPOINT` in your `.env`. The `mode { "ai": { "provider": "minimax", - "model": "MiniMax-M2.7", + "model": "MiniMax-M3", "api_key_env": "MINIMAX_API_KEY", "throttle_sec": 0 } } ``` -Available models: `MiniMax-M2.7`, `MiniMax-M2.7-highspeed`, `MiniMax-M2.5`, `MiniMax-M2.5-highspeed` +Available models: `MiniMax-M3`, `MiniMax-M2.7`, `MiniMax-M2.7-highspeed` **Aliyun DashScope** (OpenAI-compatible): diff --git a/tests/test_minimax_client.py b/tests/test_minimax_client.py index 8039bf32..8ea4d6cc 100644 --- a/tests/test_minimax_client.py +++ b/tests/test_minimax_client.py @@ -15,7 +15,7 @@ def _make_config(**overrides) -> AIConfig: defaults = { "provider": AIProvider.MINIMAX, - "model": "MiniMax-M2.7", + "model": "MiniMax-M3", "api_key_env": "MINIMAX_API_KEY", "temperature": 0.3, "max_tokens": 4096, @@ -28,7 +28,7 @@ class TestOpenAIClientInit: def test_creates_instance_with_valid_config(self, monkeypatch): monkeypatch.setenv("MINIMAX_API_KEY", "test-key") client = OpenAIClient(_make_config()) - assert client.model == "MiniMax-M2.7" + assert client.model == "MiniMax-M3" assert client.max_tokens == 4096 assert client.provider == "minimax" @@ -100,7 +100,7 @@ def test_basic_completion(self, monkeypatch): assert result == '{"score": 8}' call_kwargs = mock_create.call_args[1] - assert call_kwargs["model"] == "MiniMax-M2.7" + assert call_kwargs["model"] == "MiniMax-M3" # response_format should NOT be present (MiniMax doesn't support it) assert "response_format" not in call_kwargs