mirror of
https://github.com/sune-org/us.proxy.sune.chat.git
synced 2026-09-18 19:15:42 +00:00
Refactor: remove prompt cache for claude
Co-authored-by: gemini-3.8-flash <noreply@google.com>
This commit is contained in:
@@ -247,7 +247,6 @@ export async function streamClaude({ apiKey, body, signal, onDelta, isRunning })
|
|||||||
return null
|
return null
|
||||||
}).filter(Boolean),
|
}).filter(Boolean),
|
||||||
})).filter(m => m.content.length),
|
})).filter(m => m.content.length),
|
||||||
cache_control: { type: 'ephemeral' },
|
|
||||||
}
|
}
|
||||||
if (Number.isFinite(+body.max_tokens) && +body.max_tokens > 0) payload.max_tokens = +body.max_tokens
|
if (Number.isFinite(+body.max_tokens) && +body.max_tokens > 0) payload.max_tokens = +body.max_tokens
|
||||||
if (system) payload.system = system
|
if (system) payload.system = system
|
||||||
|
|||||||
Reference in New Issue
Block a user