Skip to main content

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.

About OpenAI GPT-4.1 in GitHub Copilot Chat

Note

GPT-4.1 in Copilot Chat is currently in public preview and subject to change.

OpenAI has a family of large language models that you can use as an alternative to the default model used by Copilot Chat. GPT-4.1 is one of those models and excels at coding tasks across the entire software development lifecycle, from initial design to bug fixes, maintenance to optimizations. For information about the capabilities of GPT-4.1, see the OpenAI documentation.

GPT-4.1 is currently available in:

  • Copilot Chat in Visual Studio Code
  • Immersive mode in Copilot Chat in GitHub

GPT-4.1 is hosted by OpenAI and GitHub's Azure tenant when used in GitHub Copilot. OpenAI makes the following data commitment: We [OpenAI] do not train our models on your business data by default. GitHub maintains a zero data retention agreement with OpenAI.

When using GPT-4.1, input prompts and output completions continue to run through GitHub Copilot's content filters for public code matching, when applied, along with those for harmful, offensive, or off-topic content.

Configuring access

You must enable access to OpenAI GPT-4.1 individually before you can use the model.

Setup for organization and enterprise use

As an enterprise or organization owner, you can enable or disable GPT-4.1 for everyone who has been assigned a Copilot Enterprise or Copilot Business seat through your enterprise or organization. See Managing policies for Copilot in your organization and Managing policies and features for Copilot in your enterprise.

Using GPT-4.1

For details of how to change the model that Copilot Chat uses, see Changing the AI model for Copilot Chat.