1
0
mirror of synced 2025-12-20 10:28:40 -05:00
Files
docs/content/copilot/using-github-copilot/ai-models/using-openai-gpt-41-in-github-copilot.md
2025-04-14 17:13:49 +00:00

4.0 KiB

title, allowTitleToDifferFromFilename, shortTitle, intro, versions, topics
title allowTitleToDifferFromFilename shortTitle intro versions topics
Using OpenAI GPT-4.1 in Copilot Chat true Use OpenAI GPT-4.1 Learn how to enable OpenAI GPT-4.1 in {% data variables.product.prodname_copilot_chat %}, for {% ifversion fpt %}yourself or{% endif %} your organization{% ifversion ghec %} or enterprise{% endif %}.
feature
copilot
Copilot

About OpenAI GPT-4.1 in {% data variables.product.prodname_copilot_chat %}

OpenAI has a family of large language models that you can use as an alternative to the default model used by {% data variables.product.prodname_copilot_chat_short %}. 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:

  • {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vscode %}
  • {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vs %} 2022 version 17.13 or later
  • Immersive mode in {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.github %}

GPT-4.1 is hosted by OpenAI and GitHub's Azure tenant when used in {% data variables.product.prodname_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 {% data variables.product.prodname_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.

{% ifversion fpt %}

Setup for individual use

If you have a {% data variables.product.prodname_copilot_free_short %} or {% data variables.product.prodname_copilot_pro_short %} subscription, you can enable OpenAI GPT-4.1 in two ways:

  • The first time you choose to use GPT-4.1 with {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.prodname_vscode %}, or in the immersive view of {% data variables.product.prodname_copilot_chat_short %}, you will be prompted to allow access to the model.

    Clicking Allow enables you to use GPT-4.1 and updates the policy in your personal settings on {% data variables.product.github %}.

  • You can enable the model directly in your personal settings on the {% data variables.product.github %} website. See AUTOTITLE.

{% endif %}

Setup for organization {% ifversion ghec %}and enterprise{% endif %} use

As an {% ifversion ghec %}enterprise or{% endif %} organization owner, you can enable or disable GPT-4.1 for everyone who has been assigned a {% ifversion ghec %}{% data variables.product.prodname_copilot_enterprise_short %} or {% endif %}{% data variables.product.prodname_copilot_business_short %} seat through your {% ifversion ghec %}enterprise or {% endif %}organization. See AUTOTITLE{% ifversion ghec %} and AUTOTITLE{% endif %}.

Using GPT-4.1

For details of how to change the model that {% data variables.product.prodname_copilot_chat_short %} uses, see AUTOTITLE.