From 2aca3fa30fac2aa5790f6b598dad7e2e59173012 Mon Sep 17 00:00:00 2001
From: zhangxiao <898441624@qq.com>
Date: 星期五, 18 十月 2024 17:07:30 +0800
Subject: [PATCH] 修改python Excel合并脚本。由xlwings改为openpyxl

---
 app/service/ragflow.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/app/service/ragflow.py b/app/service/ragflow.py
index b5c5dd1..4021866 100644
--- a/app/service/ragflow.py
+++ b/app/service/ragflow.py
@@ -56,8 +56,10 @@
             "conversation_id": chat_id,
             "messages": chat_history
         }
+
+        print(data)
         target_url = f"{self.base_url}/v1/conversation/completion"
-        async with httpx.AsyncClient() as client:
+        async with httpx.AsyncClient(timeout=300.0) as client:
             headers = {
                 'Content-Type': 'application/json',
                 'Authorization': token

--
Gitblit v1.8.0