diff --git a/My_project/llm_web_code.py b/My_project/llm_web_code.py index 0db810e..386bfdc 100644 --- a/My_project/llm_web_code.py +++ b/My_project/llm_web_code.py @@ -25,7 +25,7 @@ def chat_with_bott(client, user_message, system_message="You are a code assistan role="user", # 角色为用户 query=user_message, # 用户的输入消息 api_name="/append" # 调用append API - ) + ) # 更新聊天记录,追加用户输入 chatbot_memory.append(("user", user_message))