Skip to main content

AI models for Copilot

Learn how to use alternative large language models for GitHub Copilot.

Changing the AI model for Copilot Chat

Learn how to change the default LLM for Copilot Chat to a different model.

Changing the AI model for Copilot code completion

Learn how to change the default LLM for Copilot code completion to a different model.

Choosing the right AI model for your task

Compare available AI models in Copilot Chat and choose the best model for your task.

Comparing AI models using different tasks

Explore real-world examples of common developer tasks along with sample prompts, responses, and guidance to help you choose the right AI model for your workflow.

Using Claude Sonnet in Copilot Chat

Learn how to enable Claude Sonnet in GitHub Copilot Chat for your organization or enterprise.

Using Gemini in Copilot Chat

Learn how to enable Gemini in GitHub Copilot Chat, for your organization or enterprise.

Using OpenAI GPT-4.1 in Copilot Chat

Learn how to enable OpenAI GPT-4.1 in GitHub Copilot Chat, for your organization or enterprise.

Using OpenAI o3 in Copilot Chat

Learn how to enable OpenAI o3 in GitHub Copilot Chat, for your organization or enterprise.

Using OpenAI o4-mini in Copilot Chat

Learn how to enable OpenAI o4-mini in GitHub Copilot Chat, for your organization or enterprise.