Show zero price for free models (#9419)

This commit is contained in:
Matt Rubens 2025-11-19 23:18:38 -05:00 • committed by GitHub
parent 5260123689
commit 575b09f834
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,13 +69,13 @@ export const ModelInfoView = ({
].filter(Boolean)
const priceInfoItems = [
modelInfo?.inputPrice !== undefined && modelInfo.inputPrice > 0 && (
modelInfo?.inputPrice !== undefined && (
<>
<span className="font-medium">{t("settings:modelInfo.inputPrice")}:</span>{" "}
{formatPrice(modelInfo.inputPrice)} / 1M tokens
</>
),
modelInfo?.outputPrice !== undefined && modelInfo.outputPrice > 0 && (
modelInfo?.outputPrice !== undefined && (
<>
<span className="font-medium">{t("settings:modelInfo.outputPrice")}:</span>{" "}
{formatPrice(modelInfo.outputPrice)} / 1M tokens