Commit Graph
501 Commits
Author SHA1 Message Date
clown145 5f8309f461 跑pre-commit 2026-01-03 01:24:51 +08:00
clown145 a52a9afa4f feat: 回退对群分析指令的更改 2026-01-03 01:24:51 +08:00
clown145 92142b4b9f feat: 优化查看模板的显示 2026-01-03 01:24:51 +08:00
clown145 094dbfe2ad feat: 优化查看模板信息显示 2026-01-03 01:24:51 +08:00
clown145 9fef747b46 feat: 添加查看模板指令 2026-01-03 01:24:51 +08:00
SXP-Simon 099421931e fix(typo): 增加 readme 新模板 retro_futurism 演示 2025-12-31 14:50:21 +08:00
SXP-Simon d339f1b7c0 [v4.5.0] 添加新的模板主题 retro_futurism, 灵感来源明日方舟 孤星 未来复古主义主题;添加模板调试工具 scripts/debug_render.py,方便用户在不启动 AstrBot 的情况下调试模板效果 (@Saramanda9988) 2025-12-31 14:44:23 +08:00
Saramanda9988 7583a906bb fix: fix pre-commit 2025-12-31 14:29:27 +08:00
Saramanda9988 569f1a0aab feat: add debug render tool for report templates with mock data 2025-12-31 14:29:27 +08:00
Saramanda9988 1b2182cfc5 feat: add debug render tool for report templates with mock data 2025-12-31 14:29:27 +08:00
Saramanda9988 8ddfa7e713 feat: Update report templates and improved layout 2025-12-31 13:56:35 +08:00
Saramanda9988 fa89e4b8ed feat: Improve styling and lenhanced font properties 2025-12-31 13:56:35 +08:00
Saramanda9988 777469c2e6 feat: Update Retro Futurism templates with enhanced styling and layout adjustments 2025-12-31 13:56:35 +08:00
Saramanda9988 0d704e8ed6 feat: Enhance Retro Futurism templates with new header icons and layout adjustments 2025-12-31 13:56:35 +08:00
Saramanda9988 59b82a29c9 feat: Add Retro Futurism report templates and components 2025-12-31 13:56:35 +08:00
SXP-Simon 4ca8180933 [v4.4.0] 修复可能的图片生成成功但是发送失败的情况,增加 Fallback 的 BASE64 编码的图片发送方式 @Heximiao 2025-12-20 21:10:56 +08:00
SXP-Simon c216ccb009 fix(auto_scheduler): 设置请求超时和响应大小限制,避免卡死或下载过大,增加过程的健壮性 2025-12-20 21:01:55 +08:00
liuchunyu44 926ec65b59 修改发送图片的逻辑 2025-12-20 20:42:10 +08:00
SXP-Simon 8f107f6c05 [v4.3.0] 纠正关闭特定分析区但是基础样式没有去除的 bug 2025-11-29 00:19:02 +08:00
SXP-Simon 23ca2f9ade fix(simple): 提取排版,纠正关闭分析分区但是基础样式没有去除的 bug 2025-11-29 00:07:14 +08:00
SXP-Simon 122a2fa36a fix(scrapbook): 提取排版,纠正关闭分析分区但是基础样式没有去除的 bug 2025-11-29 00:04:53 +08:00
SXP-Simon 3d6378792e fix(format): 提取排版,纠正关闭分析分区但是基础样式没有去除的 bug 2025-11-29 00:04:36 +08:00
SXP-Simon 964f8478ea [v4.2.7] 模板文档更新 2025-11-26 13:07:49 +08:00
SXP-Simon 0d62985e51 fix(template/simple): 纠正 simple 符合规范 2025-11-26 12:48:16 +08:00
SXP-Simon a81640c289 [v4.2.6] fix(延迟启动调度器失败): 'xxxPlatformAdapter' object has no attribute 'metadata' 2025-11-26 00:42:40 +08:00
SXP-Simon 1a08d6cb59 fix(延迟启动调度器失败): PlatformAdapter' object has no attribute 'metadata' 2025-11-26 00:35:04 +08:00
SXP-Simon bb124a96f6 [v4.2.5] 正确获取 platform_id 2025-11-25 23:42:41 +08:00
Helian Nuits 03c35f49d0 Fix(bot manager): _get_platform_id_for_group 是一个异步方法(async def),但在 main.py 中调用时忘记加 await (#54)
* fix(bot-manager): 正确处理实例获取

* fix(import); AiocqhttpAdapter 导入

* fix: 通过 meta 实现 aiocqhttp 判断

* fix(_get_platform_id_for_group): _get_platform_id_for_group 是一个异步方法(async def),但在 main.py 中调用时忘记加 await 了,导致它返回了一个协程对象而不是字符串 ID

* fix(pre-commit)
2025-11-25 23:37:13 +08:00
SXP-Simon 5a0731e492 fix(bot_manager): get_bot_instance 2025-11-25 21:59:41 +08:00
SXP-Simon 3d60a14445 [v4.2.0] (!!!要求:AstrBot v4.5.7+!!!) 适配 AstrBot v4.5.7+ 的新 LLM API 标准,支持多套主题模板切换使用,欢迎为插件贡献新的报告模板 2025-11-25 21:12:30 +08:00
SXP-Simon 6ca52e24ee fix(auto-release): 迁移到 main 2025-11-25 20:59:39 +08:00
SXP-Simon 41f49ee6b3 fix(cr): pre-commit 2025-11-25 20:55:33 +08:00
SXP-Simon d942a5a2eb docs(templates-customization): 欢迎为插件贡献新的报告模板!!! 2025-11-25 20:55:33 +08:00
SXP-Simon 89d79a5491 fix(old): 调整 old 样式 2025-11-25 20:55:33 +08:00
SXP-Simon de31c0514f refactor(chart): 拆分 chart 部分到 template 2025-11-25 20:55:33 +08:00
SXP-Simon aba98cbd05 feat(old): 恢复 old 版本 HTML template 2025-11-25 20:55:33 +08:00
SXP-Simon 150f6c37a9 feat(mutli-templates): 适配多套排版选择 2025-11-25 20:55:33 +08:00
SXP-Simon e385c294a1 feat(llm_utils): 更新了
src/analysis/utils/llm_utils.py
 文件,以适配 AstrBot v4.5.7+ 的新 API 标准。

 主要更改如下:

重构了 Provider 选择逻辑:
将 get_provider_with_fallback 重命名并修改为
get_provider_id_with_fallback
。
现在它返回的是 Provider ID (字符串),而不是 Provider 对象实例。这是因为新的 llm_generate 接口需要通过 ID 来指定使用的模型。
使用了新的 await context.get_current_chat_provider_id(umo=umo) 方法来获取当前会话的模型 ID。
更新了 LLM 调用方式:
在
call_provider_with_retry
 函数中,不再直接调用 provider.text_chat(...)。
改为使用统一的 await context.llm_generate(...) 接口。这是 AstrBot 推荐的新方式,更加简洁且统一。
兼容性调整:
更新了
extract_token_usage
 函数,使其能够从 llm_generate 返回的新响应格式中正确提取 Token 使用统计(优先检查
usage
 属性)。
这些更改确保了插件能够利用 AstrBot 新版本的特性,同时保持了原有的多级回退(配置 -> 主模型 -> 会话模型 -> 任意可用)逻辑不变。
2025-11-25 20:55:33 +08:00
SXP-Simon c211ea7050 chore(copilot_instructions.md): 插件开发文档写入 copilot instructions, 更新 README. 2025-11-25 20:55:33 +08:00
SXP-Simon 9db57a9adb feat(mascot): 为 template footer 添加吉祥物 base64 图片 2025-11-23 20:05:07 +08:00
SXP-Simon 7132acdcb9 [v4.1.0] 群黑白名单机制;使用信号量(Semaphore)并发限制和弱引用字典(WeakValueDictionary)优化锁管理 2025-11-23 13:29:12 +08:00
Helian Nuits e5320969ee feat(auto_scheduler): 添加自动调度器,使用信号量(Semaphore)并发限制和弱引用字典(WeakValueDictionary)优化锁管理;群黑白名单机制。 (#50)
* feat(auto_scheduler): 添加自动调度器,使用信号量(Semaphore)并发限制和弱引用字典(WeakValueDictionary)优化锁管理。

* feat(auto_scheduler): 群黑白名单机制

* feat(自动分析最大并发数): 可配置项添加信号量自定义控制

* debug(获取群)

* fix(config)

* fix(pre-commit): cr
2025-11-23 13:26:09 +08:00
SXP-Simon 06290b8118 chore(demo): 更新 demo 图 2025-11-22 15:37:20 +08:00
SXP-Simon e5256027a6 [v4.0.1] 纠正字体情况,调整字号 2025-11-22 15:32:44 +08:00
SXP-Simon 2da97dd5d2 fix(pdf): 同步更新 PDF 模板 2025-11-22 15:32:44 +08:00
SXP-Simon 8715db4f31 fix(font-family): 使用 Patrick Hand,避免使用英文难以辨识的 Indie Flower,调整字体大小 2025-11-22 15:32:44 +08:00
Helian Nuits bfd74ac54c feat(report/template): 全新设计的报告模板,采用卡通手账日记风格设计,灵感来源于 GalGame 《五彩斑斓的世界》女主二阶堂真红和男主悠马每天晚上写日记的场景 (#48)
* feat(template): 尝试采用卡通手账日记形式的设计风格

* fix(topic): 正确使用样式

* fix(template): 活跃时间段样式调整

* fix(template): 辨识度增强

* fix(head): 五彩斑斓的一天,来看看群里发生了什么吧!

* fix(h1): 五彩斑斓的一天,来看看群里发生了什么吧!

* [v4.0.0] feat(report/template): 全新设计的报告模板,采用卡通手账日记风格设计,灵感来源于 GalGame 《五彩斑斓的世界》女主二阶堂真红和男主悠马每天晚上写日记的场景

* fix(cr): 在Google Fonts链接中添加了Indie+Flower字体,确保--font-hand变量中使用的'Indie Flower'字体能够正确加载。

* fix(pre-commit): 修复了 pre-commit 检查失败的问题。移除了所有未使用的 level 变量赋值
2025-11-22 13:19:07 +08:00
SXP-Simon 2a1dcb3db0 [v3.9.5] fix(report/template): 迁移到应该使用的 jinja2 模板引擎, HTML 文件方便调试和修改 2025-11-22 01:46:58 +08:00
Helian Nuits e12b8d56e0 fix(report/template): 迁移到应该使用的 jinja2 (#47)
* fix(report/template): 迁移到应该使用的 jinja2

* fix(topic): 纠正 topic jinja2 模板

* log(generate): debug

* fix(generator): 之前的代码直接将原始模板字符串和渲染数据分开传递给 html_render_func,但 html_render_func 期望接收的是已经渲染好的完整HTML内容

* fix(template): debug

* debug

* fix(debug): 删除冗余的日志调试

* fix(code quality): cr
2025-11-22 01:43:27 +08:00
SXP-Simon 8287452688 chore(assets): 整理 assets 资源 2025-11-21 23:14:20 +08:00