[X] I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
NVIM v0.10.0
Operating system/version
MacOS 14.4.1
Describe the bug
Sometimes a request to LLM provider (Groq in this case) result in the following error
jobwait table: 0x010567e888 10000 /Users/simo/Developer/lua/share/lua/5.1/ai/init.lua:87: Expected value but found unexpected end of string at character 171
stack traceback:
^I[C]: in function 'decode'
^I/Users/simo/Developer/lua/share/lua/5.1/ai/init.lua:87: in function </Users/simo/Developer/lua/share/lua/5.1/ai/init.lua:81>
^I[C]: in function 'jobwait'
^Ispec/dante_spec.lua:110: in function <spec/dante_spec.lua:102>
^I[C]: in function 'xpcall'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:178: in function 'safe'
^I/Users/simo/.luarocks/share/lua/5.1/busted/init.lua:40: in function 'executor'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314: in function </Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314>
^I[C]: in function 'xpcall'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:178: in function 'safe'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314: in function 'execute'
^I...
^I/Users/simo/.luarocks/share/lua/5.1/busted/block.lua:155: in function 'execute'
^I/Users/simo/.luarocks/share/lua/5.1/busted/init.lua:7: in function 'executor'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314: in function </Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314>
^I[C]: in function 'xpcall'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:178: in function 'safe'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314: in function 'execute'
^I/Users/simo/.luarocks/share/lua/5.1/busted/execute.lua:58: in function 'execute'
^I/Users/simo/.luarocks/share/lua/5.1/busted/runner.lua:210: in function </Users/simo/.luarocks/share/lua/5.1/busted/runner.lua:11>
^I...uarocks/lib/luarocks/rocks-5.1/busted/2.2.0-1/bin/busted:3: in function 'fn'
^I/Users/simo/.luarocks/bin/nlua:79: in main chunk
jobwait table: 0x010567e888 10000 /Users/simo/Developer/lua/share/lua/5.1/ai/init.lua:87: Expected value but found unexpected end of string at character 171
stack traceback:
^I[C]: in function 'decode'
^I/Users/simo/Developer/lua/share/lua/5.1/ai/init.lua:87: in function </Users/simo/Developer/lua/share/lua/5.1/ai/init.lua:81>
^I[C]: in function 'jobwait'
^Ispec/dante_spec.lua:110: in function <spec/dante_spec.lua:102>
^I[C]: in function 'xpcall'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:178: in function 'safe'
^I/Users/simo/.luarocks/share/lua/5.1/busted/init.lua:40: in function 'executor'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314: in function </Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314>
^I[C]: in function 'xpcall'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:178: in function 'safe'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314: in function 'execute'
^I...
^I/Users/simo/.luarocks/share/lua/5.1/busted/block.lua:155: in function 'execute'
^I/Users/simo/.luarocks/share/lua/5.1/busted/init.lua:7: in function 'executor'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314: in function </Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314>
^I[C]: in function 'xpcall'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:178: in function 'safe'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314: in function 'execute'
^I/Users/simo/.luarocks/share/lua/5.1/busted/execute.lua:58: in function 'execute'
^I/Users/simo/.luarocks/share/lua/5.1/busted/runner.lua:210: in function </Users/simo/.luarocks/share/lua/5.1/busted/runner.lua:11>
^I...uarocks/lib/luarocks/rocks-5.1/busted/2.2.0-1/bin/busted:3: in function 'fn'
^I/Users/simo/.luarocks/bin/nlua:79: in main chunk function: builtin#18 /Users/simo/Developer/lua/share/lua/5.1/ai/init.lua:93: Expected value but found invalid token at character 1
stack traceback:
^I[C]: in function 'decode'
^I/Users/simo/Developer/lua/share/lua/5.1/ai/init.lua:93: in function </Users/simo/Developer/lua/share/lua/5.1/ai/init.lua:81>
^I[C]: in function 'jobwait'
^Ispec/dante_spec.lua:110: in function <spec/dante_spec.lua:102>
^I[C]: in function 'xpcall'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:178: in function 'safe'
^I/Users/simo/.luarocks/share/lua/5.1/busted/init.lua:40: in function 'executor'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314: in function </Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314>
^I[C]: in function 'xpcall'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:178: in function 'safe'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314: in function 'execute'
^I...
^I/Users/simo/.luarocks/share/lua/5.1/busted/block.lua:155: in function 'execute'
^I/Users/simo/.luarocks/share/lua/5.1/busted/init.lua:7: in function 'executor'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314: in function </Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314>
^I[C]: in function 'xpcall'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:178: in function 'safe'
^I/Users/simo/.luarocks/share/lua/5.1/busted/core.lua:314: in function 'execute'
^I/Users/simo/.luarocks/share/lua/5.1/busted/execute.lua:58: in function 'execute'
^I/Users/simo/.luarocks/share/lua/5.1/busted/runner.lua:210: in function </Users/simo/.luarocks/share/lua/5.1/busted/runner.lua:11>
^I...uarocks/lib/luarocks/rocks-5.1/busted/2.2.0-1/bin/busted:3: in function 'fn'
^I/Users/simo/.luarocks/bin/nlua:79: in main chunk
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.0
Operating system/version
MacOS 14.4.1
Describe the bug
Sometimes a request to LLM provider (Groq in this case) result in the following error
Steps To Reproduce
Try to query LLM multiple times
Expected Behavior
This error should not be here