This commit is contained in:
Archer
2023-11-28 19:28:46 +08:00
committed by GitHub
parent e765c3bf95
commit a74e1d7166
75 changed files with 1139 additions and 417 deletions

View File

@@ -239,3 +239,35 @@ export function pushWhisperBill({
]
});
}
export function pushReRankBill({
teamId,
tmbId,
source
}: {
teamId: string;
tmbId: string;
source: `${BillSourceEnum}`;
}) {
const model = global.reRankModels[0];
if (!model) return;
const total = model.price * PRICE_SCALE;
const name = 'wallet.bill.ReRank';
createBill({
teamId,
tmbId,
appName: name,
total,
source,
list: [
{
moduleName: name,
amount: total,
model: model.name,
tokenLen: 1
}
]
});
}