Skip to content

Commit af5c677

Browse files
committed
Show zero price for free models
1 parent e618d88 commit af5c677

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webview-ui/src/components/settings/ModelInfoView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ export const ModelInfoView = ({
6969
].filter(Boolean)
7070

7171
const priceInfoItems = [
72-
modelInfo?.inputPrice !== undefined && modelInfo.inputPrice > 0 && (
72+
modelInfo?.inputPrice !== undefined && (
7373
<>
7474
<span className="font-medium">{t("settings:modelInfo.inputPrice")}:</span>{" "}
7575
{formatPrice(modelInfo.inputPrice)} / 1M tokens
7676
</>
7777
),
78-
modelInfo?.outputPrice !== undefined && modelInfo.outputPrice > 0 && (
78+
modelInfo?.outputPrice !== undefined && (
7979
<>
8080
<span className="font-medium">{t("settings:modelInfo.outputPrice")}:</span>{" "}
8181
{formatPrice(modelInfo.outputPrice)} / 1M tokens

0 commit comments

Comments
 (0)