This can be useful for generating code snippets or getting explanations for specific pieces of code. The selected code will be automatically appended to your query when it is sent to the AI. You can also select a code snippet in the editor and then enter a prompt in the side panel, or right-click and select "Ask CodeGPT". Its response will be displayed below the input field in the sidebar (note that it may take some time for it to be calculated). By clicking enter, it will be sent to GPT3. This will open a panel with an input field where you can enter your prompt or question. To use the extension, open a text editor in Visual Studio Code and open the CodeGPT panel by clicking on the CodeGPT icon in the sidebar. You can change the model in the extension settings. 1000 tokens are about 700 words, and you can see the token count for each request at the end of the response in the sidebar.Īs of January 31, 2023, only the code-* models and ChatGPT are avilable for free! You only spend your credits when you use the text-* models. When you create a new account, you receive $18 in free credits for the API which you must use in the first 90 days. Copy the key and paste it into the API Key field in the extension settings.Click on the Create new secret key button.If you don't have an account, you will need to create one or sign up using your Google or Microsoft account. To use this extension, you will need an API key from OpenAI. In the CodeGPT section, enter your API key in the top fieldĪfter completing these steps, the extension should be ready to use.In the search bar, type CodeGPT to filter the settings list.To do this, open the Settings panel by going to the File menu and selecting Preferences, then Settings. After the installation is complete, you will need to add your OpenAI API key to the extension settings in VSCode.To use this extension, install it from the VSCode marketplace. □ Insert code snippets from the AI's response into the active editor by clicking on them.□ View GPT's responses in a panel next to the editor.automatically write documentation for your code. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |