Commit Graph

1471 Commits (aa7cf7fc9e6ee75bd9dc6ea00b381301fa65aa83)

Author SHA1 Message Date
SengokuCola d2f348ae2c Merge branch 'debug' of https://github.com/SengokuCola/MaiMBot into debug 2025-03-07 19:29:17 +08:00
SengokuCola 0e72c7444b 降低了回复表情包的可能
1
2025-03-07 19:22:24 +08:00
tcmofashi a527e5ce76 fix: 修复获取的消息没有time字段 2025-03-07 19:17:11 +08:00
SengokuCola 34907fdbf5 修改了模型命名 2025-03-07 18:41:41 +08:00
SengokuCola 68b696b8aa fix config
12
2025-03-07 18:16:06 +08:00
SengokuCola 4a27446430 修复没移除干净
1
2025-03-07 13:30:50 +08:00
SengokuCola c11dd85790 移除所有雪Nlp 2025-03-07 10:25:58 +08:00
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 965b1d1398 fix: 修复推理过程没有被获取的问题 2025-03-07 07:23:17 +08:00
tcmofashi 9bb9fc1b28 fix: 修复bot消息未调用异步显式初始化导致的空消息bug 2025-03-07 07:03:05 +08:00
tcmofashi 15c99ff32d Merge remote-tracking branch 'upstream/debug' into debug 2025-03-07 06:45:37 +08:00
Rikki 5cfcb60b46 Merge remote-tracking branch 'upstream/debug' into debug 2025-03-07 06:42:24 +08:00
Rikki b69c9ac7f7 fix: 修复不应用 embedding 模型配置的现象 2025-03-07 05:50:59 +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 a463f3a1a4 fix: issue (bug_risk): Reusing ClientSession across retries may lead to closed session issues. 2025-03-07 01:37:17 +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 71e851fbd4 fix
1
2025-03-07 00:34:58 +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 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
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
tcmofashi 97834e7a93 feat: 添加回复情绪对好感度的影响,修改用户显示名字为群昵称 2025-03-02 08:24:00 +08:00
tcmofashi c24bf0cdcf feat: 添加了读空气功能 2025-03-02 03:45:23 +08:00
SengokuCola 50c1765b81 v0.3.1 实装了记忆系统和自动发言
哈哈哈
2025-03-02 00:14:25 +08:00
SengokuCola ba5837503e
Merge pull request #18 from HYY1116/main
chore:修改toml配置文件位置,增加默认配置文件,修改docs
2025-03-01 21:16:55 +08:00
HYY1116 f501f7d218 chore:修改toml配置文件位置,增加默认配置文件,修改docs 2025-03-01 21:07:54 +08:00
SengokuCola 0dd5b0ba94 麦麦转行
1
2025-03-01 20:56:05 +08:00
KawaiiYusora 2554f8a931 修一下漏改的deepseek API支持 2025-03-01 18:52:40 +08:00
SengokuCola fd615f3327 Update memory copy.py 2025-03-01 17:34:29 +08:00
SengokuCola 11f90d82f7 v0.3.0 记忆和知识库
beta
2025-03-01 17:01:39 +08:00
SengokuCola 467056d928 v0.2.6
重新启动数据库
2025-03-01 13:24:41 +08:00
SengokuCola d9327d47fc 更新说明
123
2025-03-01 12:55:02 +08:00
NepPure f6a29ac9fc
TLS1.3特殊处理 2025-03-01 11:50:39 +08:00
NepPure 0c6deae58c
修复高版本环境TLS1.3报错
ref https://github.com/psf/requests/issues/6616
2025-03-01 11:48:18 +08:00
SengokuCola 03ca657aea Merge branch 'main' of https://github.com/SengokuCola/MaiMBot 2025-03-01 11:30:21 +08:00
SengokuCola 154026f640 v0.2.5 提升了性能
修复了一个弱智bug,现在修改了数据库消息的存储结构,可能会报错,属于正常情况
2025-03-01 11:30:19 +08:00
wwaaafa 3559f709f8
Update bot_config_toml 2025-03-01 10:23:05 +08:00
wwaaafa 2198b738b0
Update bot_config_toml 2025-03-01 10:11:05 +08:00
SengokuCola 8411bb13dd 123
1
2025-03-01 01:28:16 +08:00
SengokuCola 1c977ce2ca v0.2.4
修复了@的bug和日程生成bug,增加了简化输出的配置选项
2025-03-01 00:32:26 +08:00
SengokuCola c3e555fd70 v0.2.3
修复了表情包无法偷的bug
2025-02-28 23:37:01 +08:00
SengokuCola 2a266c6b65 Merge branch 'main' of https://github.com/SengokuCola/MaiMBot 2025-02-28 22:56:07 +08:00
SengokuCola 7494fff1ed v0.2.2
优化了CQ码获取逻辑和图片下载逻辑
去除硬编码的“麦麦”()
2025-02-28 22:56:05 +08:00
NepPure f5edefebb4 修复环境变量加载问题 2025-02-28 21:13:41 +08:00
NepPure e606c14b33 Merge branch 'main' into feat/mongo 2025-02-28 20:42:45 +08:00
NepPure f20fca0c01 mongodb支持配置用户名密码,向下兼容 2025-02-28 20:41:07 +08:00
SengokuCola 7b9b604811 Merge branch 'main' of https://github.com/SengokuCola/MaiMBot 2025-02-28 20:10:43 +08:00
SengokuCola 0f3cff2ed0 添加了user_id回复黑名单
1
2025-02-28 20:10:19 +08:00
jiajiu123 a43dc99210 从.env中获取数据库参数 2025-02-28 18:00:15 +08:00
jiajiu123 78d3747128 兼容 Linux 2025-02-28 17:56:39 +08:00
SengokuCola db48a1830a little change
1
2025-02-28 13:32:32 +08:00
SengokuCola 4fb0fec17c update_readme
1
2025-02-28 13:11:49 +08:00
SengokuCola 9954d8390c 修改杂项
1
2025-02-28 10:48:05 +08:00
SengokuCola f0bb3149ac v0.2.1 添加了对官方api的支持
图像识别还得用硅基
2025-02-28 10:31:19 +08:00
SengokuCola 3dff151959 以防你连不上
1
2025-02-28 00:52:46 +08:00
SengokuCola 870be0a426 v0.2修改了一些东西
使概率配置生效
将一些模块解耦合
将组信息管理器合并到关系管理器,添加了可以全局调用的接口
精简了llm生成器的代码
精简了message代码
重写了回复后处理
2025-02-28 00:28:34 +08:00
SengokuCola 760cc4f8c5 littel change
1
2025-02-27 20:26:45 +08:00
SengokuCola 3034c36717 v0.1.5推理界面的ui
想用gradio写个ui,无果
放弃
写了一个单独的推理界面可视化ui,有bug之后修
2025-02-27 20:21:21 +08:00
SengokuCola 4f814b6455 fix config 2025-02-26 22:23:28 +08:00
SengokuCola 489e1c3233 移除对bot_config.toml的追踪 2025-02-26 22:22:40 +08:00
SengokuCola 8956a110b3 Merge branch 'main' of https://github.com/SengokuCola/MaiMBot 2025-02-26 22:19:23 +08:00
SengokuCola b88f200f74 拆分0.1.3
1
2025-02-26 22:18:44 +08:00
SengokuCola 884e640699
Update bot_config.toml 2025-02-26 22:17:37 +08:00
SengokuCola ec947c69a6 0.1.2
fix message _visualizer
2025-02-26 19:25:10 +08:00
SengokuCola 70bc8e9e8c v0.1.1
1
2025-02-26 18:23:12 +08:00
SengokuCola 972e6066e6 v0.1
能跑但是没写部署教程,主题和记忆识别也没写完
2025-02-26 18:12:28 +08:00