Skip to content

Commit fd21301

Browse files
committed
Add BYOK
1 parent 509c458 commit fd21301

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

docs/ide/copilot-add-model.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
title: 'Bring your own model to chat'
3+
description: Learn how to add and configure custom language models in GitHub Copilot Chat in Visual Studio, by using API keys from other providers.
4+
ms.update-cycle: 180-days
5+
ms.topic: get-started
6+
author: anandmeg
7+
ms.author: meghaanand
8+
ms.manager: mijacobs
9+
ms.subservice: ai-tools
10+
ms.collection: ce-skilling-ai-copilot
11+
monikerRange: '>= vs-2022'
12+
---
13+
# Add and configure custom models in chat
14+
15+
With the latest servicing release of 17.14, Visual Studio now supports adding your own language model to the chat experience. You can now use API keys from providers like Anthropic, Google, and OpenAI to integrate a wider range of models directly into Chat. This feature enables you to select and configure models based on your workflow requirements or to test new model capabilities as they become available.
16+
17+
## Benefits
18+
19+
Using your own model provides the following capabilities:
20+
21+
- **Model selection**: Use a wider range of models, including new or experimental options, beyond those built into Visual Studio.
22+
- **Configuration**: Choose models that meet your infrastructure, security, or performance requirements.
23+
- **API management**: Monitor and control API usage, rate limits, and quotas directly with your chosen provider.
24+
- **Switching models**: Change between built-in and custom models as needed for different tasks or workflows.
25+
26+
## Get started
27+
28+
To add an API key from OpenAI, Anthropic, or Google:
29+
30+
1. Open the Chat view.
31+
1. Select **Manage Models** from the model picker.
32+
1. Select your provider and enter the necessary credentials (such as API key or endpoint URL).
33+
1. Select from preset models or add your own using provider-specific options.
34+
1. Once added, your custom model will appear in the model picker for chat.
35+
36+
> [!NOTE] This feature is not available for Copilot Business or Copilot Enterprise users.
37+
38+
## Limitations and considerations
39+
40+
- Custom model support is limited to the Chat experience in Visual Studio and does not affect code completions or other AI-assisted features, such as commit message generation.
41+
- Model capabilities depend on the provider; some third-party models may not support tool use, vision inputs, or advanced features.
42+
- Services like embeddings, intent detection, and repository indexing may continue to use the Copilot API.
43+
- When using a custom model, output is returned directly from the provider and may bypass Copilot’s responsible AI filtering.
44+
45+
## Related content
46+
47+
- [About premium requests](https://docs.github.com/copilot/managing-copilot/monitoring-usage-and-entitlements/about-premium-requests#premium-requests)
48+
- [About Copilot billing](https://docs.github.com/copilot/managing-copilot/managing-copilot-as-an-individual-subscriber/billing-and-payments/about-billing-for-individual-copilot-plans)
49+
- [GitHub support](https://support.github.com/)
50+
- [Manage Copilot usage and models](copilot-usage-and-models.md)

docs/ide/copilot-usage-and-models.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: 'GitHub Copilot usage and models'
33
description: Learn how to manage your GitHub Copilot usage and models directly within Visual Studio.
4-
ms.date: 6/4/2025
4+
ms.date: 8/19/2025
55
ms.update-cycle: 180-days
66
ms.topic: overview
77
author: anandmeg

0 commit comments

Comments
 (0)