News for hackers. Stuff that matters.
Re:Show HN: Neovim Plugin for ChatGPT by renewiltord on Wednesday March 08, 2023 @01:35PM (#35072920)
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?
Re:Show HN: Neovim Plugin for ChatGPT by dpayne on Wednesday March 08, 2023 @01:39PM (#35072993)
I still use copilot as my main completion tool. I found ChatGPT to be too slow and expensive to use for tab complete level of usage, but it works really well for larger things (e.g. refactor X to do Y, or write unit tests).

You can get your API key here https://platform.openai.com/account/api-keys.

Re:Show HN: Neovim Plugin for ChatGPT by renewiltord on Wednesday March 08, 2023 @02:04PM (#35073325)
Thank you!
Re:Show HN: Neovim Plugin for ChatGPT by totetsu on Wednesday March 08, 2023 @06:19PM (#35076138)
Do these api keys still work for free users?
Re:Show HN: Neovim Plugin for ChatGPT by jarenmf on Wednesday March 08, 2023 @02:01PM (#35073275)
Does the API offer access to the same model as the one used in ChatGPT web app? If so it might be way cheaper to use the API than ChatGPT plus?
Re:Show HN: Neovim Plugin for ChatGPT by freedomben on Wednesday March 08, 2023 @02:10PM (#35073381)
It's not the same. I don't know the technical differences, but in my tests it often returns wildly different results. anecdotally the API has also hallucinated modules that don't exist (but that I wish did!) whereas the chat gpt proper has not done that to me.
Re:Show HN: Neovim Plugin for ChatGPT by QuadrupleA on Wednesday March 08, 2023 @03:52PM (#35074565)
I suspect it comes down to the "system" prompt the API lets you set, which is hidden & pre-set on ChatGPT proper.
Re:Show HN: Neovim Plugin for ChatGPT by capableweb on Wednesday March 08, 2023 @02:04PM (#35073321)
> Does the API offer access to the same model as the one used in ChatGPT web app?

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.

Re:Show HN: Neovim Plugin for ChatGPT by jarenmf on Wednesday March 08, 2023 @03:50PM (#35074540)
I just tested the API, it seems to have the same speed as ChatGPT plus. I quickly tested some questions and it seems that OpenAI web app has a bit more relevant answers, I wonder whether it's related to the temperature and other parameters.
Re:Show HN: Neovim Plugin for ChatGPT by behnamoh on Wednesday March 08, 2023 @02:16PM (#35073457)
Can we have something like the OP's method in VSCode, WITHOUT using CoPilot?