jackMort / ChatGPT.nvim

ChatGPT Neovim Plugin: Effortless Natural Language Generation with OpenAI's ChatGPT API
Apache License 2.0
3.56k stars 307 forks source link

Errors on ChatGPT command - string manipulation #402

Open cr3a7ure opened 4 months ago

cr3a7ure commented 4 months ago

I can use most of the other functionality that I have tested, but when I run a simple query in the :ChatGPT command I get such errors. I do receive results, but I have to press multiple times Enter to continue. I have copilot enabled and use a proxy to access chatGPT backend.

Thanks for your efforts

Error executing vim.schedule lua callback: .../site/pack/packer/start/ChatGPT.nvim/lua/chatgpt/api.lua:67: attempt to concatenate fie
ld 'content' (a userdata value)
stack traceback:
        .../site/pack/packer/start/ChatGPT.nvim/lua/chatgpt/api.lua:67: in function 'on_stdout_chunk'
        .../site/pack/packer/start/ChatGPT.nvim/lua/chatgpt/api.lua:332: in function <.../site/pack/packer/start/ChatGPT.nvim/lua/cha
tgpt/api.lua:321>
Press ENTER or type command to continue
Error executing vim.schedule lua callback: vim/shared.lua:0: s: expected string, got userdata
stack traceback:
        [C]: in function 'error'
        vim/shared.lua: in function 'validate'
        vim/shared.lua: in function 'gsplit'
        vim/shared.lua: in function 'split'
        ...acker/start/ChatGPT.nvim/lua/chatgpt/flows/chat/base.lua:270: in function 'addAnswerPartial'
        ...acker/start/ChatGPT.nvim/lua/chatgpt/flows/chat/base.lua:784: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>