feat: 新增学习引导提示词与任务类型
This commit is contained in:
+2
-2
@@ -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 必须为非空对象" });
|
||||
|
||||
Reference in New Issue
Block a user