Skip to content

Latest commit

 

History

History
70 lines (44 loc) · 6.82 KB

using-claude-sonnet-in-github-copilot.md

File metadata and controls

70 lines (44 loc) · 6.82 KB
title allowTitleToDifferFromFilename shortTitle intro versions topics redirect_from
Using Claude Sonnet in Copilot Chat
true
Use {% data variables.copilot.copilot_claude_sonnet %}
Learn how to enable {% data variables.copilot.copilot_claude_sonnet %} in {% data variables.product.prodname_copilot_chat %} for {% ifversion fpt %}yourself or{% endif %} your organization{% ifversion ghec %} or enterprise{% endif %}.
feature
copilot
Copilot
/copilot/using-github-copilot/using-claude-sonnet-in-github-copilot

About {% data variables.copilot.copilot_claude_sonnet %} in {% data variables.product.prodname_copilot_chat %}

{% data variables.copilot.copilot_claude_sonnet %} is 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 %}. {% data variables.copilot.copilot_claude_sonnet %} excels at coding tasks across the entire software development lifecycle, from initial design to bug fixes, maintenance to optimizations. Learn more about Sonnet's capabilities.

{% data variables.copilot.copilot_claude_sonnet_37 %} 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 %}

{% data variables.copilot.copilot_claude_sonnet_35 %} 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.12 or later
  • Immersive mode in {% data variables.product.prodname_copilot_chat_short %} in {% data variables.product.github %}

{% data variables.copilot.copilot_claude_sonnet_37 %} is hosted by Amazon Web Services, Anthropic PBC, and Google Cloud Platform when used in {% data variables.product.prodname_copilot %}. {% data variables.copilot.copilot_claude_sonnet_35 %} is hosted exclusively by Amazon Web Services. GitHub has provider agreements in place to ensure data is not used for training. Additional details for each provider are included below:

In order to provide better service quality and reduce latency, GitHub uses prompt caching. You can read more about prompt caching on Anthropic PBC, Amazon Bedrock, and Google Cloud.

When using {% data variables.copilot.copilot_claude_sonnet %}, 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 each {% data variables.copilot.copilot_claude_sonnet %} individually before you can use the model.

{% ifversion fpt %}

Setup for individual use

[!NOTE] {% data variables.copilot.copilot_claude_sonnet_37 %} is not currently available for {% data variables.product.prodname_copilot_free_short %}.

If you have a {% data variables.product.prodname_copilot_free_short %} or {% data variables.product.prodname_copilot_pro_short %} subscription, you can enable {% data variables.copilot.copilot_claude_sonnet %} in two ways:

  • The first time you choose to use {% data variables.copilot.copilot_claude_sonnet %} models 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 {% data variables.copilot.copilot_claude_sonnet %} 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 {% data variables.copilot.copilot_claude_sonnet %} models 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 {% data variables.copilot.copilot_claude_sonnet %}

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

Leaving feedback

To leave feedback about {% data variables.copilot.copilot_claude_sonnet %} in {% data variables.product.prodname_copilot %}, or to ask a question, see the {% data variables.product.prodname_github_community %} discussion Claude 3.5 Sonnet is now available to all {% data variables.product.prodname_copilot_short %} users in Public Preview.