perf: 生成对话框时机
This commit is contained in:
@@ -14,7 +14,7 @@ export const pushChatBill = async ({
|
||||
isPay: boolean;
|
||||
modelName: string;
|
||||
userId: string;
|
||||
chatId?: string;
|
||||
chatId?: '' | string;
|
||||
text: string;
|
||||
}) => {
|
||||
let billId;
|
||||
@@ -42,7 +42,7 @@ export const pushChatBill = async ({
|
||||
userId,
|
||||
type: 'chat',
|
||||
modelName,
|
||||
chatId,
|
||||
chatId: chatId ? chatId : undefined,
|
||||
textLen: text.length,
|
||||
tokenLen: tokens,
|
||||
price
|
||||
|
||||
Reference in New Issue
Block a user