Skip to main content
Skip to content

Changing the AI model for GitHub Copilot inline suggestions

Learn how to change the default LLM for Copilot inline suggestions 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

如果满足以下条件,可以切换用于 Copilot 内联建议的 AI 模型:

  • 备用模型当前可用
  • 你正在使用带最新版本 VS Code 扩展的最新版 GitHub Copilot

注意

可用模型的列表将随时间而变化。 如果只有一个内联建议模型可用,模型选取器将仅显示该模型。 预览模型和其他内联建议模型将在它们可用时添加到选取器中。

For more information, see IDE 中的 GitHub Copilot 代码建议.

Changing the AI model for inline suggestions

  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.

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

Prerequisites

如果满足以下条件,可以切换用于 Copilot 内联建议的 AI 模型:

  • 备用模型当前可用
  • 你使用的是 Visual Studio 17.14 预览版 2 或更高版本

注意

可用模型的列表将随时间而变化。 如果只有一个内联建议模型可用,模型选取器将仅显示该模型。 预览模型和其他内联建议模型将在它们可用时添加到选取器中。

For more information, see IDE 中的 GitHub Copilot 代码建议.

Changing the AI model for inline suggestions

  1. Click the icon in the top right corner.
  2. Click Settings, then click Options.
  3. Under Copilot Completions, use the dropdown menu to select the model you want to use.

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

Prerequisites

如果满足以下条件,可以切换用于 Copilot 内联建议的 AI 模型:

  • 备用模型当前可用
  • 你正在使用是带最新版本 GitHub Copilot 扩展的最新版 JetBrains IDE

注意

可用模型的列表将随时间而变化。 如果只有一个内联建议模型可用,模型选取器将仅显示该模型。 预览模型和其他内联建议模型将在它们可用时添加到选取器中。

For more information, see IDE 中的 GitHub Copilot 代码建议.

Changing the AI model for inline suggestions

  1. In your JetBrains IDE, click the File menu (Windows) or the name of the application in the menu bar (macOS), then click Settings.
  2. 在左侧栏中,单击 工具,单击 GitHub Copilot, then click Completions.
  3. Click the dropdown menu for Model for completions and select the model you want to use.
  4. Click OK.