fix(anthropic): omit temperature for opus-4-7 (#3417)

This commit is contained in:
04cb
2026-04-24 15:33:59 +08:00
committed by Xubin Ren
parent 7f1913f619
commit 9239429a00
2 changed files with 15 additions and 3 deletions
@@ -63,3 +63,9 @@ def test_none_does_not_enable_thinking() -> None:
kw = _build(_make_provider(), None)
assert "thinking" not in kw
assert kw["temperature"] == 0.7
def test_opus_4_7_omits_temperature() -> None:
kw = _build(_make_provider("claude-opus-4-7"), "adaptive")
assert "temperature" not in kw
assert kw["thinking"] == {"type": "adaptive"}