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

This commit is contained in:
04cb authored and Xubin Ren committed 2026-04-24 15:33:59 +08:00
1 parent 7f1913f619
commit 9239429a00
2 files changed
+15 -3

No files matched your search

@@ -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"}