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
- Open the command palette by pressing Ctrl+Shift+P (Windows/Linux) / Command+Shift+P (Mac).
- Type
change completions modeland 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 completionand 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
- 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 中的 GitHub Copilot 代码建议.
Changing the AI model for inline suggestions
- In your JetBrains IDE, click the File menu (Windows) or the name of the application in the menu bar (macOS), then click Settings.
- 在左侧栏中,单击 工具,单击 GitHub Copilot, then click Completions.
- Click the dropdown menu for Model for completions and select the model you want to use.
- Click OK.