From 7be58d7783c8ef4b0b10c384dcd76d6b011f0817 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 30 十月 2024 10:04:00 +0800
Subject: [PATCH] fix报告生成

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

diff --git a/app/api/agent.py b/app/api/agent.py
index 919eddb..2879506 100644
--- a/app/api/agent.py
+++ b/app/api/agent.py
@@ -30,7 +30,7 @@
         return ResponseList(code=404, msg="Agent not found")
 
     if agent.agent_type == AgentType.RAGFLOW:
-        ragflow_service = RagflowService(base_url=settings.ragflow_base_url)
+        ragflow_service = RagflowService(base_url=settings.fwr_base_url)
         try:
             token = get_ragflow_token(db, current_user.id)
             result = await ragflow_service.get_chat_sessions(token, agent_id)
@@ -39,7 +39,7 @@
         return ResponseList(code=200, msg="", data=result)
 
     elif agent.agent_type == AgentType.BISHENG:
-        bisheng_service = BishengService(base_url=settings.bisheng_base_url)
+        bisheng_service = BishengService(base_url=settings.sgb_base_url)
         try:
             token = get_bisheng_token(db, current_user.id)
             result = await bisheng_service.get_chat_sessions(token)

--
Gitblit v1.8.0