fix: costs being 0 when using custom model id overrides (#4219)
This commit is contained in:
@@ -289,7 +289,7 @@ export namespace Provider {
|
||||
}
|
||||
|
||||
for (const [modelID, model] of Object.entries(provider.models ?? {})) {
|
||||
const existing = parsed.models[modelID]
|
||||
const existing = parsed.models[model.id ?? modelID]
|
||||
const parsedModel: ModelsDev.Model = {
|
||||
id: modelID,
|
||||
name: model.name ?? existing?.name ?? modelID,
|
||||
|
||||
Reference in New Issue
Block a user