官方更新 GitHub Changelog Mon, 19 Oct 2026 正文 ok 99 words

GitHub 推出面向企业、组织与团队的 Copilot 模型策略管理 API

英文标题:Copilot model policy API for enterprise, orgs, and teams

GitHub 宣布正式推出用于管理 Copilot 模型策略的 REST API,支持企业、企业团队、企业应用和组织四个层级。管理员现在可以通过 GET 和 PATCH 端点以编程方式检索与更新 Copilot 模型的可用性规则。企业既能在组织模式下将模型控制权限委派给各个组织,也能在企业团队模式下下放给特定团队及应用。这一更新为大型企业提供了策略即代码(Policy-as-Code)的能力,大幅提升了对 AI 编码助手模型分发与合规治理的自动化管控效率。
打开原文相关 2 · 机会 5
media16.2 KB media25.6 KB

中文

现在,您可以使用 REST API 来检索并更新企业、企业团队、企业应用以及组织的 Copilot 模型策略。

针对以下四个层级的模型策略,GET 和 PATCH 端点现已正式全面可用(GA):

  • 企业(Enterprise):/enterprises/{enterprise}/copilot/model-policies
  • 企业团队(Enterprise teams):/enterprises/{enterprise}/teams/{team_slug}/copilot/model-policies
  • 企业应用(Enterprise apps):/enterprises/{enterprise}/copilot/apps/model-policies
  • 组织(Organization):/orgs/{org}/copilot/model-policies

综合使用这些端点,可以更轻松地在整个企业范围内管理 Copilot 模型的可用性。企业策略可以在组织模式下将模型控制权委派给各组织,也可以在企业团队模式下将其委派给具体团队和应用。您可以参考我们关于在企业中管理模型可用性的文档以及 REST API 文档开始上手使用。

English / 原文

You can now use the REST API to retrieve and update Copilot model policies for enterprises, enterprise teams, enterprise apps, and organizations.

GET and PATCH endpoints are now generally available for model policies at four levels:

  • Enterprise: /enterprises/{enterprise}/copilot/model-policies
  • Enterprise teams: /enterprises/{enterprise}/teams/{team_slug}/copilot/model-policies
  • Enterprise apps: /enterprises/{enterprise}/copilot/apps/model-policies
  • Organization: /orgs/{org}/copilot/model-policies

Together, these endpoints make it easier to manage Copilot model availability across your enterprise. Enterprise policies can delegate model control to organizations in organization mode, or to teams and apps in enterprise teams mode. Reference our documentation on managing availability of models in your enterprise and our REST API documentation to get started.