概述
通过修改 VS Code 扩展配置文件,可启用 GitHub Copilot 对第三方 OpenAI 兼容接口的支持。
操作步骤
- 定位扩展目录:
C:\\Users\\你的用户名称\\.vscode\\extensions\\github.copilot-chat-0.35.0\\package.json
- 修改配置:
找到以下字段并修改:
{
"when": "productQualityType == 'stable'"
}
将原值 productQualityType != 'stable' 改为 productQualityType == 'stable'。
效果说明
修改后可在 Copilot 设置中添加支持 OpenAI 的第三方接口。


