From a791022ff1311e1fb76930c398d6ff91036d0456 Mon Sep 17 00:00:00 2001 From: zhaoqingang <zhaoqg0118@163.com> Date: 星期三, 11 十二月 2024 17:57:52 +0800 Subject: [PATCH] 新增加标签功能 --- 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