Commit d8f6cc9
committed
feat(bedrock): support Claude Opus 4.8 (extends 4.7 adaptive thinking detection)
- Anthropic provider: add claude-opus-4-8 to both prompt-caching switch
statements so it gets the same handling as 4.7 (native 1M context, no beta
header required).
- Bedrock provider: rename isGen47Model -> isAdaptiveThinkingModel and expand
the pattern to match opus-4-7, opus-4-8, sonnet-4-7, sonnet-4-8. 4.8 inherits
the same adaptive-thinking + temperature-rejection contract from 4.7 with no
breaking API changes.
- OpenAI-compatible provider: update comment to mention 4.8 alongside 4.7; no
logic change (already honors the supportsTemperature: false flag).
The rename describes the capability (adaptive thinking) rather than a specific
generation, making future Claude versions easier to support.1 parent 1bcae71 commit d8f6cc9
3 files changed
Lines changed: 28 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
396 | | - | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
397 | 402 | | |
398 | | - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
399 | 408 | | |
400 | 409 | | |
401 | 410 | | |
| |||
408 | 417 | | |
409 | 418 | | |
410 | 419 | | |
411 | | - | |
412 | | - | |
413 | | - | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
414 | 427 | | |
415 | 428 | | |
416 | 429 | | |
| |||
432 | 445 | | |
433 | 446 | | |
434 | 447 | | |
435 | | - | |
436 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
437 | 451 | | |
438 | 452 | | |
439 | 453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | | - | |
159 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| |||
0 commit comments