This commit is contained in:
Archer
2023-12-27 11:07:39 +08:00
committed by GitHub
parent 86286efb54
commit 759a2330e6
182 changed files with 3099 additions and 81685 deletions

View File

@@ -258,9 +258,9 @@ export function pushReRankBill({
if (!model) return { total: 0 };
const textLength = inputs.reduce((sum, item) => sum + item.text.length, 0);
const ratio = Math.ceil(textLength / 1000);
const ratio = textLength / 1000;
const total = model.price * PRICE_SCALE * ratio;
const total = Math.ceil(model.price * PRICE_SCALE * ratio);
const name = 'wallet.bill.ReRank';
createBill({
@@ -274,7 +274,7 @@ export function pushReRankBill({
moduleName: name,
amount: total,
model: model.name,
tokenLen: 1
tokenLen: textLength
}
]
});