mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-03 05:19:51 +00:00
V4.6.6-1 (#656)
This commit is contained in:
@@ -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
|
||||
}
|
||||
]
|
||||
});
|
||||
|
Reference in New Issue
Block a user