enable prompt caching for anthropic

This commit is contained in:
Dax Raad
2025-06-16 11:41:45 -04:00
parent 3c4e966216
commit 1a553e525f
2 changed files with 34 additions and 5 deletions

View File

@@ -268,7 +268,6 @@ export namespace Provider {
}
const TOOLS = [
BashTool,
EditTool,
WebFetchTool,
GlobTool,
@@ -281,9 +280,7 @@ export namespace Provider {
EditTool,
// MultiEditTool,
WriteTool,
TodoWriteTool,
TaskTool,
TodoReadTool,
]
const TOOL_MAPPING: Record<string, Tool.Info[]> = {
anthropic: TOOLS.filter((t) => t.id !== "opencode.patch"),