From 0fdc313d69ace003366ab519714158343d178acc Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期一, 25 十一月 2024 10:45:12 +0800
Subject: [PATCH] dify
---
app/api/chat.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/app/api/chat.py b/app/api/chat.py
index 4359eab..2932d45 100644
--- a/app/api/chat.py
+++ b/app/api/chat.py
@@ -326,7 +326,7 @@
try:
data = json.loads(complete_response)
# data = json_data.get("data")
- if "answer" not in data: # 淇℃伅杩囨护
+ if "answer" not in data or isinstance(data["answer"], dict): # 淇℃伅杩囨护
continue
else: # 姝e父杈撳嚭
answer = data.get("answer", "")
--
Gitblit v1.8.0