Skip to main content

Using OpenAI o4-mini in Copilot Chat

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

About OpenAI o4-mini in GitHub Copilot Chat

Note

o4-mini in Copilot Chat is currently in 公共预览版 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 organization and enterprise use

As an enterprise or organization owner, you can enable or disable o4-mini for everyone who has been assigned a Copilot Enterprise or Copilot Business seat through your enterprise or organization. See 管理组织中的 Copilot 策略 and 管理企业中 Copilot 的策略和功能.

Using o4-mini

For details of how to change the model that Copilot Chat uses, see 正在更改 Copilot Chat 的 AI 模型.