From a09ee757a38a3c9a131aa911a832d453bab66d77 Mon Sep 17 00:00:00 2001 From: dazedanon Date: Mon, 16 Mar 2026 00:26:57 -0500 Subject: [PATCH] fix cache ttl --- util/translation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/translation.py b/util/translation.py index f40f33a..52d6735 100644 --- a/util/translation.py +++ b/util/translation.py @@ -821,7 +821,7 @@ def translateText(system, user, history, penalty, formatType, model, numLines=No combined_system = system + vocab_text content_blocks = [{"type": "text", "text": f"```\n{combined_system}\n```"}] else: - content_blocks = [{"type": "text", "text": f"```\n{system}\n```", "cache_control": {"type": "ephemeral"}}] + content_blocks = [{"type": "text", "text": f"```\n{system}\n```", "cache_control": {"type": "ephemeral", "ttl": "1h"}}] if vocab_text and vocab_text.strip(): content_blocks.append({"type": "text", "text": vocab_text}) msg = [{"role": "system", "content": content_blocks}]