gera2ld / ai.nvim

A Neovim plugin powered by AI.
35 stars 7 forks source link

[RFC] Add chatGPT and also display its answer #7

Closed rakotomandimby closed 5 months ago

rakotomandimby commented 9 months ago

@gera2ld, I propose to add chatGPT API to the extension. Implementation is very similar to Gemini's one, this wont be a lot more lines of code. We would display Gemini and chatGPT in the pop up, like this:

Gemini says:

Gemini answer
Gemini answer
Gemini answer

ChatGPT says:

ChatGPT answer
ChatGPT answer
ChatGPT answer

There will be feature flags: in the config, users will be able to enable or disable one or another. Note that it is not a perfect thing, but you know is software development, improvements are incremental ;-)

rakotomandimby commented 9 months ago

@gera2ld , I am sorry for the many commits, I dont know if I shoud have rebase or what, but I am not comfortable with rebase yet