如果你或你的组织采用防火墙或代理服务器等安全措施,将某些域 URL 包含在“允许列表”中并打开特定端口和协议可能很有用。 这样将可以增强 Copilot 的安装和使用,从而获得更佳体验。
要添加到允许列表的 URL
由于 Copilot 与远程机器学习模型的交互及其更新检查功能,建议在允许列表中包含以下域 URL,在用户界面或部署脚本中将它们标记为受信任。
域和/或 URL | 目的 |
---|---|
https://github.com/login/* | 身份验证 |
https://api.github.com/user | 用户管理 |
https://api.github.com/copilot_internal/* | 用户管理 |
https://copilot-telemetry.githubusercontent.com/telemetry | 遥测 |
https://default.exp-tas.com/ | 遥测 |
https://copilot-proxy.githubusercontent.com/ | Copilot 建议的 API 服务 |
https://origin-tracker.githubusercontent.com | Copilot 建议的 API 服务 |
https://*.githubcopilot.com | Copilot 建议的 API 服务 |
其他域和 URL 可能需要加入允许列表,具体取决于组织的安全策略和所用的编辑器。 有关特定编辑器的详细信息,请参阅“延伸阅读”。
注意:**** 2024 年 2 月 1 日,通过 https://copilot-proxy.githubusercontent.com
路由的 Copilot Chat API 终结点已经弃用。 这些请求会改为通过 https://api.githubcopilot.com/
路由。 请务必使用最新版本的 Copilot 扩展,并确保你的防火墙和网络设置允许与 https://api.githubcopilot.com
通信。