Skip to content

Show supported models on BYOK management pages#571

Merged
chrarnoldus merged 5 commits intomainfrom
session/agent_347238ea-a0b4-4826-aa82-4e4077b2e7a0
Feb 25, 2026
Merged

Show supported models on BYOK management pages#571
chrarnoldus merged 5 commits intomainfrom
session/agent_347238ea-a0b4-4826-aa82-4e4077b2e7a0

Conversation

@chrarnoldus
Copy link
Contributor

@chrarnoldus chrarnoldus commented Feb 25, 2026

CleanShot 2026-02-25 at 16 52 27@2x

@chrarnoldus chrarnoldus marked this pull request as ready for review February 25, 2026 15:54
if (!providerParsed.success) continue;
const providerId = providerParsed.data;
if (!result[providerId]) result[providerId] = [];
result[providerId].push(model.name);
Copy link
Contributor

Choose a reason for hiding this comment

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

WARNING: Duplicate model names can be returned for a provider

model.name is pushed once per matching endpoint, so models with multiple endpoints tagged to the same provider will appear multiple times in the response/UI. This can produce confusing duplicate entries in both the key list and the add-key dialog. Consider deduplicating per provider (for example via a Set) before sorting/returning.

@kiloconnect
Copy link
Contributor

kiloconnect bot commented Feb 25, 2026

Code Review Summary

Status: 1 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
src/routers/byok-router.ts 58 Duplicate model names can be returned for a provider when a model has multiple endpoints with the same provider tag.
Other Observations (not in diff)

Issues found in unchanged code that cannot receive inline comments:

None.

Files Reviewed (3 files)
  • src/components/organizations/byok/BYOKKeysManager.tsx - 0 issues
  • src/lib/providers/vercel/types.ts - 0 issues
  • src/routers/byok-router.ts - 1 issue

Fix these issues in Kilo Cloud

@chrarnoldus chrarnoldus merged commit 429605e into main Feb 25, 2026
12 checks passed
@chrarnoldus chrarnoldus deleted the session/agent_347238ea-a0b4-4826-aa82-4e4077b2e7a0 branch February 25, 2026 16:20
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.

2 participants