fix: costs being 0 when using custom model id overrides (#4219)

This commit is contained in:
Aiden Cline
2025-11-11 13:58:14 -08:00
committed by GitHub
parent e1fc4a756b
commit c5e096c76a
2 changed files with 42 additions and 6 deletions

View File

@@ -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,