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 模型:
- 备用模型当前可用
- 你正在使用带最新版本 GitHub Copilot 扩展的最新版 VS Code
注意
可用模型的列表将随时间而变化。 如果只有一个代码补全模型可用,模型选取器将仅显示该模型。 预览模型和其他代码补全模型在可用时会添加到选取器。
For more information, see IDE 中的 Copilot 代码建议.
Changing the AI model for code completion
- Open the command palette by pressing Ctrl+Shift+P (Windows/Linux) / Command+Shift+P (Mac).
- Type
change completions model
and select the "GitHub Copilot: Change Completions Model" command. - In the dropdown menu, select the model you want to use.
Checking which model is being used
-
Open the Settings editor by pressing Ctrl+, (Linux/Windows) / Command+, (Mac).
-
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
You can switch the AI model that's used by Copilot code completion if:
- An alternative model is currently available
- You are using Visual Studio 17.14 Preview 2 or later
注意
可用模型的列表将随时间而变化。 如果只有一个代码补全模型可用,模型选取器将仅显示该模型。 预览模型和其他代码补全模型在可用时会添加到选取器。
For more information, see IDE 中的 Copilot 代码建议.
Changing the AI model for code completion
- Click the icon in the top right corner.
- Click Settings, then click Options.
- 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 中的 Copilot 代码建议.
Changing the AI model for code completion
- Click the icon in the status bar.
- In the popup menu, click Edit Model for Completion.
- In the settings dialog box for "Languages & Frameworks > GitHub Copilot," click the dropdown menu for Model for completions and select the model you want to use.
- Click OK.