gencay / vscode-chatgpt

An unofficial Visual Studio Code - OpenAI ChatGPT integration
ISC License
3.48k stars 761 forks source link

Addition of GPT-4 model #221

Closed giacomomiolo closed 1 year ago

giacomomiolo commented 1 year ago

Describe the feature

OpenAI has just released GPT-4, currently the model is available through the OpenAI interface, but not selectable from the settings of the extensions. Image attached:

Screenshot 2023-03-14 at 19 39 30

References:

At the moment the model seems to be available only through the browser, I'd imagine that they'll start rolling out API access soon.

majormer commented 1 year ago

referer: https://chat.openai.com/chat?model=gpt-4

majormer commented 1 year ago

The model should be all that is needed to implement if it is the same as the fix for when GPT-Plus came out.

DavidHuie commented 1 year ago

Support for this model would be awesome. Btw, I think people are sleeping on this project. AFAIK this is the best way to interact with ChatGPT, since it's inline to the code.

gencay commented 1 year ago

@DavidHuie what do you mean by sleeping? :)

Until we start officially supporting this here's a hint:

Change your model name in your settings.json (Use ctrl+shift+p to open commands and type Settings):

"chatgpt.method": "Browser Auto-login",
"chatgpt.gpt3.model": "gpt-4"

You can ignore the warning message. Since the extension doesn't have that defined it will warn you but the extension will still respect your choice and use that model instead.

Now you have access to GPT-4 using your ChatGPT Plus account ;)

giacomomiolo commented 1 year ago

Thanks! Just tried and seems to be working!

DavidHuie commented 1 year ago

@gencay thanks! That worked.

I was referring to the broader tech community, and folks that don't use VS Code. I think people vaguely know about Copilot, but not a lot know about tools like these, which are just as game-changing (if not more). I find that Copilot is 20-50% better than Intellisense in terms of the quality of the completion, which is awesome. This tool, however, is a 0-1 tool since there was nothing before it. I compare it to having an in-editor Stack Overflow that's personalized to your code and project. Additionally, it's so much faster to use than the ChatGPT UI.

Thanks for the hard work!

gencay commented 1 year ago

@DavidHuie since I have a day job I cannot fully commit to this project and be fully active all the time. I will respond to each query as I get time. However, expect some new and very exciting features and improvements soon/over the weekends. I'm glad you're enjoying it; I'd appreciate if you share your thoughts on marketplace rate/review page and spread the word!

gencay commented 1 year ago

🍀 Hi everyone - check out the latest version. GPT-4 is now enabled via Browser Autologin method using your ChatGPT Plus subscription

https://github.com/gencay/vscode-chatgpt/releases/tag/v3.9.6

Christopher-Hayes commented 1 year ago

@gencay thank you for the work on this as always. When you have time, could you add API support for gpt-4? I've tried to edit Settings JSON trick, and it sticks to using GPT-3.

If you ask GPT-4 if it is GPT-3 or GPT-4 it will always say it's GPT-4. But when I ask in this extension it still says it's GPT-3, despite having the model set to gpt-4. (I have confirmed I really do have API access to GPT-4 via the playground)

I've tried the browser login method, but it works for about 30 seconds before I get logged out and have to re-login.

gencay commented 1 year ago

Some great features like getting streaming answer in editor instead of sidebar, template driven & persistable queries with 3 temperature option to save, inline diff and many more were implemented and all were planned to be released upcoming week...

After releasing this feature we were made aware that by using the extension's Browser autologin feature user may violate the OpenAI's terms of use (See readme on details) and we have had no intention of providing such backdoor from this extension and we wanted to remove the old versions and deprecate the Browser autologin functionality completely. However, vs-code marketplace doesn't have an established way of removing old versions from online marketplace and thus making all of the previous versions available wasn't something we as a small team could handle.

Please see #239 and our readme about our announcement :(