前端对话历史

This commit is contained in:
CakeCN
2025-12-11 19:53:14 +08:00
parent ce4a9ac2ca
commit b175407d4b
4 changed files with 75 additions and 21 deletions

View File

@@ -34,8 +34,8 @@ def on_connect_to_ase(client, entry, init_data, **kwargs):
clear_user_session(namespace_entry, init_data['room'])
restart = init_data.get("restart", False)
ase_client.chatmanager.load_now_chapter(load_code=restart)
if restart:
ase_client.chatmanager.load_now_chapter()
ase_client.send_text("chapter-start", "")
namespace_entry.emit('message', "教案加载完毕", room=init_data['room'], namespace='/agent')