mirror of
https://github.com/sune-org/us.proxy.sune.chat.git
synced 2026-09-18 03:05:42 +00:00
Feat: Enable automatic prompt caching for Claude
Co-authored-by: gemini-3.7-flash <noreply@google.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user