perf: embedding price and img

This commit is contained in:
archer
2023-05-09 12:44:28 +08:00
parent b200731d17
commit fac53923dd
5 changed files with 8 additions and 5 deletions

View File

@@ -128,8 +128,9 @@ export const pushGenerateVectorBill = async ({
try {
const unitPrice = 0.4;
// 计算价格. 至少为1
let price = unitPrice * tokenLen;
price = price > 1 ? price : 1;
const price = 0;
// let price = unitPrice * tokenLen;
// price = price > 1 ? price : 1;
// 插入 Bill 记录
const res = await Bill.create({