From 2863473bbf575bd7ae3836ed385602515e0fab12 Mon Sep 17 00:00:00 2001 From: yetone Date: Wed, 20 Nov 2024 01:33:28 +0800 Subject: [PATCH] fix: do not ignore curl error (#877) --- 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 b244913..3a18e35 100644 --- a/lua/avante/llm.lua +++ b/lua/avante/llm.lua @@ -194,7 +194,7 @@ M._stream = function(opts, Provider) active_job = nil completed = true cleanup() - opts.on_complete(nil) + opts.on_complete(err) end, callback = function(result) active_job = nil