Configuration
Accessing Code GPT's Settings
- In Visual Studio Code, click
File
>Preferences
>Settings
. This will open the Settings window. - On the left-hand side of the Settings window, click
Extensions
, and then clickCodeGPT
.
Screenshot: Code GPT Settings
Available Settings
API Key
Select your API provider from the dropdown menu.
See the Installation page for more information about how to set up Code GPT with your API Key.
Max Token
Tokens can be thought of as pieces of words. Before the API processes the prompts, the input is broken down into tokens.
Each model has a maximum number of tokens. Select the number of tokens depending on the length of the response you want to get and the selected model.
Learn more:
Model
The service provides access to many different models, grouped by family and ability. A model family typically associates models by their intended task.
Learn more:
Organization ID (OpenAI)
The organization ID information only applies to OpenAI and allows you to select the organization with which you will be using your API Key
Query Language
Select the language in which you will work the interactions with the API. For functionalities such as Explain or Document, each query will be made in the selected language.
Temperature
This is a parameter that can be adjusted. It determines the level of randomness or "creativity" in the generated text. A higher temperature will result in more varied and creative output, while a lower temperature will produce output that is more similar to the training data and less likely to contain unexpected or surprising content.
It is a value between 0 and 1. 0 being the most deterministic and 1 being the most random and creative. The default temperature is 0.3
Learn more: