perf: quote response

This commit is contained in:
archer
2023-07-17 16:12:51 +08:00
parent 60a9dfb55f
commit 53a4d9db05
20 changed files with 215 additions and 173 deletions

View File

@@ -42,11 +42,11 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
export function gpt_chatItemTokenSlice({
messages,
model,
model = 'gpt-3.5-turbo',
maxToken
}: {
messages: ChatItemType[];
model: ModelType;
model?: ModelType;
maxToken: number;
}) {
let result: ChatItemType[] = [];