From 057f034d4cd728c1bd0284e7c6b4a47739d5220d Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期四, 12 十二月 2024 19:57:41 +0800
Subject: [PATCH] yonghu

---
 app/api/chat.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/app/api/chat.py b/app/api/chat.py
index cde74ff..2628bac 100644
--- a/app/api/chat.py
+++ b/app/api/chat.py
@@ -41,13 +41,16 @@
         ret = {"message": "Agent not found", "type": "close"}
         await websocket.send_json(ret)
         return
+    print(1111)
     agent_type = agent.agent_type
+    print(agent_type)
     if chat_id == "" or chat_id == "0":
         ret = {"message": "Chat ID not found", "type": "close"}
         await websocket.send_json(ret)
         return
 
     if agent_type == AgentType.RAGFLOW:
+        print(222)
         ragflow_service = RagflowService(settings.fwr_base_url)
         token = await get_ragflow_token(db, current_user.id)
         try:

--
Gitblit v1.8.0