Skip to main content

Using OpenAI o4-mini in Copilot Chat

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

About OpenAI o4-mini in GitHub Copilot Chat

Note

o4-mini in Copilot Chat is currently in versão prévia pública 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. o4-mini 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 o4-mini, see the OpenAI documentation.

o4-mini is currently available in:

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

o4-mini 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 o4-mini, 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 o4-mini individually before you can use the model.

Setup for individual use

If you have a Copilot Free or Copilot Pro subscription, you can enable OpenAI o4-mini in two ways:

  • The first time you choose to use o4-mini with Copilot Chat in Visual Studio Code, or in the immersive view of Copilot Chat, you will be prompted to allow access to the model.

    Clicking Allow enables you to use o4-mini and updates the policy in your personal settings on GitHub.

  • You can enable the model directly in your personal settings on the GitHub website. See Como gerenciar políticas do Copilot como um assinante individual.

Setup for organization use

As an organization owner, you can enable or disable o4-mini for everyone who has been assigned a Copilot Business seat through your organization. See Gerenciar políticas do Copilot na sua organização.

Using o4-mini

For details of how to change the model that Copilot Chat uses, see Alterando o modelo de IA do Copilot Chat.