Skip to content

Update Kimi family model capabilities to match BYOK models#324814

Merged
vritant24 merged 1 commit into
mainfrom
dev/vritant24/kimiByokPrompt
Jul 7, 2026
Merged

Update Kimi family model capabilities to match BYOK models#324814
vritant24 merged 1 commit into
mainfrom
dev/vritant24/kimiByokPrompt

Conversation

@vritant24

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings July 7, 2026 18:54
@vritant24 vritant24 self-assigned this Jul 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the isKimiFamily model detection so that Kimi capability overrides also apply to BYOK (bring-your-own-key) model identifiers that include a provider prefix (e.g. moonshot/kimi-k2.7-code). Previously isKimiFamily used startsWith, which only matched bare family names like kimi-k2.7-code and missed provider-namespaced IDs. This ensures Kimi models routed through BYOK get the same edit-tool capabilities (replace-string tools, no apply-patch) as the built-in models.

Changes:

  • Switched the internal matcher in isKimiFamily from startsWith to includes for kimi-k2.6 and kimi-k2.7-code.
  • Added test cases covering moonshot/-prefixed Kimi IDs and fixed a comment indentation in the test file.
Show a summary per file
File Description
extensions/copilot/src/platform/endpoint/common/chatModelCapabilities.ts Broadens isKimiFamily matching to substring so provider-prefixed BYOK IDs are detected.
extensions/copilot/src/platform/endpoint/test/node/chatModelCapabilities.spec.ts Adds moonshot/kimi-* cases to the capability test and fixes a comment indentation.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Medium

@vritant24 vritant24 enabled auto-merge July 7, 2026 21:09
@vritant24 vritant24 merged commit 4f9cbeb into main Jul 7, 2026
47 of 48 checks passed
@vritant24 vritant24 deleted the dev/vritant24/kimiByokPrompt branch July 7, 2026 21:22
@vs-code-engineering vs-code-engineering Bot added this to the 1.129.0 milestone Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants