ChatGPT inside of Visual Studio Code
- GPT-4o
- GPT-4-Turbo
- GPT-3.5-Turbo
- Highlight question or code
- Open Command Palette (
cmd + shift + p
) - Type 'Ask GPT'
GPT's response can either be opened in a new file or have it replace the highlighted question.
To set your own API key:
- Go to OpenAI's website to create one.
- Once logged in, click on your account in the top right corner.
- Select "View API Keys" from the drop-down menu.
- Click the button "Create a new key."
- Press
cmd + shift + p
(Command Palette) and search for "Set API Key"
To select model:
- Press
cmd + shift + p
(Command Palette) and search for "Change Model"
To change the token limit (only available on davinci model):
- Press
cmd + shift + p
(Command Palette) and search for "Change Token Limit"
-
AskGPT - Ask GPT any question you want.
-
GPT: Set API Key - Enter an API key to use.
-
GPT: Change Model - Select from given models.
-
GPT: Change Limit - Change the token limit.
-
GPT: Show Chat History - Shows your chat history.
-
GPT: Clear Chat History - Clears the chat history.
-
GPT: Change Output Mode - Switches the output mode, either opening in a new file, or replacing the question.
-
GPT: Change Debug Mode - Switches the debug mode on or off.
- Newer models added (o1-preview and o1-mini)
- More detailed error and debug messages.
- Added debug mode with logging.
- Using axios instead of OpenAI library.
- Removed Davinci model (deprecated)
- Added GPT-4o
- Added GPT-4-Turbo
- API keys saved across sessions
- Removed Shared API Key privileges.
- Compatible with VSCode 1.7^
- Chat History Added
- GPT-4 Added
- Error handling for shared API key usage.
- Implemented individual API key use and flexible token limit.