mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
fix(minimax): forward reasoning_effort instead of dropping it
This commit is contained in:
parent
078884ecdc
commit
e914a4e145
1 changed files with 13 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue