Skip to content

Commit 91b7744

Browse files
hubwriterSiaraMist
andauthored
Using the AI Toolkit extension to add more models to Copilot Chat in VS Code (#57395)
Co-authored-by: Siara <[email protected]>
1 parent bf622e0 commit 91b7744

File tree

5 files changed

+52
-4
lines changed

5 files changed

+52
-4
lines changed
69.9 KB
Loading
41.8 KB
Loading

content/copilot/how-tos/use-ai-models/change-the-chat-model.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,47 @@ These instructions are for {% data variables.product.prodname_vscode %}. For ins
6161
{% data reusables.copilot.chat-model-limitations-ide %}
6262

6363
{% data reusables.copilot.open-chat-vs-code %}
64-
1. In the bottom right of the chat view, select the **CURRENT-MODEL** {% octicon "chevron-down" aria-hidden="true" aria-label="chevron-down" %} dropdown menu, then click the AI model of your choice.
64+
1. At the bottom of the chat view, select the **CURRENT-MODEL** {% octicon "chevron-down" aria-hidden="true" aria-label="chevron-down" %} dropdown menu, then click the AI model of your choice.
65+
66+
## Adding more models
67+
68+
You can expand the model options that are available to power {% data variables.copilot.copilot_chat_short %}. You can add models from:
69+
70+
* **A model provider**—such as Anthropic, Gemini, OpenAI, and others.
71+
* **The AI Toolkit for {% data variables.product.prodname_vscode %}**.
72+
73+
> [!NOTE] Using the AI Toolkit for {% data variables.product.prodname_vscode_shortname %} is in {% data variables.release-phases.public_preview %} and subject to change.
74+
75+
### Prerequisites
76+
77+
* Depending on the provider or model you choose, you may need to supply an API key, or model ID, from the provider, or a {% data variables.product.github %} {% data variables.product.pat_generic %} (PAT).
78+
* To add models from the AI Toolkit for {% data variables.product.prodname_vscode %}, you must <a href="vscode:extension/ms-windows-ai-studio.windows-ai-studio">install the AI Toolkit extension</a>.
79+
80+
### Adding models
81+
82+
1. In the {% data variables.product.prodname_copilot_short %} chat view, click the **CURRENT-MODEL** {% octicon "chevron-down" aria-hidden="true" aria-label="chevron-down" %} dropdown menu.
83+
1. Click **Manage Models**.
84+
85+
![Screenshot of the 'Manage Models' option, highlighted with a dark orange outline.](/assets/images/help/copilot/vsc-manage-models-option.png)
86+
87+
A list of providers is displayed.
88+
89+
If you have installed the AI Toolkit, then additional providers, added via the AI Toolkit, are also listed.
90+
91+
![Screenshot of the 'Manage Language Models' list.](/assets/images/help/copilot/vsc-manage-models-list.png)
92+
93+
1. Click the provider whose model(s) you want to add.
94+
1. Depending on which provider you selected, you may be prompted to enter a {% data variables.product.github %} PAT, an API key for the provider, or a model ID for a specific model.
95+
96+
Enter the required information, then press <kbd>Enter</kbd>.
97+
98+
A list of available models is displayed.
99+
100+
1. Select the model(s) you want to add, then click **OK**.
101+
102+
The models you selected are now available in the model picker in the chat view.
103+
104+
If you added a model from a provider via the AI Toolkit then the first time you use the model, you will be prompted to download it. You may also be prompted to authenticate with the provider.
65105

66106
> [!TIP] If you're already using chat with {% data variables.copilot.copilot_auto_model_selection_short %}, you'll need to start a new chat session to switch models. To start a new session, in the top right of the chat view, click {% octicon "plus" aria-label="new chat" %} new chat.
67107
@@ -137,3 +177,9 @@ To use multi-model {% data variables.copilot.copilot_chat_short %}, you must ins
137177

138178
* [AUTOTITLE](/copilot/using-github-copilot/ai-models/changing-the-ai-model-for-copilot-code-completion)
139179
* [AUTOTITLE](/copilot/reference/ai-models/model-comparison)
180+
181+
{% vscode %}
182+
183+
* [AI language models in VS Code](https://code.visualstudio.com/docs/copilot/language-models#_bring-your-own-language-model-key) in the {% data variables.product.prodname_vscode %} documentation.
184+
185+
{% endvscode %}

content/copilot/reference/ai-models/supported-models.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ contentType: reference
2525

2626
Depending on your {% data variables.product.prodname_copilot_short %} plan and where you're using it—such as {% data variables.product.prodname_dotcom_the_website %} or an IDE—you may have access to different models.
2727

28-
>[!NOTE] Model availability is subject to change. Some models may be replaced or updated over time.
28+
> [!NOTE]
29+
> * Model availability is subject to change. Some models may be replaced or updated over time.
30+
> * In {% data variables.product.prodname_vscode %} you can add more models than those that are available by default with your {% data variables.product.prodname_copilot_short %} subscription. See [AUTOTITLE](/copilot/how-tos/use-ai-models/change-the-chat-model?tool=vscode#adding-more-models).
2931
30-
For all AI models, input prompts and output completions run through {% data variables.product.prodname_copilot %}'s content filters for harmful, offensive, or off-topic content, and for public code matching when enabled.
32+
For all of the default AI models, input prompts and output completions run through {% data variables.product.prodname_copilot %}'s content filters for harmful, offensive, or off-topic content, and for public code matching when enabled.
3133

3234
## Supported AI models in {% data variables.product.prodname_copilot_short %}
3335

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
If you're using a {% data variables.copilot.copilot_business_short %}{% ifversion ghec %} or {% data variables.copilot.copilot_enterprise_short %}{% endif %} plan, the organization{% ifversion ghec %} or enterprise{% endif %} that provides your plan must enable the **Editor preview features** setting. See [AUTOTITLE](/enterprise-cloud@latest/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#enabling-copilot-features-in-your-organization){% ifversion ghec %} or [AUTOTITLE](/enterprise-cloud@latest/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise#configuring-policies-for-github-copilot){% endif %}.
1+
If you're using a {% data variables.copilot.copilot_business_short %} or {% data variables.copilot.copilot_enterprise_short %} plan, the organization or enterprise that provides your plan must enable the **Editor preview features** setting. See [AUTOTITLE](/enterprise-cloud@latest/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#enabling-copilot-features-in-your-organization) or [AUTOTITLE](/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-policies-and-features-for-copilot-in-your-enterprise#configuring-policies-for-github-copilot).

0 commit comments

Comments
 (0)