Co-authored-by: hubwriter <hubwriter@github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
3.8 KiB
title, shortTitle, intro, versions, topics, redirect_from, contentType, category
| title | shortTitle | intro | versions | topics | redirect_from | contentType | category | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Changing the AI model for GitHub Copilot inline suggestions | Change the completion model | Learn how to change the default LLM for {% data variables.product.prodname_copilot_short %} inline suggestions to a different model. |
|
|
|
how-tos |
|
{% vscode %}
The following instructions are for {% data variables.product.prodname_vscode_shortname %}. If you are using {% data variables.product.prodname_vs %}, or a JetBrains IDE, click the appropriate tab at the start of this article.
Prerequisites
{% data reusables.copilot.code-completion-switch-prereqs-vscode %}
{% data reusables.copilot.code-completion-available-models %}
For more information, see AUTOTITLE.
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 "{% data variables.product.prodname_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 "{% data variables.product.github %} > {% data variables.product.prodname_copilot_short %}: 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.
{% endvscode %}
{% visualstudio %}
The following instructions are for {% data variables.product.prodname_vs %}. If you are using {% data variables.product.prodname_vscode_shortname %}, or a JetBrains IDE, click the appropriate tab at the start of this article.
Prerequisites
{% data reusables.copilot.code-completion-switch-prereqs-vs %}
{% data reusables.copilot.code-completion-available-models %}
For more information, see AUTOTITLE.
Changing the AI model for inline suggestions
- Click the {% octicon "copilot" aria-hidden="true" aria-label="copilot" %} icon in the top right corner.
- Click Settings, then click Options.
- Under {% data variables.product.prodname_copilot_short %} Completions, use the dropdown menu to select the model you want to use.
{% endvisualstudio %}
{% jetbrains %}
The following instructions are for JetBrains IDEs. If you are using {% data variables.product.prodname_vs %}, or {% data variables.product.prodname_vscode_shortname %}, click the appropriate tab at the start of this article.
Prerequisites
{% data reusables.copilot.code-completion-switch-prereqs-jetbrains %}
{% data reusables.copilot.code-completion-available-models %}
For more information, see AUTOTITLE.
Changing the AI model for inline suggestions
- Click the {% octicon "copilot" aria-hidden="true" aria-label="copilot" %} icon in the status bar.
- In the popup menu, click Edit Model for Completion.
- In the settings dialog box for "Languages & Frameworks > {% data variables.product.prodname_copilot %}," click the dropdown menu for Model for completions and select the model you want to use.
- Click OK.
{% endjetbrains %}