mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Claude: set cache TTL to 1h
This commit is contained in:
@@ -869,7 +869,7 @@ export function cachingAtDepthForClaude(messages, cachingAtDepth) {
|
||||
if (messages[i].role !== previousRoleName) {
|
||||
if (depth === cachingAtDepth || depth === cachingAtDepth + 2) {
|
||||
const content = messages[i].content;
|
||||
content[content.length - 1].cache_control = { type: 'ephemeral' };
|
||||
content[content.length - 1].cache_control = { type: 'ephemeral', ttl: '1h' };
|
||||
}
|
||||
|
||||
if (depth === cachingAtDepth + 2) {
|
||||
|
Reference in New Issue
Block a user