Sick dude. Thank you! I love copilot.vim and use it quite extensively. Will try this. I only ever use the ChatGPT service through their website. Do you get an API key by default or is that a separate service?
You can get your API key here https://platform.openai.com/account/api-keys.
Chat API is this: https://platform.openai.com/docs/api-reference/chat/create
URL that the plugin is using for the API call is here: https://github.com/dpayne/CodeGPT.nvim/blob/1ff70459b170ddaf...
TLDR: yes
> If so it might be way cheaper to use the API than ChatGPT plus?
I haven't used ChatGPT Plus, just the normal one. But at least the demonstration GIF makes it seem kind of slow. One selling point of the Plus service is supposedly that you get faster responses.