From 0084d8b0cd48693b8256ebfd8fb2920b4e3b3d4a Mon Sep 17 00:00:00 2001 From: yuchanns Date: Wed, 21 Aug 2024 13:47:47 +0800 Subject: [PATCH] fix(llm): incorrect condition to call parse_stream_data --- lua/avante/llm.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/avante/llm.lua b/lua/avante/llm.lua index 270ef82..afd77dc 100644 --- a/lua/avante/llm.lua +++ b/lua/avante/llm.lua @@ -705,8 +705,8 @@ M.stream = function(question, code_lang, code_content, selected_content_content, "parse_stream_data and parse_response_data are mutually exclusive, and thus parse_response_data will be ignored. Make sure that you handle the incoming data correctly.", { once = true } ) - ProviderConfig.parse_stream_data(data) end + ProviderConfig.parse_stream_data(data) else parse_and_call(data) end