diff --git a/lua/avante/llm.lua b/lua/avante/llm.lua
index a08aba4..8fd5429 100644
--- a/lua/avante/llm.lua
+++ b/lua/avante/llm.lua
@@ -250,6 +250,7 @@ M._stream = function(opts)
           parse_response_without_stream(result.body)
         end)
       end
+      opts.on_complete(nil)
     end,
   })