Skip to content

Commit

Permalink
fix: 模型价格
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcium-Ion committed May 21, 2024
1 parent d05a786 commit 1568d64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/components/ModelPricing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down
2 changes: 1 addition & 1 deletion web/src/helpers/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 +
Expand Down

0 comments on commit 1568d64

Please sign in to comment.