From d78c1b55c01b45633d0cca82616496657e20ef99 Mon Sep 17 00:00:00 2001 From: huker667 Date: Wed, 16 Sep 2026 12:59:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=B0=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supergenerator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supergenerator.py b/supergenerator.py index 7ca6a69..16121b7 100644 --- a/supergenerator.py +++ b/supergenerator.py @@ -207,7 +207,7 @@ async def generate( ) if user_id: - user_contexts[user_id].append({"role": "assistant", "content": {"type": "text", "text": text["text"]}}) + user_contexts[user_id].append({"role": "assistant", "content": [{"type": "text", "text": text["text"]}]}) user_contexts[user_id] = user_contexts[user_id][-MAX_CONTEXT:] return text["text"]