We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5d2dc2 commit 4bfea79Copy full SHA for 4bfea79
1 file changed
apps/web/src/lib/ai-gateway/providers/direct-byok/sync-direct-byok.ts
@@ -140,9 +140,7 @@ const FETCHERS: ReadonlyArray<ProviderFetcher> = [
140
141
function modelIdToDisplayName(id: string) {
142
const slash = id.lastIndexOf('/');
143
- const withoutVendor = slash >= 0 ? id.slice(slash + 1) : id;
144
- const colon = withoutVendor.indexOf(':');
145
- return colon >= 0 ? withoutVendor.slice(0, colon) : withoutVendor;
+ return slash >= 0 ? id.slice(slash + 1) : id;
146
}
147
148
async function syncProvider(fetcher: ProviderFetcher, ctx: SyncContext): Promise<number> {
0 commit comments