zhangqian 1 rok temu
rodzic
commit
fe918ced37
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      app/api/chat.py
  2. 1 1
      app/service/basic.py

+ 1 - 1
app/api/chat.py

@@ -227,7 +227,7 @@ async def handle_client(websocket: WebSocket,
                             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:

+ 1 - 1
app/service/basic.py

@@ -65,7 +65,7 @@ class BasicService:
                 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)