Skip to main content

在 Copilot Chat 中使用 Claude Sonnet

了解如何在 GitHub Copilot Chat 中为你的组织或企业启用 Claude Sonnet。

关于 GitHub Copilot Chat

中的 Claude Sonnet

Claude Sonnet 是一系列大型语言模型,可以作为 Copilot Chat 使用的默认模型的替代模型。 Claude Sonnet 在整个软件开发生命周期(从初始设计到 bug 修复、维护到优化)中的任务编码方面表现出色。 详细了解 Sonnet 的功能

Claude 3.7 Sonnet 当前可用于:

  • Visual Studio Code 中的 Copilot Chat
  • Visual Studio 2022 版本 17.13 或更高版本中的 Copilot Chat
  • GitHub 中 Copilot Chat 中的沉浸式模式

Claude 3.5 Sonnet 当前可用于:

  • Visual Studio Code 中的 Copilot Chat
  • Visual Studio 2022 版本 17.12 或更高版本中的 Copilot Chat
  • GitHub 中 Copilot Chat 中的沉浸式模式

Claude 3.7 Sonnet 在 GitHub Copilot 中使用时,由 Amazon Web Services、Anthropic PBC 和 Google Cloud Platform 托管。 Claude 3.5 Sonnet 由 Amazon Web Services 专门托管。 GitHub 已与服务提供商签订协议,以确保数据不会被用于训练。 下面列出了每个提供商的其他详细信息:

为了提供更好的服务质量并减少延迟,GitHub 使用提示缓存。 可以阅读有关 Anthropic PBCAmazon BedrockGoogle Cloud 上的提示缓存的详细信息。

使用 Claude Sonnet 时,输入提示和输出完成将继续通过 GitHub Copilot 的内容筛选器运行,这些筛选器会进行公共代码匹配(如果应用),同时筛选有害、冒犯性或偏离主题的内容。

配置访问权限

必须先单独启用对每个 Claude Sonnet 的访问,然后才能使用该模型。

针对组织和企业使用的设置

作为企业或组织所有者,你可以为已通过你的企业或组织获得 Copilot Enterprise 或 Copilot Business 席位的每个人启用或禁用 Claude Sonnet 模型。 请参阅“管理组织中的 Copilot 策略”和“管理企业中 Copilot 的策略和功能”。

使用 Claude Sonnet

有关如何更改 Copilot Chat 使用的模型的详细信息,请参阅“正在更改 Copilot Chat 的 AI 模型”。

留下反馈

若要提供有关 GitHub Copilot 中 Claude Sonnet 的反馈,或询问一个问题,请参阅 GitHub Community 讨论 Claude 3.5 Sonnet 现已面向所有 Copilot 公共预览版用户提供