Skip to main content

Changing the AI model for Copilot code completion

Learn how to change the default LLM for Copilot code completion to a different model.

The following instructions are for VS Code. If you are using Visual Studio, or a JetBrains IDE, click the appropriate tab at the start of this article.

Prerequisites

You can switch the AI model that's used by Copilot code completion if:

  • An alternative model is currently available
  • You are using the latest releases of VS Code with the latest version of the GitHub Copilot extension

Note

The list of available models will change over time. When only one code completion model is available, the model picker will only show that model. Preview models and additional code completion models will be added to the picker as they become available.

For more information, see Copilot code suggestions in your IDE.

Changing the AI model for code completion

  1. Open the command palette by pressing Ctrl+Shift+P (Windows/Linux) / Command+Shift+P (Mac).
  2. Type change completions model and select the "GitHub Copilot: Change Completions Model" command.
  3. In the dropdown menu, select the model you want to use.

Checking which model is being used

  1. Open the Settings editor by pressing Ctrl+, (Linux/Windows) / Command+, (Mac).

  2. Type copilot completion and look for the "GitHub > Copilot: Selected Completion Model" section.

    The field in this section displays the currently selected model. If the field is empty, the default model is being used.