Исправлен баг с сохранением истории чата

This commit is contained in:
2026-05-13 00:07:31 +03:00
parent 1504c5fee7
commit 490a5c8507
4 changed files with 14 additions and 6 deletions
Binary file not shown.
+2 -1
View File
@@ -49,9 +49,10 @@ def stream():
def generate():
for content in agent.stream_responce(last_prompt):
yield f"data: {content}\n\n"
agent.save_memory()
return Response(generate(), mimetype="text/event-stream")
#список персонажей
@ui.route("/characters", methods=["GET"])
def get_characters():