From 80978b3aec0e7f7a89d3ad671a9c0869c187be7c Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 17 十月 2024 14:19:18 +0800 Subject: [PATCH] 解决知识问题不响应问题,解决解析错误问题 --- 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..d41a4da 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=10.0) as client: headers = { 'Content-Type': 'application/json', 'Authorization': token -- Gitblit v1.8.0