diff --git a/src/ts/model/openrouter.ts b/src/ts/model/openrouter.ts index be1cbce4..7bc358e3 100644 --- a/src/ts/model/openrouter.ts +++ b/src/ts/model/openrouter.ts @@ -15,7 +15,8 @@ export async function openRouterModels() { const res = await (await aim).json() return res.data.map((model: any) => { let name = model.name - let price = ((model.pricing.prompt * 3) + model.pricing.completion) / 4 + let price = ((Number(model.pricing.prompt) * 3) + Number(model.pricing.completion)) / 4 + console.log(model.pricing, price) if(price > 0){ name += ` - $${(price*1000).toFixed(5)}/1k` }