feat: 一次性获取data集合

This commit is contained in:
archer
2023-03-27 18:55:38 +08:00
parent 5249297cb1
commit af385b1b42
5 changed files with 107 additions and 131 deletions

View File

@@ -7,6 +7,8 @@ import { ChatModelNameEnum } from '@/constants/model';
import { pushSplitDataBill } from '@/service/events/pushBill';
export async function generateAbstract(next = false): Promise<any> {
if (process.env.NODE_ENV === 'development') return;
if (global.generatingAbstract && !next) return;
global.generatingAbstract = true;

View File

@@ -7,6 +7,8 @@ import { ChatModelNameEnum } from '@/constants/model';
import { pushSplitDataBill } from '@/service/events/pushBill';
export async function generateQA(next = false): Promise<any> {
if (process.env.NODE_ENV === 'development') return;
if (global.generatingQA && !next) return;
global.generatingQA = true;