Skip to content

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

  1. 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.

  1. Open the Extensions tab in VS Code Activity Bar.
  2. Search "CodeGPT: Chat & AI Agents" in the Extensions Marketplace search bar.
  3. 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.

  1. Open the CodeGPT tab in your VS Code Activity Bar.
  2. Sign Up or Sign into your account.
  3. In the model dropdown menu and click "View More".
  4. Select the tab: "LLMs Cloud model"
  5. Under "All Models", set the following:
    FieldValue
    Select Provider:Custom
    Select Model: Qwen-1.5-7B-Chat-Hybrid
  6. Click "Change connection settings" and enter the following information:
    FieldValue
    API Key-
    Custom Linkhttp://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.