From 276122b67d784b08774f0c198e8af6c16f118bf9 Mon Sep 17 00:00:00 2001 From: octo-patch Date: Tue, 2 Jun 2026 08:10:21 +0800 Subject: [PATCH] feat(sambanova): add MiniMax-M3, drop M2.5 - Add `sambanova/MiniMax-M3` (192k context) to `MAX_TOKENS`, placed above M2.7 so it shows up as the recommended SambaNova model. - Remove `sambanova/MiniMax-M2.5` from `MAX_TOKENS`; M2.5 is superseded by M2.7/M3 and the listing was getting stale. - Update the SambaNova snippet in `changing_a_model.md` to use M3 as the primary model with M2.7 as the fallback. - Switch the SambaNova key-forwarding unit test to `sambanova/MiniMax-M3` so the test exercises the recommended model id. --- docs/docs/usage-guide/changing_a_model.md | 6 +++--- pr_agent/algo/__init__.py | 2 +- tests/unittest/test_litellm_api_key_guard.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/usage-guide/changing_a_model.md b/docs/docs/usage-guide/changing_a_model.md index 8f8c6fc023..b56164255d 100644 --- a/docs/docs/usage-guide/changing_a_model.md +++ b/docs/docs/usage-guide/changing_a_model.md @@ -164,12 +164,12 @@ key = ... # your Groq api key ### SambaNova -To use MiniMax-M2.7 model with SambaNova, for example, set: +To use MiniMax-M3 model with SambaNova, for example, set: ```toml [config] # in configuration.toml -model = "sambanova/MiniMax-M2.7" -fallback_models = ["sambanova/MiniMax-M2.5"] +model = "sambanova/MiniMax-M3" +fallback_models = ["sambanova/MiniMax-M2.7"] [sambanova] # in .secrets.toml key = ... # your SambaNova api key ``` diff --git a/pr_agent/algo/__init__.py b/pr_agent/algo/__init__.py index b55b58a77a..1592c9c22b 100644 --- a/pr_agent/algo/__init__.py +++ b/pr_agent/algo/__init__.py @@ -226,8 +226,8 @@ 'groq/meta-llama/llama-4-scout-17b-16e-instruct': 131072, 'groq/llama-3.3-70b-versatile': 128000, 'groq/llama-3.1-8b-instant': 128000, + 'sambanova/MiniMax-M3': 192000, 'sambanova/MiniMax-M2.7': 192000, - 'sambanova/MiniMax-M2.5': 160000, 'sambanova/Meta-Llama-3.3-70B-Instruct': 128000, 'sambanova/gpt-oss-120b': 128000, 'sambanova/DeepSeek-V3.1': 128000, diff --git a/tests/unittest/test_litellm_api_key_guard.py b/tests/unittest/test_litellm_api_key_guard.py index 4a34fc892a..dce655fc87 100644 --- a/tests/unittest/test_litellm_api_key_guard.py +++ b/tests/unittest/test_litellm_api_key_guard.py @@ -315,7 +315,7 @@ async def test_sambanova_key_forwarded_for_non_ollama_model(self, monkeypatch): assert litellm.api_key == sambanova_key await handler.chat_completion( - model="sambanova/MiniMax-M2.7", system="sys", user="usr" + model="sambanova/MiniMax-M3", system="sys", user="usr" ) assert mock_call.call_args[1].get("api_key") == sambanova_key