1
0
mirror of synced 2025-12-21 19:06:49 -05:00
Files
docs/content/copilot/using-github-copilot/ai-models/changing-the-ai-model-for-copilot-code-completion.md

102 lines
4.2 KiB
Markdown

---
title: Changing the AI model for Copilot code completion
shortTitle: 'Change the completion model'
intro: 'Learn how to change the default LLM for {% data variables.product.prodname_copilot_short %} code completion to a different model.'
versions:
feature: copilot
topics:
- Copilot
---
## Overview
By default, {% data variables.product.prodname_copilot_short %} code completion uses the GPT-4o {% data variables.product.prodname_copilot_short %}, a fine-tuned GPT-4o mini based large language model (LLM). This model has been trained on a wide range of high quality public {% data variables.product.github %} repositories, providing coverage of over 30 programming languages. Its knowledge base is more current than the default model and you may find that it generates completion suggestions more quickly.
<details>
<summary>View the list of programming languages and technologies included in the training data.</summary>
* C
* C#
* C++
* Clojure
* CSS
* Dart
* Dockerfile
* Elixir
* Emacs Lisp
* Go
* Haskell
* HTML
* Java
* JavaScript
* Julia
* Jupyter Notebook
* Kotlin
* Lua
* MATLAB
* Objective-C
* Perl
* PHP
* PowerShell
* Python
* R
* Ruby
* Rust
* Scala
* Shell
* Swift
* TeX
* TypeScript
* Vue
</details>
> [!NOTE]
> * Multiple model support for {% data variables.product.prodname_copilot_short %} code completion is in {% data variables.release-phases.public_preview %} and is subject to change.
> * You can switch AI models in {% data variables.product.prodname_vs %} 17.14 Preview 2 and later, and in the latest JetBrains IDEs, with the latest version of the {% data variables.product.prodname_copilot %} extension.
## Effects of switching the AI model
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_chat_short %}. See [AUTOTITLE](/copilot/using-github-copilot/ai-models/changing-the-ai-model-for-copilot-chat).
There are no changes to the data collection and usage policy if you change the AI model.
If you are on a {% data variables.product.prodname_copilot_free_short %} subscription, 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).
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).
## Enabling the model switcher
{% ifversion fpt %}
If you have a {% data variables.product.prodname_copilot_free_short %} or {% data variables.product.prodname_copilot_pro_short %} subscription, the model switcher for {% data variables.product.prodname_copilot_short %} code completion is automatically enabled.
{% endif %}
{% data reusables.copilot.editor-preview-settings %}
{% visualstudio %}
## Changing the AI model for code completion
The following instructions are for {% data variables.product.prodname_vs %}. If you are using a JetBrains IDE, click the appropriate tab at the start of this article.
1. Click the **{% octicon "copilot" aria-hidden="true" %}** icon in the top right corner.
1. Click **Settings**, then click **Options**.
1. Under **{% data variables.product.prodname_copilot_short %} Completions**, use the dropdown menu to select the model you want to use.
{% endvisualstudio %}
{% jetbrains %}
## Changing the AI model for code completion
The following instructions are for JetBrains IDEs. If you are using {% data variables.product.prodname_vs %}, click the appropriate tab at the start of this article.
1. Click the **{% octicon "copilot" aria-hidden="true" %}** icon in the status bar.
1. In the popup menu, click **Edit Model for Completion**.
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.
1. Click **OK**.
{% endjetbrains %}