From e914a4e14560d108af1101ea3f701d5202f2dabe Mon Sep 17 00:00:00 2001 From: Jeevan Babu Gotru <114808955+jeevan1098@users.noreply.github.com> Date: Sun, 1 Nov 2026 09:30:25 -0600 Subject: [PATCH] fix(minimax): forward reasoning_effort instead of dropping it --- tests/unit/llms/test_cache_control_and_reasoning.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/unit/llms/test_cache_control_and_reasoning.py b/tests/unit/llms/test_cache_control_and_reasoning.py index be1ba1e7dbd..82406d114a9 100644 --- a/tests/unit/llms/test_cache_control_and_reasoning.py +++ b/tests/unit/llms/test_cache_control_and_reasoning.py @@ -76,6 +76,19 @@ def test_minimax_supports_thinking_param(): assert "reasoning_split" in supported_params +def test_minimax_forwards_reasoning_effort(): + config = MinimaxChatConfig() + + optional_params = config.map_openai_params( + non_default_params={"reasoning_effort": "low"}, + optional_params={}, + model="minimax/MiniMax-M3.1-Flash", + drop_params=True, + ) + + assert optional_params == {"reasoning_effort": "low"} + + def test_zai_preserves_cache_control_in_messages(): """ZAI should NOT strip cache_control from messages.""" config = ZAIChatConfig()