豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Allow specifying custom BYOK known model list#4438

Open
dolfies wants to merge 4 commits intomicrosoft:mainfrom
dolfies:feat/custom-byok-models
Open

Allow specifying custom BYOK known model list#4438
dolfies wants to merge 4 commits intomicrosoft:mainfrom
dolfies:feat/custom-byok-models

Conversation

@dolfies
Copy link
Copy Markdown

@dolfies dolfies commented Mar 17, 2026

Currently, the list of models supported by BYOK is hosted at a hardcoded URL on the VSCode CDN. This makes contributing to or configuring the list of models quite difficult.

This PR adds a simple option to allow users to point the list to a URL of their choosing (e.g. a gist), for customizability and aiding development.

Copilot AI review requested due to automatic review settings March 17, 2026 05:01
@dolfies
Copy link
Copy Markdown
Author

dolfies commented Mar 17, 2026

@microsoft-github-policy-service agree

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a user-configurable setting to override the BYOK “known models” JSON endpoint (previously hardcoded to a VS Code CDN URL), enabling custom model lists (e.g., via a gist) to be used by BYOK providers.

Changes:

  • Introduces a new configuration key for the BYOK model info URL with a default pointing to the existing CDN JSON.
  • Updates BYOK provider registration flow to fetch the known model list from the configured URL.
  • Exposes the new setting in package.json and localizes its description in package.nls.json.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/platform/configuration/common/configurationService.ts Adds ConfigKey.BYOKModelInfoUrl configuration key with a default CDN URL.
src/extension/byok/vscode-node/byokContribution.ts Reads the configured URL and uses it when fetching the BYOK known model list.
package.nls.json Adds localized description string for the new setting.
package.json Contributes github.copilot.chat.byok.modelInfoUrl to the extension’s settings.

Comment thread src/extension/byok/vscode-node/byokContribution.ts
Comment thread src/extension/byok/vscode-node/byokContribution.ts
Comment thread package.json
@bpasero bpasero assigned lramos15 and unassigned bpasero Mar 17, 2026
@dolfies
Copy link
Copy Markdown
Author

dolfies commented Mar 30, 2026

Are there any blockers on a review here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants