fix: 账单余额问题

This commit is contained in:
archer
2023-04-04 21:32:51 +08:00
parent c12aa7fdf7
commit b13c3c4da5
7 changed files with 32 additions and 45 deletions

View File

@@ -90,7 +90,7 @@ export const pushSplitDataBill = async ({
try {
// 获取模型单价格, 都是用 gpt35 拆分
const modelItem = modelList.find((item) => item.model === ChatModelNameEnum.GPT35);
const unitPrice = modelItem?.price || 5;
const unitPrice = modelItem?.price || 3;
// 计算价格
const price = unitPrice * tokens.length;