diff --git a/apps/web/src/lib/ai-gateway/providers/direct-byok/sync-direct-byok.ts b/apps/web/src/lib/ai-gateway/providers/direct-byok/sync-direct-byok.ts index 31ea2868c..3d0f5a8de 100644 --- a/apps/web/src/lib/ai-gateway/providers/direct-byok/sync-direct-byok.ts +++ b/apps/web/src/lib/ai-gateway/providers/direct-byok/sync-direct-byok.ts @@ -140,9 +140,7 @@ const FETCHERS: ReadonlyArray = [ function modelIdToDisplayName(id: string) { const slash = id.lastIndexOf('/'); - const withoutVendor = slash >= 0 ? id.slice(slash + 1) : id; - const colon = withoutVendor.indexOf(':'); - return colon >= 0 ? withoutVendor.slice(0, colon) : withoutVendor; + return slash >= 0 ? id.slice(slash + 1) : id; } async function syncProvider(fetcher: ProviderFetcher, ctx: SyncContext): Promise {