liuwei
|
b4b3fa92e0
|
优化ai_auto_response回复长度并强化@画像回复
变更项:
1. 收紧回复长度策略:social_short/qa_fast/qa_with_context 全部缩短,减少长句与说明文风格。
2. 强化提示词约束:默认30字内、最多2句且总长不超过55字,禁止大段铺垫。
3. 新增@画像高优先通道:当消息为@或强定向时,构建并注入 at_member_profile_prompt。
4. Dify输入同步注入@画像与 is_at/is_directed 控制字段,保证不同LLM后端行为一致。
|
2026-04-16 11:03:55 +08:00 |
|
liuwei
|
ec040e1620
|
Revert "优化robot_menu交互:支持@问答式功能清单"
This reverts commit fe316ced81.
|
2026-04-16 10:24:22 +08:00 |
|
liuwei
|
33373ece2e
|
Revert "新增robot_menu指令清单展示能力"
This reverts commit 9f08a7ad96.
|
2026-04-16 10:24:22 +08:00 |
|
liuwei
|
9f08a7ad96
|
新增robot_menu指令清单展示能力
变更项:
1. 新增“菜单 指令清单、菜单 指令、菜单 命令清单”入口,返回本群可用触发指令。
2. 从功能描述方括号中自动提取命令并去重,生成可直接复制的指令列表。
3. 优化主菜单文案,增加“常用指令清单”区块,帮助用户快速上手。
4. 扩展@语义关键词,支持“指令清单、命令清单”等问法触发菜单。
|
2026-04-16 10:21:41 +08:00 |
|
liuwei
|
fe316ced81
|
优化robot_menu交互:支持@问答式功能清单
变更项:
1. 新增@语义入口:群内@机器人并包含“功能清单、怎么用、帮助”等关键词时自动回复菜单。
2. 菜单输出改为用户友好格式:按功能展示名称、触发方式和一句话说明,提升可读性与可操作性。
3. 保留原指令入口(菜单/功能菜单),并统一走新的直观菜单文案。
4. 增加对Feature描述的解析逻辑,自动提取方括号中的触发命令作为使用方法。
|
2026-04-16 10:17:04 +08:00 |
|
liuwei
|
bac8a01ed8
|
调整ai_auto_response为非阻断模式
变更项:
1. 修改 ai_auto_response.process_message 的返回策略。
2. 消息入队成功时由 processed=True 改为 processed=False,避免截断后续插件链。
3. 队列满时同样不阻断,让其他插件继续处理消息。
|
2026-04-16 09:56:05 +08:00 |
|
liuwei
|
96f50d929b
|
关键调整:
social_short 从“1句 + 1条”改成“最多2句 + 最多2条”,允许续发,避免戛然而止。
qa_fast / qa_with_context 也改为允许分条续发,避免中间硬断。
smart_clip 的弱标点回看窗口从 4 提高到 12,更容易切在自然停顿处(逗号/顿号等)。
同步更新了长度规则文案:明确“必要时可拆两条,保证语义完整”。
你给的这句原文在新逻辑下会优先拆成两条,而不是第一条被截到“我听着怎么这”这种半句。
|
2026-04-15 10:52:33 +08:00 |
|
liuwei
|
5ce60cbd95
|
我已经把群总结这块从“前 120 字硬砍”改成了“关键句提炼 + 更高上限”。
已改文件:
context_builder.py
具体优化:
原来:
group_memory_summary 超过 120 字就直接 summary[:117] + "...",很容易把后面的关键结论截掉。
现在:
新增 _compact_group_summary(...)。
先按句拆分,再给句子打分,优先保留包含“结论/风险/报错/配置/策略/优化”等关键词的句子。
同时保留首句和末句,避免上下文断裂。
最终摘要上限提高到 420 字、最多 6 句,再做兜底截断。
prompt 字段名也改成 群长期摘要关键句,让模型更明确这是提炼后的重点。
|
2026-04-15 10:37:27 +08:00 |
|
liuwei
|
265f3835b4
|
已按你说的改成“命中即跳出 + 后台入队处理”,插件调度仍然是独占策略,没有做并行插件处理。
主要改动在 main.py:
process_message(...) 现在只做入队,立刻返回 True, "queued",主链路立即释放。
原来的完整处理逻辑迁到 _process_message_impl(...),由后台 worker 消费队列执行。
新增队列 worker 循环 _message_worker_loop(...),并在 start()/stop() 管理生命周期。
增加 _ensure_workers_started(),避免插件在无事件循环阶段 create_task 报错(延迟到有 loop 时启动)。
保留了之前的 LLM 防阻塞措施:to_thread + semaphore + timeout。
配置也加在 config.toml 的 [runtime]:
llm_max_concurrency = 3
llm_call_timeout_sec = 120
queue_worker_count = 2
queue_maxsize = 500
已做语法校验:py_compile 通过。
|
2026-04-15 10:23:05 +08:00 |
|
liuwei
|
28e038a25c
|
member_context: split daily weekly monthly digest scheduling
|
2026-04-14 10:53:46 +08:00 |
|
liuwei
|
7df4bd216f
|
feat: gate media downloads by group and retry douyu checks
|
2026-04-13 15:53:34 +08:00 |
|
liuwei
|
ce9726d37d
|
fix: improve douyu scheduled check error logging
|
2026-04-13 14:48:45 +08:00 |
|
liuwei
|
2a79c5cb3e
|
refactor: tighten group member change filtering
|
2026-04-13 13:04:58 +08:00 |
|
liuwei
|
e2b19c0614
|
refactor(ai_auto_response): relax short reply truncation
|
2026-04-13 09:55:23 +08:00 |
|
liuwei
|
b10ec3493a
|
feat(message_summary): beautify overview stats pills
|
2026-04-13 09:54:42 +08:00 |
|
liuwei
|
8ccf96d6de
|
优化一下总结布局
|
2026-04-13 09:35:29 +08:00 |
|
liuwei
|
0f0acc1729
|
feat(message_summary): add group overview stats section
|
2026-04-13 09:18:44 +08:00 |
|
liuwei
|
0e3eda8865
|
tune(ai_auto_response): shorten llm replies
|
2026-04-13 09:05:41 +08:00 |
|
liuwei
|
4e7a8e6798
|
fix(ai_auto_response): clean think noise from parsed fields
|
2026-04-10 17:06:13 +08:00 |
|
liuwei
|
52392edcc0
|
fix(ai_auto_response): sanitize dify wrapped think output
|
2026-04-10 16:59:18 +08:00 |
|
liuwei
|
f3354d39a8
|
fix(ai_auto_response): keep complete social short replies
|
2026-04-10 16:54:12 +08:00 |
|
liuwei
|
0c90c5d74f
|
fix(ai_auto_response): avoid forced split of single short replies
|
2026-04-10 16:51:11 +08:00 |
|
liuwei
|
5e80287530
|
切换到dify,还是不要直连,dify更方便
|
2026-04-10 16:41:14 +08:00 |
|
liuwei
|
f96e891ad9
|
tune(ai_auto_response): loosen short reply limits for persona flavor
|
2026-04-10 13:45:50 +08:00 |
|
liuwei
|
a1aa05e3b9
|
feat(ai_auto_response): add admin-controlled persona switching
|
2026-04-10 13:15:35 +08:00 |
|
liuwei
|
c280fa8dab
|
rebalance ai_auto_response participation tuning
|
2026-04-10 10:44:10 +08:00 |
|
liuwei
|
3f9ae6442d
|
tighten ai_auto_response participation and spam guard
|
2026-04-10 09:56:34 +08:00 |
|
liuwei
|
d2856bee2e
|
soften ai_auto_response group domain steering
|
2026-04-10 09:45:39 +08:00 |
|
liuwei
|
ef283c1818
|
tune ai_auto_response short reply and followup gating
|
2026-04-10 09:39:33 +08:00 |
|
liuwei
|
a67b8c296d
|
update message summary default time range
|
2026-04-10 09:27:08 +08:00 |
|
liuwei
|
42b2014f12
|
unify plugin llm clients on shared utils layer
|
2026-04-10 09:13:42 +08:00 |
|
liuwei
|
a99bbcca39
|
add ai_auto_response llm client compatibility shim
|
2026-04-10 09:06:53 +08:00 |
|
liuwei
|
c0620e6cee
|
shrink ai_auto_response prompt pipeline
|
2026-04-10 09:04:22 +08:00 |
|
liuwei
|
f580c69736
|
refactor ai_auto_response plugin architecture
|
2026-04-09 17:46:30 +08:00 |
|
liuwei
|
cc65378544
|
feat(ai_auto_response): handle image follow-up more safely
|
2026-04-09 10:06:39 +08:00 |
|
liuwei
|
3900d38952
|
fix(douyu): compact long audience trends adaptively
|
2026-04-09 09:52:19 +08:00 |
|
liuwei
|
5dfc17f811
|
fix(douyu): aggregate audience trend by minute
|
2026-04-09 09:50:21 +08:00 |
|
liuwei
|
867ed0a2ec
|
feat(douyu): add audience trend chart to daily report
|
2026-04-08 17:03:43 +08:00 |
|
liuwei
|
8909b8c386
|
fix: avoid clipping douyu report shadows
|
2026-04-08 14:55:29 +08:00 |
|
liuwei
|
7e93ca730f
|
feat: refine douyu active user display
|
2026-04-08 14:44:44 +08:00 |
|
liuwei
|
b56822b196
|
feat: polish douyu active user cards
|
2026-04-08 14:36:05 +08:00 |
|
liuwei
|
41c8ce403c
|
chore: adjust douyu daily report schedule
|
2026-04-08 14:29:03 +08:00 |
|
liuwei
|
ea3a088c63
|
feat: enrich douyu daily summary cards
|
2026-04-08 14:26:46 +08:00 |
|
liuwei
|
b73594975d
|
fix: restore douyu core active users in daily reports
|
2026-04-08 14:23:52 +08:00 |
|
liuwei
|
3d671c0da0
|
feat: improve llm settings ui and douyu daily fallback
|
2026-04-08 14:09:21 +08:00 |
|
liuwei
|
1ab0f61e2f
|
fix: resolve dify init and douyu session errors
|
2026-04-08 13:57:57 +08:00 |
|
liuwei
|
480ebee8c7
|
feat: add idempotent douyu daily report command
|
2026-04-08 13:51:51 +08:00 |
|
liuwei
|
28a4911c13
|
chore: remove douyu local llm secrets
|
2026-04-08 13:45:27 +08:00 |
|
liuwei
|
aecb62cb4d
|
refactor: centralize llm backend configuration
|
2026-04-08 13:43:41 +08:00 |
|
liuwei
|
df1939d60b
|
chore(douyu): enable llm daily reports
|
2026-04-08 13:21:15 +08:00 |
|