This commit is contained in:
huker667 committed 2026-09-16 12:59:20 +03:00
1 parent 763ca6062d
commit d78c1b55c0
1 file changed
+1 -1
+1 -1
View File
@@ -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"]