feat: 新增学习引导提示词与任务类型

This commit is contained in:
2026-10-09 19:26:50 +08:00
parent e359e58ff2
commit fb3c6f9933
4 changed files with 67 additions and 5 deletions
+2 -2
View File
@@ -65,8 +65,8 @@ export async function aiRoutes(app: FastifyInstance): Promise<void> {
.send({ error: "提交太频繁了,请稍后再试" });
}
if (!type || !["aggregate-report", "generate-mind-map", "compare-recall"].includes(type)) {
return reply.status(400).send({ error: "无效的 type,允许: aggregate-report, generate-mind-map, compare-recall" });
if (!type || !["aggregate-report", "generate-mind-map", "compare-recall", "guidance"].includes(type)) {
return reply.status(400).send({ error: "无效的 type,允许: aggregate-report, generate-mind-map, compare-recall, guidance" });
}
if (!params || typeof params !== "object") {
return reply.status(400).send({ error: "params 必须为非空对象" });