shobrook / ChatOverflow

AI-generated answers to every coding question
https://chatoverflow.ai
MIT License
330 stars 21 forks source link

This extension uses an older model, instead of ChatGP's model #7

Open Cerbrus opened 1 year ago

Cerbrus commented 1 year ago

model: "text-davinci-002-render", https://github.com/shobrook/stackoverflow.gg/blob/master/src/background.js#L144 That's not ChatGPT's model.

Adding the "ChatGPT" label on this extension is false advertising. Not that it could be accessing ChatGPT, as that has no API yet...

sanitybit commented 1 year ago

There is a lot more nuance that can make this confusing for folks who are looking for a documented/official ChatGPT API.

Load up ChatGPT in your browsers developer tools and look at the model names that are represented in the JSON payloads.

For non-Plus (unpaid) accounts, they are using text-davinci-002-render, and for the Plus (paid) accounts, they offer text-davinci-002-render-paid (default) and text-davinci-002-render-sha (optional alpha model optimized for speed).

image

There are some additional caveats, but the raw model for default ChatGPT is text-davinci-002-render.

A few resources that helped me understand the nuances and caveats:

https://github.com/waylaidwanderer/node-chatgpt-api

https://github.com/acheong08/ChatGPT

https://github.com/acheong08/EdgeGPT

https://platform.openai.com/docs/model-index-for-researchers/model-index-for-researchers

The other important bit here that shows that this is using ChatGPT and not just the OpenAI API, is that the URL in line 11 is hitting https://chat.openai.com/backend-api and not https://api.openai.com/.

sanitybit commented 1 year ago

As of February 14th, the default model for ChatGPT Plus subscribers is now text-davinci-002-render-sha (previously Turbo) and text-davinci-002-render has been renamed to Legacy.