From 8c121f50e95d076a55f420feca100b1627728f30 Mon Sep 17 00:00:00 2001 From: Magic_yuan <317617749@qq.com> Date: Fri, 24 Jan 2025 19:21:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=A4=9A=E8=BD=AE=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lightrag/operate.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lightrag/operate.py b/lightrag/operate.py index 7527bdb1..a8b9801e 100644 --- a/lightrag/operate.py +++ b/lightrag/operate.py @@ -930,15 +930,6 @@ async def mix_kg_vector_query( stream=query_param.stream, ) - if query_param.stream: - # 如果是流式响应,先收集完整响应 - full_response = [] - async for chunk in response: - full_response.append(chunk) - - # 将完整响应组合起来用于缓存 - response = "".join(full_response) - # 清理响应内容 if isinstance(response, str) and len(response) > len(sys_prompt): response = (