Skip to content

Commit ee0f515

Browse files
hubwriterCopilotsophietheking
authored
[EDI 5521 - Builders] Update docs for switching the Copilot code completion LLM (#56693)
Co-authored-by: Copilot <[email protected]> Co-authored-by: Sophie <[email protected]>
1 parent 6d0ac15 commit ee0f515

File tree

7 files changed

+132
-76
lines changed

7 files changed

+132
-76
lines changed

content/copilot/concepts/completions/code-suggestions.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,80 @@ topics:
8787

8888
{% data variables.product.prodname_copilot %} checks each suggestion for matches with publicly available code. Any matches are discarded or suggested with a code reference, based on the setting of the "Suggestions matching public code" policy for your account or organization. See [AUTOTITLE](/copilot/concepts/completions/code-referencing).
8989

90+
## About the AI model used for {% data variables.product.prodname_copilot_short %} code completion
91+
92+
{% data variables.product.prodname_copilot_short %} code completion uses the {% data variables.copilot.copilot_gpt_4o %} {% data variables.product.prodname_copilot_short %} model. This is a fine-tuned version of the GPT-4o mini model. The {% data variables.copilot.copilot_gpt_4o %} {% data variables.product.prodname_copilot_short %} model was trained on a wide range of high quality public {% data variables.product.github %} repositories, providing coverage of over 30 programming languages. See [Programming languages included in the default model](#programming-languages-included-in-the-default-model) below.
93+
94+
{% vscode %}
95+
96+
## Changing the model used for code completion
97+
98+
{% data reusables.copilot.code-completion-switch-prereqs-vscode %}
99+
100+
Changing the model only affects {% data variables.product.prodname_copilot_short %} code completion. It does not affect {% data variables.product.prodname_copilot_short %} next edit suggestions.
101+
102+
{% data reusables.copilot.code-completion-switch-model-affects %}
103+
104+
{% endvscode %}
105+
106+
{% visualstudio %}
107+
108+
## Changing the model used for code completion
109+
110+
{% data reusables.copilot.code-completion-switch-prereqs-vs %}
111+
112+
{% data reusables.copilot.code-completion-switch-model-affects %}
113+
114+
{% endvisualstudio %}
115+
116+
{% jetbrains %}
117+
118+
## Changing the model used for code completion
119+
120+
{% data reusables.copilot.code-completion-switch-prereqs-jetbrains %}
121+
122+
{% data reusables.copilot.code-completion-switch-model-affects %}
123+
124+
{% endjetbrains %}
125+
126+
## Programming languages included in the default model
127+
128+
The following programming languages and technologies are included in the training data for the default LLM used for {% data variables.product.prodname_copilot_short %} code completion:
129+
130+
* C
131+
* C#
132+
* C++
133+
* Clojure
134+
* CSS
135+
* Dart
136+
* Dockerfile
137+
* Elixir
138+
* Emacs Lisp
139+
* Go
140+
* Haskell
141+
* HTML
142+
* Java
143+
* JavaScript
144+
* Julia
145+
* Jupyter Notebook
146+
* Kotlin
147+
* Lua
148+
* MATLAB
149+
* Objective-C
150+
* Perl
151+
* PHP
152+
* PowerShell
153+
* Python
154+
* R
155+
* Ruby
156+
* Rust
157+
* Scala
158+
* Shell
159+
* Swift
160+
* TeX
161+
* TypeScript
162+
* Vue
163+
90164
## Next steps
91165

92166
* [AUTOTITLE](/copilot/how-tos/completions/getting-code-suggestions-in-your-ide-with-github-copilot)

content/copilot/how-tos/ai-models/changing-the-ai-model-for-copilot-code-completion.md

Lines changed: 26 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -10,90 +10,24 @@ redirect_from:
1010
- /copilot/using-github-copilot/ai-models/changing-the-ai-model-for-copilot-code-completion
1111
---
1212

13-
## Overview
14-
15-
By default, {% data variables.product.prodname_copilot_short %} code completion uses the {% data variables.copilot.copilot_gpt_4o %} {% data variables.product.prodname_copilot_short %} model. This is a fine-tuned version of the GPT-4o mini model. The {% data variables.copilot.copilot_gpt_4o %} {% data variables.product.prodname_copilot_short %} model was trained on a wide range of high quality public {% data variables.product.github %} repositories, providing coverage of over 30 programming languages.
16-
17-
<details>
18-
<summary>View the list of programming languages and technologies included in the training data.</summary>
19-
20-
* C
21-
* C#
22-
* C++
23-
* Clojure
24-
* CSS
25-
* Dart
26-
* Dockerfile
27-
* Elixir
28-
* Emacs Lisp
29-
* Go
30-
* Haskell
31-
* HTML
32-
* Java
33-
* JavaScript
34-
* Julia
35-
* Jupyter Notebook
36-
* Kotlin
37-
* Lua
38-
* MATLAB
39-
* Objective-C
40-
* Perl
41-
* PHP
42-
* PowerShell
43-
* Python
44-
* R
45-
* Ruby
46-
* Rust
47-
* Scala
48-
* Shell
49-
* Swift
50-
* TeX
51-
* TypeScript
52-
* Vue
53-
54-
</details>
55-
56-
{% vscode %} You can switch AI models in the latest releases of {% data variables.product.prodname_vscode_shortname %} with the latest version of the {% data variables.product.prodname_copilot %} extension. {% endvscode %}
57-
58-
{% visualstudio %} You can switch AI models in {% data variables.product.prodname_vs %} 17.14 Preview 2 and later. {% endvisualstudio %}
59-
60-
{% jetbrains %} You can switch AI models in the latest releases of JetBrains IDEs with the latest version of the {% data variables.product.prodname_copilot %} extension. {% endjetbrains %}
61-
62-
> [!NOTE]
63-
> 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.
64-
65-
## Effects of switching the AI model
66-
67-
Changing the model that's used for {% data variables.product.prodname_copilot_short %} code completion does not affect the model that's used by {% data variables.copilot.copilot_chat_short %}. See [AUTOTITLE](/copilot/using-github-copilot/ai-models/changing-the-ai-model-for-copilot-chat).
68-
69-
There are no changes to the data collection and usage policy if you change the AI model.
70-
71-
If you are on a {% data variables.copilot.copilot_free_short %} plan, all completions count against your completions quota regardless of the model used. See [AUTOTITLE](/copilot/about-github-copilot/subscription-plans-for-github-copilot#comparing-copilot-subscriptions).
72-
73-
The setting to enable or disable suggestions that match public code are applied irrespective of which model you choose. See [AUTOTITLE](/enterprise-cloud@latest/copilot/using-github-copilot/finding-public-code-that-matches-github-copilot-suggestions).
74-
75-
## Enabling the model switcher
13+
{% vscode %}
7614

77-
{% ifversion fpt %}
15+
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.
7816

79-
If you have a {% data variables.copilot.copilot_free_short %} or {% data variables.copilot.copilot_pro_short %} plan, the model switcher for {% data variables.product.prodname_copilot_short %} code completion is automatically enabled.
17+
## Prerequisites
8018

81-
{% endif %}
19+
{% data reusables.copilot.code-completion-switch-prereqs-vscode %}
8220

83-
{% data reusables.copilot.editor-preview-settings %}
21+
{% data reusables.copilot.code-completion-available-models %}
8422

85-
{% vscode %}
23+
For more information, see [AUTOTITLE](/copilot/concepts/completions/code-suggestions#changing-the-model-used-for-code-completion).
8624

8725
## Changing the AI model for code completion
8826

89-
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.
90-
9127
1. Open the command palette by pressing <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Windows/Linux) / <kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd> (Mac).
9228
1. Type `change completions model` and select the "{% data variables.product.prodname_copilot %}: Change Completions Model" command.
9329
1. In the dropdown menu, select the model you want to use.
9430

95-
Alternatively, if Command Center is enabled, you can click {% octicon "chevron-down" aria-label="The downward-pointing arrowhead" %} beside the **{% octicon "copilot" aria-hidden="true" aria-label="copilot" %}** icon at the top of the {% data variables.product.prodname_vscode_shortname %} window, then click **Configure Code Completions** in the dropdown menu. Then choose **Change Completions Model** in the dropdown menu and select the model you want to use.
96-
9731
## Checking which model is being used
9832

9933
1. Open the Settings editor by pressing <kbd>Ctrl</kbd>+<kbd>,</kbd> (Linux/Windows) / <kbd>Command</kbd>+<kbd>,</kbd> (Mac).
@@ -105,10 +39,18 @@ Alternatively, if Command Center is enabled, you can click {% octicon "chevron-d
10539

10640
{% visualstudio %}
10741

108-
## Changing the AI model for code completion
109-
11042
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.
11143

44+
## Prerequisites
45+
46+
{% data reusables.copilot.code-completion-switch-prereqs-vs %}
47+
48+
{% data reusables.copilot.code-completion-available-models %}
49+
50+
For more information, see [AUTOTITLE](/copilot/concepts/completions/code-suggestions#changing-the-model-used-for-code-completion).
51+
52+
## Changing the AI model for code completion
53+
11254
1. Click the **{% octicon "copilot" aria-hidden="true" aria-label="copilot" %}** icon in the top right corner.
11355
1. Click **Settings**, then click **Options**.
11456
1. Under **{% data variables.product.prodname_copilot_short %} Completions**, use the dropdown menu to select the model you want to use.
@@ -117,10 +59,18 @@ The following instructions are for {% data variables.product.prodname_vs %}. If
11759

11860
{% jetbrains %}
11961

120-
## Changing the AI model for code completion
121-
12262
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.
12363

64+
## Prerequisites
65+
66+
{% data reusables.copilot.code-completion-switch-prereqs-jetbrains %}
67+
68+
{% data reusables.copilot.code-completion-available-models %}
69+
70+
For more information, see [AUTOTITLE](/copilot/concepts/completions/code-suggestions#changing-the-model-used-for-code-completion).
71+
72+
## Changing the AI model for code completion
73+
12474
1. Click the **{% octicon "copilot" aria-hidden="true" aria-label="copilot" %}** icon in the status bar.
12575
1. In the popup menu, click **Edit Model for Completion**.
12676
1. 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.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
> [!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.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
> [!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.
2+
3+
For details of how to switch the model for {% data variables.product.prodname_copilot_short %} code completion, see [AUTOTITLE](/copilot/how-tos/ai-models/changing-the-ai-model-for-copilot-code-completion).
4+
5+
## Effects of switching the AI model
6+
7+
Changing the model that's used for {% data variables.product.prodname_copilot_short %} code completion does not affect the model that's used by {% data variables.product.prodname_copilot_short %} next edit suggestions or {% data variables.copilot.copilot_chat_short %}. See [AUTOTITLE](/copilot/using-github-copilot/ai-models/changing-the-ai-model-for-copilot-chat).
8+
9+
There are no changes to the data collection and usage policy if you change the AI model.
10+
11+
If you are on a {% data variables.copilot.copilot_free_short %} plan, all completions count against your completions quota regardless of the model used. See [AUTOTITLE](/copilot/about-github-copilot/subscription-plans-for-github-copilot#comparing-copilot-subscriptions).
12+
13+
The setting to enable or disable suggestions that match public code are applied irrespective of which model you choose. See [AUTOTITLE](/copilot/using-github-copilot/finding-public-code-that-matches-github-copilot-suggestions).
14+
15+
## Enabling the model switcher
16+
17+
If you have a {% data variables.copilot.copilot_free_short %} or {% data variables.copilot.copilot_pro_short %} plan, the model switcher for {% data variables.product.prodname_copilot_short %} code completion is automatically enabled.
18+
19+
{% data reusables.copilot.editor-preview-settings %}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
You can switch the AI model that's used by {% data variables.product.prodname_copilot_short %} code completion if:
2+
3+
* An alternative model is currently available
4+
* You are using the latest release of JetBrains IDEs with the latest version of the {% data variables.product.prodname_copilot %} extension
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
You can switch the AI model that's used by {% data variables.product.prodname_copilot_short %} code completion if:
2+
3+
* An alternative model is currently available
4+
* You are using {% data variables.product.prodname_vs %} 17.14 Preview 2 or later
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
You can switch the AI model that's used by {% data variables.product.prodname_copilot_short %} code completion if:
2+
3+
* An alternative model is currently available
4+
* You are using the latest releases of {% data variables.product.prodname_vscode_shortname %} with the latest version of the {% data variables.product.prodname_copilot %} extension

0 commit comments

Comments
 (0)