Skip to content

Commit 4bfea79

Browse files
refactor(direct-byok): only strip vendor prefix from model id (#3007)
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
1 parent f5d2dc2 commit 4bfea79

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

apps/web/src/lib/ai-gateway/providers/direct-byok/sync-direct-byok.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ const FETCHERS: ReadonlyArray<ProviderFetcher> = [
140140

141141
function modelIdToDisplayName(id: string) {
142142
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;
143+
return slash >= 0 ? id.slice(slash + 1) : id;
146144
}
147145

148146
async function syncProvider(fetcher: ProviderFetcher, ctx: SyncContext): Promise<number> {

0 commit comments

Comments
 (0)