fix(anthropic): omit temperature for opus-4-7 (#3417)
This commit is contained in:
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"}
|
||||
Reference in new issue
Block a user