perf: openapi. error catch

This commit is contained in:
archer
2023-04-10 13:16:24 +08:00
parent a7988c164e
commit 9b1c0e1a3c
8 changed files with 74 additions and 20 deletions

View File

@@ -123,7 +123,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
formatRedisPrompt.unshift(prompts.shift()?.value || '');
}
// textArr 筛选,最多 2800 tokens
// 系统提示词筛选,最多 2800 tokens
const systemPrompt = systemPromptFilter(formatRedisPrompt, 2800);
prompts.unshift({