zhaoqingang
2024-11-20 cfb8a353c72f96494cd46a78bd917f6ed8aaef1d
Merge branch 'master' of http://192.168.5.5:10010/r/rag-gateway
2个文件已修改
4 ■■■■ 已修改文件
app/api/chat.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/service/basic.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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:
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)