From 35f8639455992d24f5d0b962bd6fa79d7fcb8f31 Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期二, 19 十一月 2024 10:06:06 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/rag-gateway
---
app/api/chat.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/app/api/chat.py b/app/api/chat.py
index ae196ed..fe86fb5 100644
--- a/app/api/chat.py
+++ b/app/api/chat.py
@@ -11,7 +11,7 @@
from app.models.base_model import get_db
from app.models.user_model import UserModel
from app.service.ragflow import RagflowService
-from app.service.token import get_bisheng_token, get_ragflow_token
+from app.service.service_token import get_bisheng_token, get_ragflow_token
router = APIRouter()
@@ -53,6 +53,7 @@
if len(chat_history) == 0:
chat_history = await ragflow_service.set_session(token, agent_id,
message, chat_id, True)
+ print("chat_history------------------------", chat_history)
if len(chat_history) == 0:
result = {"message": "鍐呴儴閿欒锛氬垱寤轰細璇濆け璐�", "type": "close"}
await websocket.send_json(result)
--
Gitblit v1.8.0