Using Gemini's preview models results in errors when the response is streamed. The response appears, but by the end of the response you get this error:
Error executing callback:
...ano/.local/share/nvim/lazy/gp.nvim/lua/gp/dispatcher.lua:323: Expected object key string but found T_OBJ_END at character 25
stack traceback:
[C]: in function 'decode'
...ano/.local/share/nvim/lazy/gp.nvim/lua/gp/dispatcher.lua:323: in function 'process_lines'
...ano/.local/share/nvim/lazy/gp.nvim/lua/gp/dispatcher.lua:362: in function 'out_reader'
...serrano/.local/share/nvim/lazy/gp.nvim/lua/gp/tasker.lua:166: in function <...serrano/.local/share/nvim/lazy/gp.nvim/lua/gp/tasker.lua:158>
This happens with the most recent models, e.g. gemini-3-pro-preview. I have no problems with the current models, e.g. gemini-2.5-flash or gemini-2.5-pro.
Using Gemini's preview models results in errors when the response is streamed. The response appears, but by the end of the response you get this error:
This happens with the most recent models, e.g.
gemini-3-pro-preview. I have no problems with the current models, e.g.gemini-2.5-flashorgemini-2.5-pro.