perf: log和向量对话
This commit is contained in:
@@ -34,7 +34,6 @@ export const pushChatBill = async ({
|
||||
// 计算价格
|
||||
const unitPrice = modelItem?.price || 5;
|
||||
const price = unitPrice * tokens;
|
||||
console.log(`unit price: ${unitPrice}, price: ${formatPrice(price)}元`);
|
||||
|
||||
try {
|
||||
// 插入 Bill 记录
|
||||
@@ -91,8 +90,6 @@ export const pushSplitDataBill = async ({
|
||||
// 计算价格
|
||||
const price = unitPrice * tokenLen;
|
||||
|
||||
console.log(`price: ${formatPrice(price)}元`);
|
||||
|
||||
// 插入 Bill 记录
|
||||
const res = await Bill.create({
|
||||
userId,
|
||||
@@ -143,8 +140,6 @@ export const pushGenerateVectorBill = async ({
|
||||
let price = unitPrice * tokenLen;
|
||||
price = price > 1 ? price : 1;
|
||||
|
||||
console.log(`price: ${formatPrice(price)}元`);
|
||||
|
||||
// 插入 Bill 记录
|
||||
const res = await Bill.create({
|
||||
userId,
|
||||
|
||||
Reference in New Issue
Block a user