Commit b9158ae
fix(cost): add dated model ID for Claude Sonnet 4.6 (#5591)
PR #5579 added `claude-sonnet-4-6` but the Anthropic API returns
the dated version `claude-sonnet-4-6-20260217`. This caused $0 cost
calculations since the exact string match failed.
Adds the dated model ID to both the legacy cost lookup and unified
models mapping.
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 2d370b6 commit b9158ae
2 files changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
219 | 233 | | |
220 | 234 | | |
221 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
339 | 343 | | |
340 | 344 | | |
341 | 345 | | |
| |||
0 commit comments