From 17bdc0512957b2c4d4eb72fa5bf9b551640adf18 Mon Sep 17 00:00:00 2001 From: WilliamZhu Date: Fri, 7 Mar 2025 12:17:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=A8RAG=E6=B5=81?= =?UTF-8?q?=E5=BC=8F=E8=81=8A=E5=A4=A9=E5=93=8D=E5=BA=94=E4=B8=AD=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=A0=BC=E5=BC=8F=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E5=B0=86=20`response`=20=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E4=BD=9C=E4=B8=BA=E7=94=9F=E6=88=90=E5=99=A8=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=EF=BC=8C=E8=80=8C=E4=B8=8D=E6=98=AF=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E6=9E=84=E9=80=A0=E5=85=83=E7=BB=84=20auto=5Fcoder=5F000000001?= =?UTF-8?q?861=5Fchat=5Faction.yml=5F7bd998807f738ac8787bebb60b1d47e9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/autocoder/auto_coder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/autocoder/auto_coder.py b/src/autocoder/auto_coder.py index b305024b..9765c3d4 100644 --- a/src/autocoder/auto_coder.py +++ b/src/autocoder/auto_coder.py @@ -1322,7 +1322,7 @@ def chat_with_human_as_model( rag = RAGFactory.get_rag(llm=chat_llm, args=args, path="") response = rag.stream_chat_oai( conversations=loaded_conversations)[0] - v = ([item[0], None] for item in response) + v = (item for item in response) elif "mcp" in args.action: from autocoder.common.mcp_server import get_mcp_server, McpRequest, McpInstallRequest, McpRemoveRequest, McpListRequest, McpListRunningRequest, McpRefreshRequest