mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
feat: user openai account
This commit is contained in:
@@ -19,7 +19,7 @@ export const pushTaskBill = async ({
|
||||
shareId?: string;
|
||||
response: ChatHistoryItemResType[];
|
||||
}) => {
|
||||
const total = response.reduce((sum, item) => sum + item.price, 0);
|
||||
const total = response.reduce((sum, item) => sum + item.price, 0) || 1;
|
||||
|
||||
await Promise.allSettled([
|
||||
Bill.create({
|
||||
|
Reference in New Issue
Block a user