feat: lafgpt。openapi schema

This commit is contained in:
archer
2023-04-06 15:25:48 +08:00
parent 8a02b3b04a
commit f88c6031f5
6 changed files with 85 additions and 54 deletions

View File

@@ -105,8 +105,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
throw new Error('对不起,我没有找到你的问题');
}
// textArr 筛选,最多 3000 tokens
const systemPrompt = systemPromptFilter(formatRedisPrompt, 3400);
// textArr 筛选,最多 3200 tokens
const systemPrompt = systemPromptFilter(formatRedisPrompt, 3200);
prompts.unshift({
obj: 'SYSTEM',