CodeGPT with VS Code
Overview
CodeGPT Chat is an AI-powered chatbot designed to assist developers with coding tasks directly within their preferred integrated development environments (IDEs), for example, VS Code.
Expectations
We have found that the Qwen-1.5-7B-Chat-Hybrid
model is the best Hybrid model available for coding. It is good at chatting with a few files at a time in your codebase to learn more about them. It can also make simple code editing suggestions pertaining to a few lines of code at a time.
However, we do not recommend using this model for analyzing large codebases at once or making large or complex file edits.
Setup
Prerequisites
- Install Lemonade Server by following the Lemonade Server Instructions and using the installer .exe.
Install CodeGPT in VS Code
The following instructions are based off CodeGPT provided instructions found here.
- Open the Extensions tab in VS Code Activity Bar.
- Search "CodeGPT: Chat & AI Agents" in the Extensions Marketplace search bar.
- Select the CodeGPT extension and click install.
This will add a CodeGPT tab to your VS Code Activity Bar.
Add Lemonade Server to CodeGPT
Note: The following instructions are based on instructions from CodeGPT found here.
- Open the CodeGPT tab in your VS Code Activity Bar.
- Sign Up or Sign into your account.
- In the model dropdown menu and click "View More".
- Select the tab: "LLMs Cloud model"
- Under "All Models", set the following:
Field Value Select Provider: Custom
Select Model: Qwen-1.5-7B-Chat-Hybrid
- Click "Change connection settings" and enter the following information:
Field Value API Key -
Custom Link http://localhost:8000/api/v1/api/v1
Usage
Note: see the CodeGPT user guide to learn about all of their features.
To try out CodeGPT:
- Open the CodeGPT tab in your VS Code Activity Bar, and in the chat box, type a question about your code. Use the
#
symbol to specify a file. - Example: "What's the fastest way to install lemonade in #getting_started.md?"
- Use /Fix to find and fix a minor bug.
- Use /Document to come up with docstrings and comments for a file.
- Use /UnitTest to make a test file.