Skip to content

Commit

Permalink
修复在RAG流式聊天响应中返回格式不一致的问题,将 response 直接作为生成器返回,而不是重新构造元组
Browse files Browse the repository at this point in the history
auto_coder_000000001861_chat_action.yml_7bd998807f738ac8787bebb60b1d47e9
  • Loading branch information
allwefantasy committed Mar 7, 2025
1 parent d2b4c4e commit 17bdc05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autocoder/auto_coder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 17bdc05

Please sign in to comment.