This repository was archived by the owner on May 15, 2026. It is now read-only.
Commit a682355
Andy Lemin
fix(bedrock): disable temperature for Claude Opus 4.7
Claude Opus 4.7 does not support the temperature parameter (deprecated).
Previously, temperature was always sent in inferenceConfig which caused
a 400 error: 'temperature is deprecated for this model'.
Changes:
- Add supportsTemperature: false to anthropic.claude-opus-4-7 model def
- Skip sending temperature in inferenceConfig when supportsTemperature
is false (both createMessage and completePrompt paths)
- The UI already conditionally hides the Custom Temperature setting
based on supportsTemperature !== false1 parent 36ac4d3 commit a682355
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
439 | 442 | | |
440 | 443 | | |
441 | 444 | | |
| |||
775 | 778 | | |
776 | 779 | | |
777 | 780 | | |
778 | | - | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
779 | 785 | | |
780 | 786 | | |
781 | 787 | | |
| |||
0 commit comments