From fe918ced376839c2b34676199f6d7d925f71a6a3 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 20 十一月 2024 17:00:13 +0800
Subject: [PATCH] fix
---
app/api/chat.py | 2 +-
app/service/basic.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/api/chat.py b/app/api/chat.py
index e0abd8d..5e6f1da 100644
--- a/app/api/chat.py
+++ b/app/api/chat.py
@@ -227,7 +227,7 @@
data = json.loads(text)
output = data.get("output", "")
excel_name = data.get("excel_name", "")
- image_name = data.get("excel_name", "")
+ image_name = data.get("image_name", "")
excel_url = None
image_url = None
if excel_name:
diff --git a/app/service/basic.py b/app/service/basic.py
index 93adf6c..733405a 100644
--- a/app/service/basic.py
+++ b/app/service/basic.py
@@ -65,7 +65,7 @@
if response.status_code == 200:
try:
async for answer in response.aiter_text():
- print(f"response of ragflow chat: {answer}")
+ print(f"response of excel_talk chat: {answer}")
yield answer
except GeneratorExit as e:
print(e)
--
Gitblit v1.8.0