Open traysh opened 6 months ago
just found the model text-davinci-003
is the one actually used in the code, in ChatGPT.nvim/lua/chatgpt/flows/code_completions/init.lua
temp workaround is to change that model to gpt-3.5-turbo-instruct
works for me.
I changed to the instruct model and at first it worked for me, but now I am getting some API errors
// API ERROR: Invalid URL (POST /v1/edits)
Sorry, should have mentioned that.
I changed this line https://github.com/jackMort/ChatGPT.nvim/blob/main/lua%2Fchatgpt%2Fflows%2Fcode_completions%2Finit.lua#L55
From: model = "text-davinci-003", To: model = "gpt-3.5-turbo-instruct",
If you are using Lazy the source files should be under ~/.local/share/nvim/lazy/chatgpt/...
Or at least that's where they are on my Linux machine. Might be different on Windows.
Can this be closed as it seems to have been fixed by https://github.com/jackMort/ChatGPT.nvim/pull/373
yeah that's correct.
Starting today, when I run
ChatGPTEditWithInstructions
, I get an error message:The error message seems wrong, as
text-davinci-003
is not used in ChatGPT.nvim. Nonetheless, the command fails and the deprecations URL the error refers to pointscode-davinci-edit-001
was to be shutdown at 2024-01-04. The recommended replacement is GPT-4, but that might increase the costs (I didn't check).