test(providers): cover reasoning_effort="none" and gemma auto-routing

- Anthropic: "none" must not enable extended thinking
- Azure: "none" must not suppress temperature or inject reasoning body
- DeepSeek/DashScope/Kimi: "none" sends thinking disabled, skips reasoning_effort field
- Gemini: gemma keyword enables auto-routing for gemma models
This commit is contained in:
masterlyj
2026-04-29 15:41:11 +08:00
committed by Xubin Ren
parent b94bc18e59
commit 2b9b41f9c3
3 changed files with 73 additions and 0 deletions
@@ -83,3 +83,10 @@ def test_opus_4_7_omits_temperature_none() -> None:
kw = _build(_make_provider("claude-opus-4-7"), None)
assert "temperature" not in kw
assert "thinking" not in kw
def test_reasoning_effort_string_none_does_not_enable_thinking() -> None:
"""reasoning_effort='none' must not enable thinking — treated same as disabled."""
kw = _build(_make_provider(), "none")
assert "thinking" not in kw
assert kw["temperature"] == 0.7