fix(ai): AI 分析预校验 + prompt 非对话化
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

- 四个 SSE 端点增加数据完整性校验:items/sections 为空时返回 400
- 迁移 000123 更新全部 prompt system_prompt:明确非对话、输出结构化结果
- 前端用户看到的是分析结论,不再收到"请补充数据"的对话式回复
This commit is contained in:
iven
2026-05-05 19:53:04 +08:00
parent 1f91dcc5cc
commit a62332f1c4
3 changed files with 135 additions and 0 deletions

View File

@@ -122,6 +122,7 @@ mod m20260505_000119_enable_pgvector;
mod m20260505_000120_create_ai_knowledge_rules;
mod m20260505_000121_create_ai_knowledge_references;
mod m20260505_000122_create_ai_knowledge_guides;
mod m20260505_000123_update_ai_prompts_system_instruction;
pub struct Migrator;
@@ -251,6 +252,7 @@ impl MigratorTrait for Migrator {
Box::new(m20260505_000120_create_ai_knowledge_rules::Migration),
Box::new(m20260505_000121_create_ai_knowledge_references::Migration),
Box::new(m20260505_000122_create_ai_knowledge_guides::Migration),
Box::new(m20260505_000123_update_ai_prompts_system_instruction::Migration),
]
}
}