fix: 模型价格
Some checks failed
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
Some checks failed
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
This commit is contained in:
parent
99f00404d8
commit
f84c9d3434
@ -146,7 +146,7 @@ const ModelPricing = () => {
|
|||||||
render: (text, record, index) => {
|
render: (text, record, index) => {
|
||||||
let content = text;
|
let content = text;
|
||||||
if (record.quota_type === 0) {
|
if (record.quota_type === 0) {
|
||||||
let inputRatioPrice = record.model_ratio * record.group_ratio;
|
let inputRatioPrice = record.model_ratio * 2 * record.group_ratio;
|
||||||
let completionRatioPrice =
|
let completionRatioPrice =
|
||||||
record.model_ratio *
|
record.model_ratio *
|
||||||
record.completion_ratio *
|
record.completion_ratio *
|
||||||
|
|||||||
@ -149,7 +149,7 @@ export function renderModelPrice(
|
|||||||
if (completionRatio === undefined) {
|
if (completionRatio === undefined) {
|
||||||
completionRatio = 0;
|
completionRatio = 0;
|
||||||
}
|
}
|
||||||
let inputRatioPrice = modelRatio * groupRatio;
|
let inputRatioPrice = modelRatio * 2.0 * groupRatio;
|
||||||
let completionRatioPrice = modelRatio * completionRatio * groupRatio;
|
let completionRatioPrice = modelRatio * completionRatio * groupRatio;
|
||||||
let price =
|
let price =
|
||||||
(inputTokens / 1000000) * inputRatioPrice +
|
(inputTokens / 1000000) * inputRatioPrice +
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user