да 2
This commit is contained in:
1 parent
763ca6062d
commit
d78c1b55c0
1 file changed
+1
-1
+1
-1
@@ -207,7 +207,7 @@ async def generate(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if user_id:
|
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:]
|
user_contexts[user_id] = user_contexts[user_id][-MAX_CONTEXT:]
|
||||||
|
|
||||||
return text["text"]
|
return text["text"]
|
||||||
|
|||||||
Reference in new issue
Block a user