Commit Graph

329 Commits

Author SHA1 Message Date
tcmofashi
e48d93b7cb feat: 对自己发出的表情包提供描述 2025-03-07 09:24:25 +08:00
tcmofashi
5bf94d34a1 fix: 修改message_sending中cq码被翻译的问题 2025-03-07 08:46:36 +08:00
tcmofashi
9bb9fc1b28 fix: 修复bot消息未调用异步显式初始化导致的空消息bug 2025-03-07 07:03:05 +08:00
tcmofashi
bb35faa363 fix: 修复表情查询为空 2025-03-07 04:07:26 +08:00
tcmofashi
d0047e82bf fix: 去除emoji_manager中的图片压缩 2025-03-07 04:01:09 +08:00
tcmofashi
0ced4939ec fix: 修改embedding 2025-03-07 03:40:14 +08:00
tcmofashi
a3b8a545af fix: 紧急为check功能加入开关 2025-03-07 03:12:35 +08:00
tcmofashi
ead9b8cfe4 Merge remote-tracking branch 'upstream/debug' into debug 2025-03-07 02:56:03 +08:00
tcmofashi
00aadf0fc8 Merge pull request #72 from SaigyoujiYusora/refactor/unified_request
Refactor/unified request
2025-03-07 02:53:18 +08:00
tcmofashi
94fd4f5ddd fix: 对2MB以下的图片予以放行 2025-03-07 02:47:52 +08:00
tcmofashi
b77d73ddc7 feat: 现在可以设置是否自动保存表情包了 2025-03-07 01:49:42 +08:00
KawaiiYusora
1becc5d2d9 Merge branch 'debug' of https://github.com/SengokuCola/MaiMBot into refactor/unified_request
# Conflicts:
#	src/plugins/chat/utils.py
2025-03-07 01:32:15 +08:00
KawaiiYusora
e0e3ee4177 fix: update CQCode and Message classes for async initialization and processing 2025-03-07 01:31:03 +08:00
tcmofashi
0ebd241077 fix: 增加设置模板,优化emotion,优化压缩 2025-03-07 01:06:36 +08:00
SengokuCola
8ef00ee571 v0.5.9
修复了记忆刷屏 加入了又新又好错别字生成器 增加了记忆过滤
2025-03-07 00:09:36 +08:00
KawaiiYusora
26f99664ee fix: cq_code async 2025-03-07 00:04:36 +08:00
KawaiiYusora
6ffa38c6ad Merge branch 'debug' of https://github.com/SengokuCola/MaiMBot into refactor/unified_request
# Conflicts:
#	src/plugins/models/utils_model.py
2025-03-06 23:52:39 +08:00
KawaiiYusora
11807fda38 refactor(models):统一请求处理并优化响应处理 (refactor/unified_request)
对 `utils_model.py` 中的请求处理逻辑进行重构,创建统一的请求执行方法 `_execute_request`。该方法集中处理请求构建、重试逻辑和响应处理,替代了 `generate_response`、`generate_response_for_image` 和 `generate_response_async` 中的冗余代码。

关键变更:
- 引入 `_execute_request` 作为 API 请求的单一入口
- 新增支持自定义重试策略和响应处理器
- 通过 `_build_payload` 简化图像和文本载荷构建
- 改进错误处理和日志记录
- 移除已弃用的同步方法
- 加入了`max_response_length`以兼容koboldcpp硬编码的默认值500

此次重构在保持现有功能的同时提高了代码可维护性,减少了重复代码
2025-03-06 23:50:14 +08:00
tcmofashi
e3c7fae61d fix: 增加设置项 2025-03-06 21:18:35 +08:00
tcmofashi
325fc21d89 Merge branch 'debug' into feature 2025-03-06 20:46:07 +08:00
SengokuCola
ee414eeaaf v0.5.8 修复 回复重复输出的bug 2025-03-06 19:56:57 +08:00
tcmofashi
35ae480faa Merge branch 'debug' into feature 2025-03-06 15:07:12 +08:00
SengokuCola
eaa711ada7 v0.5.7
记忆系统接入关键词,重新启动自主发言功能
2025-03-06 14:27:22 +08:00
tcmofashi
a612519d56 feat: 新增表情包过滤,奶龙再见 2025-03-06 07:22:36 +08:00
tcmofashi
77076a505f Merge branch 'debug' into feature 2025-03-06 06:45:32 +08:00
tcmofashi
3897c9787a fix: 后置emotion生成,大幅提高响应速度 2025-03-06 06:45:20 +08:00
tcmofashi
fea3285d20 feat: emoji选择逻辑优化 2025-03-06 06:30:27 +08:00
tcmofashi
a896cf5ec4 fix: 兼容tag 2025-03-06 02:13:54 +08:00
tcmofashi
7306a05dc2 Merge branch 'debug' into feature 2025-03-06 01:55:47 +08:00
tcmofashi
91d8ca80cf Merge remote-tracking branch 'upstream/debug' into debug 2025-03-06 00:09:33 +08:00
SengokuCola
a70f76c819 v0.5.4.0 记忆系统更新
移除jieba
2025-03-05 23:58:03 +08:00
tcmofashi
19e467febe fix: 被禁言导致发送线程死掉,修复所有的压缩,修复空日程的key error 2025-03-05 23:13:47 +08:00
tcmofashi
71a0176182 fix: 小修 2025-03-05 22:08:23 +08:00
tcmofashi
1484dfa406 fix: 增强情感标签生成的鲁棒性 2025-03-05 22:06:34 +08:00
tcmofashi
5fa0c1bc3f Merge remote-tracking branch 'upstream/debug' into debug 2025-03-05 20:30:24 +08:00
HYY1116
234522582e feat:我先放个消息段构建器在这,我也不知道也没有用 2025-03-05 20:23:57 +08:00
tcmofashi
f29a7b646c 修改压缩 2025-03-05 19:19:34 +08:00
SengokuCola
3fec29d045 v0.5.2 记忆系统更新 2025-03-05 16:48:53 +08:00
tcmofashi
97bddb83e7 feat: 表情包匹配从情绪匹配改成嵌入相似度匹配 2025-03-05 10:43:08 +08:00
tcmofashi
669f9e400a feat: 修改emoji为embedding匹配 2025-03-05 09:49:19 +08:00
tcmofashi
9057f972f7 Fix: 完美的图片压缩 @sourcery-ai (#54)
* fix: logger三合一

* fix: emoji压缩功能正常使用

* fix: 提高压缩率

* fix: 0.8MB
2025-03-05 09:26:37 +08:00
tcmofashi
d1ac1b0573 fix: 0.8MB 2025-03-05 09:20:34 +08:00
tcmofashi
dfdf25c8e4 fix: 提高压缩率 2025-03-05 09:10:22 +08:00
tcmofashi
f6e5a15ed2 fix: emoji压缩功能正常使用 2025-03-05 09:04:10 +08:00
tcmofashi
959011e369 Merge remote-tracking branch 'upstream/debug' into feature 2025-03-05 01:51:38 +08:00
SengokuCola
4bf425521a litttel
1
2025-03-05 00:24:46 +08:00
SengokuCola
57cde4de24 Update willing_manager.py
1
2025-03-04 23:32:01 +08:00
SengokuCola
438e7e9e9e 删除 5m以上缓存图片 2025-03-04 23:28:40 +08:00
tcmofashi
d668d3112a Merge remote-tracking branch 'origin/feature' into feature 2025-03-04 22:52:52 +08:00
tcmofashi
71bd75745d fix: logger三合一 2025-03-04 22:48:22 +08:00