llm-ai-assistant #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "llm-ai-assistant"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
端到端发现: 原 _INTENT_SCHEMA.format() 遇到 JSON 字面 { } 抛 KeyError, 仅 LlM_ENABLED=1 时才暴露(单元测试默认关闭未触发)。修复改为 replace 占位符; 新增 is_offtopic 机械兜底, 无关问题(天气/问候/时间等且无经营锚点)->help; 收紧经营锚点避免纯时间词误判。 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>根因: _TIME_KEYWORDS['today'] = ['今天','今日','当天','昨'], today 先于 yesterday 被匹配, 导致 '昨天'/'昨日'/'昨晚' 全部落入今日口径。 用户在日常 start.py(LLM_ENABLED 未设)启动的实例上提问「昨天营收多少」, 走了关键词引擎并返回今日营收。 修复: today 移出 '昨'; yesterday 用 '昨' 命中全部变体(昨天/昨日/昨晚)。 新增 test_yesterday_revenue_not_today / test_yesterday_keyword_variants_use_yesterday。 全量 pytest: 59 passed(2 collection errors 为既有 stdlib test_api 名冲突, 与本改动无关)。 HTTP 复验(LLM+关键词双路径): 昨天营收 -> 全网昨日营收 ¥19,229 ✅