Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
With SQL Server Management Studio 22, GitHub Copilot in SSMS selects a default model to provide fast response times, high-quality suggestions, and improve efficiency for coding tasks. The default model varies based on your subscription.
However, you're not limited to using this model. You can also select a different model that best fits your requirements.
Available models
Choose from a curated set of models in the model picker, such as:
- GPT-5
- GPT-5 mini
- GPT-5.1
- GPT-5.1 Codex
- GPT-5.1 Codex mini
- GPT-4.1
- GPT-4o
- Claude Sonnet 3.5
- Claude Sonnet 4
- Claude Sonnet 4.5
- Claude Haiku 4.5
- Gemini 2.5 Pro
Model availability depends on your Copilot subscription and the current status of each model. For Copilot Enterprise and Business, administrators must enable the Preview policy in Copilot settings before models are available in SSMS.
Bring your own model (BYOM)
You can add your own language model to Copilot Chat by providing API keys from providers such as Azure, OpenAI, Anthropic, and more. This option allows you to configure and access a custom set of models.
Benefits
When you use your own model, you can:
- Expand model selection beyond built-in options, including new or experimental models.
- Pick models that meet your infrastructure, security, or performance needs.
- Control and monitor API usage directly with a specific provider.
- Easily switch between built-in and custom models.
Add a custom model
You can add a custom model from the GitHub Copilot chat window.
In the chat view, go to the model picker dropdown list and select Manage Models.
Select your provider from the dropdown list. The following providers are currently supported:
- OpenAI
- Anthropic
- xAI
- Azure
- Foundry Local
Enter your API key value.
Select the appropriate item, or enter the necessary information, based on your API key.
Confirm that the custom model appears in the model picker.
Send a prompt in a chat; Copilot Chat uses the custom model.
Add a custom model for Azure
To add a model that is provisioned in Azure OpenAI, you need the deployment and endpoint information.
In the chat view, go to the model picker dropdown list and select Manage Models.
Select Azure from the provider dropdown list.
Enter your API key value.
Enter the required information for your Azure OpenAI resource.
- The Display Name defines how the model appears in the model picker dropdown list in the chat view.
- The Model ID is the name of the deployment.
- The Resource Endpoint is the URL for the endpoint (for example,
https://ghcp-ssms-endpoint.openai.azure.com/)
Select Add to add the model.
Select Save to close the dialog.
For more information on model deployment in Azure OpenAI, see Create and deploy an Azure OpenAI in Azure AI Foundry Models resource.
Edit a custom model
You can edit selected settings for a model from the GitHub Copilot chat window.
- In the chat view, go to the model picker dropdown list and select Manage Models.
- In the Bring Your Own Model dialog, hover over the display name of the model you want to modify.
- To expand the model details, select the chevron to the right of the model's display name.
- Make the necessary changes to the options, and select Save to apply the changes.
Delete a custom model
You can delete a model from the list of custom models in the GitHub Copilot chat window.
- In the chat view, go to the model picker dropdown list and select Manage Models.
- In the Bring Your Own Model dialog, hover over the display name of the model you want to modify.
- To expand the model details, select the chevron to the right of the model's display name.
- Select Delete model to remove the model.
Limitations and considerations
Support for custom models is limited to the Copilot Chat experience.
Model capabilities depend on the provider, and only models that support tool calling should be used with GitHub Copilot in SSMS.
Services like embeddings, intent detection, and repository indexing might continue to use the Copilot API.
When you use a custom model, output is returned directly from the provider and might bypass the filtering for responsible AI in GitHub Copilot.
Support for custom models isn't available for Copilot Business or Enterprise users.