perf: 去除冗余代码

This commit is contained in:
archer
2023-04-26 21:59:22 +08:00
parent 0540c2e46a
commit 46eb96c72e
34 changed files with 36 additions and 851 deletions

View File

@@ -7,7 +7,6 @@ import {
embeddingModel
} from '@/constants/model';
import { BillTypeEnum } from '@/constants/user';
import type { DataType } from '@/types/data';
import { countChatTokens } from '@/utils/tools';
export const pushChatBill = async ({
@@ -81,7 +80,7 @@ export const pushSplitDataBill = async ({
userId: string;
tokenLen: number;
text: string;
type: DataType;
type: `${BillTypeEnum}`;
}) => {
await connectToDatabase();