diff --git a/lua/avante/providers/openai.lua b/lua/avante/providers/openai.lua
index cfbe516..aa37382 100644
--- a/lua/avante/providers/openai.lua
+++ b/lua/avante/providers/openai.lua
@@ -95,7 +95,9 @@ M.parse_response = function(data_stream, _, opts)
       if choice.finish_reason == "stop" then
         opts.on_complete(nil)
       elseif choice.delta.content then
-        opts.on_chunk(choice.delta.content)
+        if choice.delta.content ~= vim.NIL then
+            opts.on_chunk(choice.delta.content)
+        end
       end
     end
   end