mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: enable caching for Opus 4.5 model (#9568)
Added claude-opus-4-5-20251101 to the cache control switch statements to enable prompt caching, matching the behavior of other Claude models. Fixes #9567 Co-authored-by: Roo Code <roomote@roocode.com>
This commit is contained in:
parent
8949c2f6fe
commit
2945b30191
1 changed files with 2 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ export class AnthropicHandler extends BaseProvider implements SingleCompletionHa
|
|||
switch (modelId) {
|
||||
case "claude-sonnet-4-5":
|
||||
case "claude-sonnet-4-20250514":
|
||||
case "claude-opus-4-5-20251101":
|
||||
case "claude-opus-4-1-20250805":
|
||||
case "claude-opus-4-20250514":
|
||||
case "claude-3-7-sonnet-20250219":
|
||||
|
|
@ -117,6 +118,7 @@ export class AnthropicHandler extends BaseProvider implements SingleCompletionHa
|
|||
switch (modelId) {
|
||||
case "claude-sonnet-4-5":
|
||||
case "claude-sonnet-4-20250514":
|
||||
case "claude-opus-4-5-20251101":
|
||||
case "claude-opus-4-1-20250805":
|
||||
case "claude-opus-4-20250514":
|
||||
case "claude-3-7-sonnet-20250219":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue