OpenAI
Official website https://openai.com
OpenAI is an artificial intelligence research organization that aims to develop and promote friendly AI that benefits humanity. It has produced several AI models, including GPT-4, arguably the world's most advanced natural language processing model.
Connect your OpenAI Account
Go to the API Keys page on OpenAI.
Log in with your OpenAI account (or create a new account
Click the button labeled
Create a new secret key
A new dialog window containing a text box with your API key will appear.
Go to VSCode and choose
OpenAI
asProvider
Connect
on the button.Paste the API Key here, and click on
Connect
and Organization ID here:
If you want to remove your API Key from CodeGPT, click on the provider box and click on Disconnect
.
GPT models available in Code GPT
- gpt-4
- gpt-4o
- gpt-4o-mini
- gpt-4o-2024-05-13
- gpt-4-turbo
- gpt-4-turbo-2024-04-09
- gpt-4-32k
- gpt-4-32k-0613
- gpt-4-1106-preview
- gpt-4-0125-preview
- gpt-3.5-turbo
- gpt-3.5-turbo-16k
- gpt-3.5-turbo-16k-0613
- gpt-3.5-turbo-0125
- gpt-3.5-turbo-1106
OpenAI API
You must have credits loaded into your OpenAI account to use this extension. This extension uses the Official OpenAI API, a paid API.
If you do not have credits, the extension will show the following OpenAI API error: You exceeded your current quota; please check your plan and billing details
To review your account and the credits you have available, you must log in with your account at https://openai.com/api/
In the menu, select Manage Account. Then, in the Usage section, you will see the amount of credits available and used.
In this image, $13 USD has been used out of $18.
API Errors
If you are getting API errors, check the following link: OpenAI API Errors
Typical OpenAI errors
- Error Code 404: The model: gpt-4 does not exist
- Error Code 429 - Rate limit reached for requests
- Error Code 429 - You exceeded your current quota, please check your plan and billing details.
- Error Code 429 - The engine is currently overloaded. Please try again later.
- Error Code 401 - Invalid Authentication