From 1568d6481a2047c4a0370b214744198354604fa1 Mon Sep 17 00:00:00 2001 From: "1808837298@qq.com" <1808837298@qq.com> Date: Tue, 21 May 2024 21:07:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A8=A1=E5=9E=8B=E4=BB=B7=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/ModelPricing.js | 2 +- web/src/helpers/render.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/ModelPricing.js b/web/src/components/ModelPricing.js index 3699f1e8d..3a5b8c825 100644 --- a/web/src/components/ModelPricing.js +++ b/web/src/components/ModelPricing.js @@ -146,7 +146,7 @@ const ModelPricing = () => { render: (text, record, index) => { let content = text; if (record.quota_type === 0) { - let inputRatioPrice = record.model_ratio * record.group_ratio; + let inputRatioPrice = record.model_ratio * 2 * record.group_ratio; let completionRatioPrice = record.model_ratio * record.completion_ratio * diff --git a/web/src/helpers/render.js b/web/src/helpers/render.js index 8db5091c3..5815ed033 100644 --- a/web/src/helpers/render.js +++ b/web/src/helpers/render.js @@ -149,7 +149,7 @@ export function renderModelPrice( if (completionRatio === undefined) { completionRatio = 0; } - let inputRatioPrice = modelRatio * groupRatio; + let inputRatioPrice = modelRatio * 2.0 * groupRatio; let completionRatioPrice = modelRatio * completionRatio * groupRatio; let price = (inputTokens / 1000000) * inputRatioPrice +