From ae88193c5153aa04226a8307e1294a9c75d312bb Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期三, 18 十二月 2024 18:30:03 +0800
Subject: [PATCH] add dialog sss

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

diff --git a/app/api/agent.py b/app/api/agent.py
index 2bde98c..6270da4 100644
--- a/app/api/agent.py
+++ b/app/api/agent.py
@@ -35,11 +35,13 @@
         limit: int = Query(1000, ge=1, le=1000),
         db: Session = Depends(get_db),
         current_user: UserModel = Depends(get_current_user)):
+    print(111)
     agent = db.query(AgentModel).filter(AgentModel.id == agent_id).first()
     if not agent:
         return ResponseList(code=404, msg="Agent not found")
 
     if agent.agent_type == AgentType.RAGFLOW:
+        print(222)
         ragflow_service = RagflowService(base_url=settings.fwr_base_url)
         try:
             token = await get_ragflow_token(db, current_user.id)
@@ -47,6 +49,7 @@
             if not result:
                 result = await get_session_history(db, current_user.id, agent_id)
         except Exception as e:
+            print(e)
             raise HTTPException(status_code=500, detail=str(e))
         return ResponseList(code=200, msg="", data=result)
 

--
Gitblit v1.8.0