注意
GitHub Models for organizations and repositories is in 公共预览版 and subject to change.
为什么要限制组织中的模型使用?
限制开发人员可以使用的模型有助于控制模型支出并满足治理、数据安全和合规性要求****。
如果不管理访问权限,团队可能会无意中使用不符合组织标准的模型,从而导致潜在风险,例如:
- 高价模型带来的意外成本
- 未经授权的 AI 服务导致的安全或合规性问题
- 浪费时间集成未经批准的或欠佳的模型
有关大规模使用模型的详细信息,请参阅“使用 GitHub Models 在企业中开发 AI 驱动的应用程序”。
组织模型设置的例外情况
虽然组织和仓库的 GitHub Models 处于公共预览阶段,但组织的某些模型设置在某些情况下不适用。 你的团队可以在以下位置无限制地使用 AI 模型:
- Enterprise Managed Users 组织
- 适用于 GitHub CLI 的 GitHub Models 扩展
- 适用于 GitHub Copilot Chat 的 GitHub Models 扩展
- GitHub Models VS Code 扩展
- GitHub Marketplace (https://github.com/marketplace/models) 中 GitHub Models 的操场。
为企业启用 GitHub Models
For GitHub Models to be available to your organization, an enterprise owner must first enable the feature for the enterprise.
- 在页面左侧的企业帐户边栏中,单击“ Policies”****
- Under "Policies", click Models.
- 在“Models”下的“Models in your enterprise”部分中,单击“Disabled”旁边的 ,并从下拉列表中选择“Enabled”。********
控制组织中的模型使用
注意
You can only change your organization's Models settings if your enterprise policies allow access to GitHub Models.
You can choose to enable or disable GitHub Models for your organization. You can also choose to only allow the use of selected models or model publishers.
-
在 GitHub 的右上角,选择个人资料照片,然后单击“ 你的组织”****。
-
在组织旁边,单击“设置”。
-
In the "Code, planning, and automation" section of the sidebar, click Models.
-
Under "Models", in the "Models in your organization" section, click beside Disabled and select Enabled from the dropdown.
注意
If GitHub Models is already enabled for the organization, the dropdown will show Enabled, and you can skip the step above.
-
Under "Models permissions", select one or more options.
- All publishers is the default option and indicates that models from all the current and future publishers available on the GitHub Models catalog from the GitHub Marketplace can be used in the organization.
- Only select models allows you to define a list of models and publishers:
- Available to the organization (Enabled list)
- Restricted for use in the organization (Disabled list)
Depending on your requirements, you can specify an enabled list, a disabled list, or both. Once you've added a publisher to a list, you can fine-tune the list by removing individual models from it.