jackMort / ChatGPT.nvim

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

Remove Edit api calls due to OpenAI api change #249

Closed WERDXZ closed 11 months ago

WERDXZ commented 1 year ago

[fixes #241]Here is what i changed:

  1. Remove the "openai_edit_params" in default config and raise a deprecated warning if applied in user config
  2. changed api.lua to call the chat completion api as in this page "https://openai.com/blog/gpt-4-api-general-availability"
  3. changed code_edits to as they showed on that page too
WERDXZ commented 11 months ago

Anyway Im closing this pr since the other one is accepted lol