From 600d2205367bf914dceaf97e6f082383aa54348c Mon Sep 17 00:00:00 2001 From: zhaoqingang <zhaoqg0118@163.com> Date: 星期五, 22 十一月 2024 09:55:16 +0800 Subject: [PATCH] merge --- app/api/chat.py | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/api/chat.py b/app/api/chat.py index 9784eb9..ee57744 100644 --- a/app/api/chat.py +++ b/app/api/chat.py @@ -209,11 +209,11 @@ question = message.get("message") try: SessionService(db).create_session( - session_id=chat_id, - name=question, - agent_id=agent_id, - agent_type=AgentType.BASIC, - user_id=current_user.id + chat_id, + question, + agent_id, + AgentType.BASIC, + current_user.id ) except Exception as e: logger.error(e) @@ -237,7 +237,7 @@ message={"role": "assistant", "content": result}) except Exception as e: logger.error(e) - logger.error("-----------------11111111--------------------") + logger.error("-----------------杩斿洖鏁版嵁--------------------") await websocket.send_json(result | data) except Exception as e2: -- Gitblit v1.8.0