mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Fix haiku prompt caching when tool prompt doesnt meet min required tokens
This commit is contained in:
@@ -56,9 +56,7 @@ export class AnthropicHandler implements ApiHandler {
|
||||
}
|
||||
return message
|
||||
}),
|
||||
tools: tools.map((tool, index) =>
|
||||
index === tools.length - 1 ? { ...tool, cache_control: { type: "ephemeral" } } : tool
|
||||
),
|
||||
tools, // cache breakpoints go from tools > system > messages, and since tools dont change, we can just set the breakpoint at the end of system (this avoids having to set a breakpoint at the end of tools which by itself does not meet min requirements for haiku caching)
|
||||
tool_choice: { type: "auto" },
|
||||
},
|
||||
(() => {
|
||||
|
||||
Reference in New Issue
Block a user