1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-12-02 20:22:52 +00:00

show image pricing too

This commit is contained in:
Laura
2025-09-30 22:40:03 +02:00
parent 592262f95c
commit 6ef49cc3e8
2 changed files with 8 additions and 2 deletions

View File

@@ -1456,10 +1456,13 @@
model.name,
separator,
`Created:\t\t${formatTimestamp(model.created)}`,
`Pricing/1M:\t$${fixed(model.pricing.input, 2)} In | $${fixed(model.pricing.output, 2)} Out`,
`Pricing/1M:\t${formatMoney(model.pricing.input)} In | ${formatMoney(model.pricing.output)} Out`,
model.pricing.image ? `Images:\t\t${formatMoney(model.pricing.image)} each` : null,
separator,
stripMarkdown(model.description),
].join("\n");
]
.filter(Boolean)
.join("\n");
el.value = model.id;
el.textContent = model.name;