Skip to content

feat(models): expose user BYOK availability#4033

Open
chrarnoldus wants to merge 3 commits into
mainfrom
feat/model-user-byok-availability
Open

feat(models): expose user BYOK availability#4033
chrarnoldus wants to merge 3 commits into
mainfrom
feat/model-user-byok-availability

Conversation

@chrarnoldus

Copy link
Copy Markdown
Contributor

Summary

  • Add hasUserByokAvailable beside model data-collection metadata.
  • Report per-model enabled BYOK compatibility for authenticated personal and organization catalogs.
  • Keep the field absent for unauthenticated catalogs, always true for direct BYOK models, and false for non-BYOK experiment/custom models.

Verification

Not manually tested; this is an API response metadata change with no visual surface.

Visual Changes

N/A

Reviewer Notes

Kilo-exclusive models remain marked unavailable because their routing intentionally bypasses Vercel BYOK.

Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
@chrarnoldus chrarnoldus self-assigned this Jun 15, 2026
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
@kilo-code-bot

kilo-code-bot Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Executive Summary

Single formatting commit (oxfmt) on top of the prior BYOK model availability changes — no logic changes, no regressions.

Files Reviewed (6 files)
  • apps/web/src/app/api/openrouter/models/route.ts
  • apps/web/src/app/api/openrouter/models/route.test.ts
  • apps/web/src/lib/ai-gateway/byok/index.ts
  • apps/web/src/lib/ai-gateway/providers/direct-byok/index.ts
  • apps/web/src/lib/organizations/organization-models.ts
  • apps/web/src/lib/organizations/organization-types.ts
Previous Review Summary (commit da4b02a)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit da4b02a)

Status: No Issues Found | Recommendation: Merge

Files Reviewed (6 files)
  • apps/web/src/app/api/openrouter/models/route.ts
  • apps/web/src/app/api/openrouter/models/route.test.ts
  • apps/web/src/lib/ai-gateway/byok/index.ts
  • apps/web/src/lib/ai-gateway/providers/direct-byok/index.ts
  • apps/web/src/lib/organizations/organization-models.ts
  • apps/web/src/lib/organizations/organization-types.ts

Reviewed by deepseek-v4-pro-20260423 · 177,251 tokens

Review guidance: REVIEW.md from base branch main

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.

1 participant