You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/copilot/concepts/completions/code-suggestions.md
+74Lines changed: 74 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,80 @@ topics:
87
87
88
88
{% 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).
89
89
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:
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 %}
76
14
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.
78
16
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
80
18
81
-
{% endif %}
19
+
{% data reusables.copilot.code-completion-switch-prereqs-vscode %}
82
20
83
-
{% data reusables.copilot.editor-preview-settings %}
21
+
{% data reusables.copilot.code-completion-available-models %}
84
22
85
-
{% vscode %}
23
+
For more information, see [AUTOTITLE](/copilot/concepts/completions/code-suggestions#changing-the-model-used-for-code-completion).
86
24
87
25
## Changing the AI model for code completion
88
26
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
-
91
27
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).
92
28
1. Type `change completions model` and select the "{% data variables.product.prodname_copilot %}: Change Completions Model" command.
93
29
1. In the dropdown menu, select the model you want to use.
94
30
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
-
97
31
## Checking which model is being used
98
32
99
33
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
105
39
106
40
{% visualstudio %}
107
41
108
-
## Changing the AI model for code completion
109
-
110
42
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.
111
43
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
+
112
54
1. Click the **{% octicon "copilot" aria-hidden="true" aria-label="copilot" %}** icon in the top right corner.
113
55
1. Click **Settings**, then click **Options**.
114
56
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
117
59
118
60
{% jetbrains %}
119
61
120
-
## Changing the AI model for code completion
121
-
122
62
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.
123
63
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
+
124
74
1. Click the **{% octicon "copilot" aria-hidden="true" aria-label="copilot" %}** icon in the status bar.
125
75
1. In the popup menu, click **Edit Model for Completion**.
126
76
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.
> [!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.
> [!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 %}
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