Commit 98db09e
committed
fix: model_id claude-sonnet-4-6 (no date suffix) + drop top_p (Sonnet 4.6 rejects both)
Two Anthropic API contract bugs surfaced by today's smoke after the
auth + env-override fixes unblocked the path:
1. model_id "claude-sonnet-4-6-20260131" doesn't exist. /v1/models
confirmed the current frontier IDs use no date suffix: opus-4-7,
sonnet-4-6, opus-4-6. Only older models (sonnet-4-5-20250929 etc.)
are dated. Updated endpoints.json + smoke.yaml + mve.yaml.
2. Sonnet 4.6+ returns 400 if both `temperature` and `top_p` are sent.
We were sending temperature=0.0 + top_p=1.0 on every call. With
temperature=0 the top_p is a no-op anyway; removed it from the API
call AND from SamplingParams (recording top_p=1.0 in the Trial row
while the API used Anthropic's internal default would be a
reproducibility lie).
After both fixes the first 5-trial smoke completed cleanly: 129 real
MCP tool calls dispatched, $0.9052 spent, all 5 Trial rows valid
(error_type=agent_gave_up — expected, git_mcp has no mounted volume).1 parent d9d880f commit 98db09e
6 files changed
Lines changed: 23 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
7 | 18 | | |
8 | 19 | | |
9 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
647 | 646 | | |
648 | 647 | | |
649 | 648 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
81 | 88 | | |
82 | 89 | | |
83 | | - | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| |||
0 commit comments