讯飞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,
    }
]

在这里插入图片描述

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐