Skip to main content

在 Copilot Chat 中使用 Claude Sonnet

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

Note

所有 Claude Sonnet 模型都位于 公共预览版 中,可能会随时发生变化。 GitHub 预发行许可条款 适用于你对本产品的使用。

关于 GitHub Copilot Chat

中的 Claude Sonnet

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

Claude Sonnet 3.7 当前可用于:

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

Claude Sonnet 3.5 当前可用于:

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

GitHub Copilot 使用 Amazon Web Services 上托管的 Claude Sonnet。 使用 Claude Sonnet 时,系统会将提示和元数据发送到 Amazon Bedrock 服务,它做出以下数据承诺Amazon Bedrock 不会存储或记录提示和完成。Amazon Bedrock 不使用你的提示和完成来训练任何 AWS 模型,也不会将它们分发给第三方

使用 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 公共预览版用户提供