From 0afc0ca139f522e74bcdeea25aba4013e73ac14e Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Tue, 1 Sep 2026 15:00:34 -0700 Subject: [PATCH] Feat: Enable automatic prompt caching for Claude Co-authored-by: gemini-3.7-flash --- providers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/providers.js b/providers.js index b3677da..e6aa0ca 100644 --- a/providers.js +++ b/providers.js @@ -238,6 +238,7 @@ export async function streamClaude({ apiKey, body, signal, onDelta, isRunning }) }).filter(Boolean), })).filter(m => m.content.length), max_tokens: CLAUDE_MAX_TOKENS, + cache_control: { type: 'ephemeral' }, } if (system) payload.system = system if (Number.isFinite(+body.temperature)) payload.temperature = +body.temperature