Commit Graph

195 Commits (e8cee03c233cc95e06bd336aa3ea6f6f831d98bb)

Author SHA1 Message Date
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 90e72db87b fix: 调整api接口的打印 2025-03-06 21:11:22 +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
tcmofashi b1756f3808 Merge remote-tracking branch 'upstream/debug' into debug 2025-03-06 15:03:40 +08:00
tcmofashi 2f1579e5b7 fix: 为所有模型请求添加请求头和请求体的报错 2025-03-06 14:43:46 +08:00
SengokuCola eaa711ada7 v0.5.7
记忆系统接入关键词,重新启动自主发言功能
2025-03-06 14:27:22 +08:00
SengokuCola 8bca235ecf
Merge pull request #64 from tcmofashi/debug
Fix: 降低延迟,完善打印信息
2025-03-06 09:44:09 +08:00
tcmofashi d653ffe131 Merge branch 'debug' into feature 2025-03-06 08:18:51 +08:00
tcmofashi 7c3fb28f10 fix: 修复打印格式 2025-03-06 08:18:33 +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 052c9c32c4 Merge branch 'debug' into feature 2025-03-06 02:24:08 +08:00
tcmofashi dbfe9c0491 fix: 为log输出增加modelname 2025-03-06 02:23:58 +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
KawaiiYusora bd982ba556 Merge branch 'debug' of https://github.com/SengokuCola/MaiMBot into debug
# Conflicts:
#	src/plugins/models/utils_model.py
2025-03-06 01:11:37 +08:00
KawaiiYusora a445c22250 <think>之我的LLM为什么只有一半TAG 2025-03-06 01:08:26 +08:00
tcmofashi 8c45e7d2be fix: 彻底解决schedule 2025-03-06 00:40:39 +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 3f66a34364 Merge remote-tracking branch 'upstream/debug' into debug 2025-03-05 21:50:29 +08:00
HYY1116 6db29c8e45 fix:尝试修复日程出错问题 2025-03-05 21:39:12 +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
KawaiiYusora 8e48e72019
<think>之查缺补漏 (#53) 2025-03-05 09:27:52 +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 ac9bd7af63
Merge branch 'debug' into debug 2025-03-04 23:35: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
KawaiiYusora 9823f2cb0e 增加<think>标签处理 2025-03-04 23:16:29 +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
SengokuCola 00dcba108a
Merge branch 'debug' into feature 2025-03-04 22:45:42 +08:00
SengokuCola 8f03720e51
Merge branch 'debug' into debug 2025-03-04 22:44:09 +08:00
SengokuCola 934fe5953a v0.5.0
重构了消息发送系统,口牙
2025-03-04 22:35:55 +08:00
瑾星Mcc 20a408ee7a
Update willing_manager.py
防止概率大于100%
2025-03-04 21:53:33 +08:00
瑾星Mcc caa8c491cf
Add files via upload 2025-03-04 20:40:52 +08:00
tcmofashi 0b16001ae7 fix: 主题提取bug修复,了吗? 2025-03-04 19:56:04 +08:00
tcmofashi 5a46ee7c70 fix: 调整topic提取的设置 2025-03-04 19:40:00 +08:00
tcmofashi f1a2ccfccf Merge remote-tracking branch 'upstream/debug' into feature 2025-03-04 18:10:08 +08:00
NepPure f4c383caf3
Replace print with Loguru logger for improved logging (#47)
* utils_model

* llm_module_memory_make.py

* from e
2025-03-04 15:27:37 +08:00
tcmofashi 0294ef421b fix: 增加print 2025-03-04 11:33:10 +08:00
tcmofashi 735c5d1a1c fix: 验证toml中的人格数量 2025-03-04 11:17:34 +08:00
tcmofashi 30bfc45816 fix: 解决反斜杠,toml加入人格 2025-03-04 11:09:25 +08:00
tcmofashi 3be012f8bb fix: 修复神秘formatter 2025-03-04 10:19:43 +08:00
tcmofashi 970f18daf1 fix: 过滤词测试 2025-03-04 09:32:44 +08:00
tcmofashi 16cbaeefdb fix: config报错 2025-03-04 09:20:20 +08:00
tcmofashi bfca391a69 feat: 增加ban words 2025-03-04 09:03:39 +08:00
tcmofashi d3b299d267 Merge remote-tracking branch 'upstream/debug' into feature 2025-03-04 08:18:22 +08:00
SengokuCola 5f2b474c63 message,你等着我口牙
123
2025-03-04 00:56:05 +08:00
SengokuCola dd4fb315df v0.4.1
修复了数据库命名问题
修复了嵌入模型未定义问题
2025-03-03 23:50:45 +08:00
SengokuCola f821f86152
Merge branch 'debug' into feature 2025-03-03 22:43:44 +08:00
SengokuCola ecc7c33932 更新文档
1
2025-03-03 22:27:11 +08:00
tcmofashi 9387c36cd8 Merge remote-tracking branch 'upstream/debug' into feature 2025-03-03 21:37:57 +08:00
tcmofashi 22b98b9544 debug: 修改了从db取message的字段问题 2025-03-03 21:31:52 +08:00
tcmofashi 37c5dd1310 temp: 保存 2025-03-03 21:11:39 +08:00
HYY 7ef6b23632
Merge pull request #37 from SaigyoujiYusora/debug
更新config
2025-03-03 21:09:08 +08:00
KawaiiYusora d807ddc897 更新config 2025-03-03 20:30:17 +08:00
NepPure 76a919ff30
没有24点 2025-03-03 17:40:20 +08:00
SengokuCola 079bab753a littelchange 2025-03-03 17:30:08 +08:00
SengokuCola e564b94908 玩吧
1
2025-03-03 15:16:19 +08:00
tcmofashi 2e9030b65f 创建新分支feature 2025-03-03 10:15:21 +08:00
tcmofashi b8bd45d429 feat: 为sendername增加群昵称 2025-03-03 09:48:50 +08:00
tcmofashi decd577649 Merge remote-tracking branch 'upstream/debug' 2025-03-03 09:02:25 +08:00
tcmofashi f3917aea50 debug: 对名字的更新 2025-03-03 08:45:47 +08:00
tcmofashi a001994c24 Merge remote-tracking branch 'upstream/debug' 2025-03-03 08:42:51 +08:00
SengokuCola 6462c3b360 v0.4.0 支持任意替换的模型,改进配置文件
好好好好好好好好好
2025-03-02 23:51:47 +08:00
SengokuCola 12e759f3ad 屎山修补术
修改了bot_toml加载逻辑
2025-03-02 20:56:38 +08:00
HYY1116 0bcd18c821 漏改一小处 2025-03-02 19:51:14 +08:00
HYY1116 71193c4d28 Merge branch 'debug' of https://github.com/SengokuCola/MaiMBot into debug 2025-03-02 19:48:31 +08:00
HYY1116 f48f33a999 fix: 模型优先使用无需付费模型,并模型名称全局化 2025-03-02 19:48:25 +08:00
SengokuCola 304562d93a 修复了日程异步bug 2025-03-02 19:43:14 +08:00
SengokuCola b98314da4f v0.3.3 异步处理记忆,修复了GUI 2025-03-02 18:36:36 +08:00
tcmofashi c0cb28e10d 针对memory修改 2025-03-02 16:06:11 +08:00
SengokuCola 1cd7f80937 v0.3.2 更改了.env config的逻辑和memory优化
v0.3.2
更改了.env config的逻辑
memory优化
读空气优化
2025-03-02 15:00:12 +08:00
SengokuCola 31659497f0
Merge pull request #25 from SengokuCola/main
拉配置修改
2025-03-02 11:28:29 +08:00
NepPure 0528586ad2 修改遗漏 2025-03-02 11:25:48 +08:00
NepPure bd2f0b258a fix https://github.com/SengokuCola/MaiMBot/issues/23 2025-03-02 11:03:11 +08:00
NepPure 86b76496f6 统一database config,修复.env 2025-03-02 10:54:31 +08:00
tcmofashi 136a807896 feat: 添加了读空气功能 2025-03-02 10:05:36 +08:00