jeffdapaz / VisualChatGPTStudio

Add chatGPT functionalities directly on Visual Studio
https://marketplace.visualstudio.com/items?itemName=jefferson-pires.VisualChatGPTStudio
MIT License
186 stars 47 forks source link

OpenAI API new Edit mode #21

Closed djack42 closed 11 months ago

djack42 commented 1 year ago

Hi, OpenAI released new modes to query the API : Edit and Insert, in addition to the Chat mode.
I used Playground to try them and I think it would produce better results than the chat mode for this extension, at least for refactor commands :
image

I see that the extension is using OpenAI byOkGoDoIt V1.6.0, but it does not have these modes yet. But a fork exists : OpenAI-DotNet, more up to date with the API, including the Edit mode. It's the same init, that could be intersting to try it out.

Anyway, big thanks for your hard work!

jeffdapaz commented 1 year ago

To be honest I've noticed these models before but hadn't read about them. But now that you mention it, I've read the documentation and it looks interesting. It would have made it a little easier at the beginning of the development of the extension, as I wouldn't have to do workarounds depending on the command so that the response is coherent and also that it is correctly positioned in the code.

However, I believe that to make these models available for the extension's commands, it would be necessary for the user to choose for each command which model he would like to use, because depending on the command, one would be better than the other.

As for the tool window, perhaps a combo with the listing of models in the window itself could provide users with freedom and ease to choose the best way to make requests, as well as allowing them to obtain the best possible results.

I also saw this other library, it seems to be much more complete and updated than the extension being used at the moment. At the moment, if someone implement these new models, would have to make the effort to change the library used.

Finally, thank you for your contributions with new ideas.

graham83 commented 1 year ago

With code-davinci-002 support discontinued this week (I received an email about this from OpenAI) I wonder how long code-davinci-edit-001 is going to be around for?

jeffdapaz commented 11 months ago

Since completations and edit models will be deprecated:

https://openai.com/blog/gpt-4-api-general-availability

I'm closing this issue.