讯飞code plan API通过OAI Compatible Provider for Copilot接入Vscode copilot
·
讯飞code plan API通过OAI Compatible Provider for Copilot接入Vscode copilot步骤:
1、Ctrl+shift+p 搜索 OAICopilot: Open Configuration UI
配置Url:https://maas-coding-api.cn-huabei-1.xf-yun.com/v2
API key:从讯飞星辰中获取
2、ctrl+, 搜索OAI,在setting.json中编辑

找到"oaicopilot.models":加入以下配置,没有就新增:
“oaicopilot.models”: [
{
"id": "astron-code-latest",
"owned_by": "xfyun",
"context_length": 204800,
"max_tokens": 131072,
}
]

更多推荐




所有评论(0)