Files
gaokao-volunteer-system/admin
Hermes Agent a3d8c73a84
Some checks failed
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
feat(llm): AuditService LLM增强 + 完整规划页 LLM方案生成
AuditService:
- 新增 llm_client 构造参数
- audit() 完成规则检查后, 如果 LLM 已配置, 调用 LLM 做深度风险分析
- _llm_enhance_audit(): 调用 build_audit_prompt, 解析 key_findings/suggestions,
  以 🤖 前缀注入 suggestions 列表头部
- LLM 未配置或调用失败时, 自动回退到纯规则审核结果

完整规划页 (_render_full_plan_placeholder_page):
- 新增 settings 参数
- 如果 LLM 已配置, 调用 build_full_plan_prompt 生成完整志愿方案
- 渲染为结构化表格: 档位(冲🔴/稳🟢/保🔵) + 院校 + 专业 + 推荐理由
- 输出 overall_assessment, strategy, warnings
- LLM 调用失败时显示'AI 方案生成暂时不可用'而非空白

调用链:
- full_plan_page 路由传递 settings 到渲染函数

验证: pytest 32 passed (llm 12 + web_public 20)
2026-06-28 12:36:06 +08:00
..
2026-06-13 14:49:58 +08:00
2026-06-13 14:49:58 +08:00
2026-06-13 14:49:58 +08:00
2026-06-13 14:49:58 +08:00
2026-06-13 14:49:58 +08:00
2026-06-13 14:49:58 +08:00