log clear session
This commit is contained in:
@@ -19,6 +19,7 @@ def clear_user_session(asengine_url, asengine_token, user_id):
|
||||
}
|
||||
response = requests.post(clear_url, json=payload, headers=headers)
|
||||
response.raise_for_status() # 检查请求是否成功
|
||||
print(f"User session {user_id} cleared successfully. Response: {response.json()}")
|
||||
except Exception as e:
|
||||
print(f"Error clearing user session: {e}")
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ def load_markdown_file(course_id, chapter_name, lesson_name):
|
||||
break
|
||||
if file_link is None:
|
||||
return None
|
||||
print(f"load_markdown_file: {file_link}")
|
||||
return get_text_file(file_link)
|
||||
|
||||
def convert_markdown_to_html(md_file: str) -> str:
|
||||
|
||||
@@ -140,7 +140,6 @@ class AgentNamespace(Namespace):
|
||||
if continue_learn:
|
||||
for _ in range(need_skip_chapters):
|
||||
chatmanager.next_chapter()
|
||||
|
||||
# 恢复对话历史到前端 - 使用批量发送消息列表
|
||||
if chatmanager.chat_historys:
|
||||
emit('messages', chatmanager.chat_historys, room=user_uuid, namespace='/agent')
|
||||
|
||||
Reference in New Issue
Block a user