gencay / vscode-chatgpt

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

GPT3.5 Turbo support - Official API for ChatGPT #165

Closed slavakurilyak closed 1 year ago

slavakurilyak commented 1 year ago

Starting today, you can build apps and products with OpenAI's new ChatGPT API!

OpenAI has released the ChatGPT API which utilizes the gpt-3.5-turbo model, the same model used in the ChatGPT product. This model has shown to be the best fit for several non-chat use cases, and early testers have made a smooth transition from text-davinci-003 to gpt-3.5-turbo with minimal changes required to their prompts. To learn more about the Chat API, please refer to their documentation.

OpenAI is committed to constantly improving the Chat models and aims to make these enhancements available to developers. Those who opt for the gpt-3.5-turbo model will receive the recommended stable model, while also having the flexibility to choose a specific model version.

For instance, OpenAI has recently introduced gpt-3.5-turbo-0301 which will be supported until at least June 1st. Additionally, a new stable release for gpt-3.5-turbo is expected to be rolled out in April. To stay informed about switchover updates, please visit the models page.

gencay commented 1 year ago

@slavakurilyak thanks for the suggestion. I added support for 2 new models in v3.9.0.

🚀 Official ChatGPT API / GPT 3.5 Turbo support

ncesar commented 1 year ago

Guys, do we know if using the gpt3.5 is cheaper than paying ChatGPT Plus?

isaactopo commented 1 year ago

I'm getting this error from the implementation of the new api(the key is OK, worked before. And so does the organisation):


1.Invalid Authentication
2.Incorrect API key provided.
3.Incorrect Organization provided.
See https://platform.openai.com/docs/guides/error-codes for more details. ChatGPT error 401: {
"error": {
"message": "No such organization: MTLaw.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_organization"
}
}

Does anyone know what it could be? Thanks!

gencay commented 1 year ago

@isaactopo It looks like you defined the organization setting. Reset your organization setting. If you are part of an organization openai should give you an id, you shouldn't use the name of the organization.

image

isaactopo commented 1 year ago

It worked, thanks!

isaactopo commented 1 year ago

Guys, do we know if using the gpt3.5 is cheaper than paying ChatGPT Plus?

That depends on what you are using it for. In my case it's MUCH CHEAPER. And with the new pricing for the new model, even more if possible.

nachifur commented 1 year ago

Thank you for your work! I would like to ask, is the api used for personal free accounts based on gpt2 or gpt3?

image

image

Is there a relationship between the gpt-model version in the plugin setting and the corresponding api?

image

The reason for this doubt is that we found a clear inconsistency between the web version and the api's answers, and in our daily use the web version seems to be smarter.

image

image

More clues:

I use Chinese for Q&A and the api answer is gpt-2. and the web version answer gpt-3.

image

image

ncesar commented 1 year ago

its GPT 3.5 @nachifur