fix(ai): AI 分析预校验 + prompt 非对话化
- 四个 SSE 端点增加数据完整性校验:items/sections 为空时返回 400 - 迁移 000123 更新全部 prompt system_prompt:明确非对话、输出结构化结果 - 前端用户看到的是分析结论,不再收到"请补充数据"的对话式回复
This commit is contained in:
@@ -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),
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user