mirror of
https://github.com/TauricResearch/TradingAgents.git
synced 2026-11-19 07:39:53 +02:00
fix(llm): read a dated Claude snapshot's version without its date (#1585)
- claude-sonnet-4-20250514 no longer receives the effort setting it rejects, and claude-opus-4-5-20251101 now receives it
This commit is contained in:
@@ -28,6 +28,8 @@ class TestEffortGate:
|
||||
"claude-haiku-4-5", "claude-haiku-5-0", "claude-haiku-4-7-preview",
|
||||
# Sonnet 4.5 (and earlier) 400 on effort — only Sonnet 4.6+ supports it.
|
||||
"claude-sonnet-4-5", "claude-sonnet-4-0",
|
||||
# A dated snapshot's date is not its minor version (#1585).
|
||||
"claude-sonnet-4-20250514", "claude-opus-4-20250514", "claude-sonnet-4-5-20250929",
|
||||
],
|
||||
)
|
||||
def test_unsupported_models_do_not_receive_effort(self, monkeypatch, model):
|
||||
@@ -39,7 +41,7 @@ class TestEffortGate:
|
||||
"model",
|
||||
[
|
||||
"claude-opus-4-5", "claude-opus-4-6", "claude-opus-4-7",
|
||||
"claude-sonnet-4-6",
|
||||
"claude-sonnet-4-6", "claude-opus-4-5-20251101",
|
||||
],
|
||||
)
|
||||
def test_current_opus_and_sonnet_receive_effort(self, monkeypatch, model):
|
||||
|
||||
Reference in New Issue
Block a user