Commit Graph

391 Commits (5d4723cee4f05e0e4e00a3173f34947a24bd0b3e)

Author SHA1 Message Date
Pocketfans 144475d2f4 让回复意愿更加拟人,增加高低回复意愿周期,且增加了一个简单的追问回复功能 2025-03-12 17:57:50 +08:00
UnCLAS-Prommer ae0481ff29
Merge pull request #267 from UnCLAS-Prommer/debug
修正bot.py line 138 变量名错误问题
2025-03-12 17:26:02 +08:00
SengokuCola 38e38cf4a9 Revert "尝试减少不同群内的同义词混淆 以及允许用户设置指定群组记忆私有"
This reverts commit 50c468e519.
2025-03-12 17:25:23 +08:00
UnCLAS-Prommer 6c5f56b23d 修正我修typo产生的typo 2025-03-12 17:18:39 +08:00
tcmofashi 5e60975b2b Merge remote-tracking branch 'upstream/debug' into debug 2025-03-12 17:14:49 +08:00
UnCLAS-Prommer 76574bf06b
Merge branch 'SengokuCola:debug' into debug 2025-03-12 17:14:13 +08:00
UnCLAS-Prommer 72754a0f2f No More Typo Please 2025-03-12 17:13:37 +08:00
HYY d4ed38368b
Merge pull request #251 from HYY1116/debug
fix: 尝试修复所有图片都被保存为jpg的问题,并以正确的格式请求识图api
2025-03-12 17:05:43 +08:00
Cindy-Master 50c468e519 尝试减少不同群内的同义词混淆 以及允许用户设置指定群组记忆私有
用户设置指定群组记忆私有会导致记忆的语料严重减少  未设置群组记忆私有的记忆会开放对于所有群聊
因此要不就修改其他记忆配置  增强学习/记忆能力  或者增加单一群组的信息流数量  或者增加公开记忆的信息流数量

记忆检索时会按以下优先级返回记忆:
当前群组的记忆(如果群聊属于某个群组)
当前群聊的记忆(如果不属于任何群组)
公共记忆(无群组/群聊标识的记忆)
其他非私有群组的记忆
5. 跨群记忆连接
同一群组内的主题使用较强连接(相似度×10)
跨群组的相似主题使用较弱连接(相似度×5)
相同群组/群聊的相似主题会获得20%的相似度加成
2025-03-12 16:56:12 +08:00
tcmofashi 567a7a86fc Merge remote-tracking branch 'upstream/debug' into debug 2025-03-12 16:55:37 +08:00
SengokuCola 23c9211d93 Update utils_image.py 2025-03-12 15:45:24 +08:00
SengokuCola 3a61450642 修复了数据库无法读取记忆和知识的问题,以及图片保存问题 2025-03-12 15:32:25 +08:00
HYY 94c63e456b
Merge branch 'SengokuCola:debug' into debug 2025-03-12 11:40:54 +08:00
HYY 26ed7f54d3 遵循s指导 2025-03-12 10:59:34 +08:00
HYY 25ecfcecc0 修补 2025-03-12 10:42:48 +08:00
HYY1116 d106260d93 小修补 2025-03-12 09:58:10 +08:00
HYY1116 1840599156 fix: 尝试修复所有图片都被保存为jpg的问题,并以正确的格式请求识图api 2025-03-12 09:53:01 +08:00
Pliosauroidea e9f3ec89d5 给cq_code加个import os 2025-03-12 08:28:00 +08:00
Pliosauroidea 27be42b8f0 修正willing_manager内因为代码合并导致的冗余,去除几个print 2025-03-12 08:25:55 +08:00
tcmofashi fd40c05bf4 Merge remote-tracking branch 'upstream/debug' into debug 2025-03-12 08:25:42 +08:00
Pliosauroidea 0c26d9b412 Merge branch 'debug' of https://github.com/Pliosauroidea/MaiMBot into debug 2025-03-12 08:14:15 +08:00
tcmofashi b934d473ab
Merge pull request #192 from Naptie/contrib
refactor: 截断过长的在日志中展示的消息
2025-03-12 08:01:22 +08:00
Pliosauroidea 126c9af70e 修复火山部分流式输出没有finish_reason导致的报错 2025-03-12 07:58:27 +08:00
Pliosauroidea 90d169f740 将价格print改为对应的logger输出 2025-03-12 07:44:57 +08:00
AL76 732485147c
Merge pull request #237 from Rikki-Zero/debug
refactor: 修复database单例多次初始化的问题,改变instance默认返回实例的类型,缩短db相关函数调用时的object名
2025-03-12 02:48:00 +08:00
SengokuCola 7274573736 记忆和遗忘的可自定义 2025-03-12 01:32:20 +08:00
Naptie 0cc8087918
Merge branch 'debug' of github.com:SengokuCola/MaiMBot into contrib 2025-03-12 01:01:03 +08:00
Rikki 2ae756ee6e
Merge branch 'SengokuCola:debug' into debug 2025-03-12 00:58:29 +08:00
SengokuCola 443878b5c4 修复记忆库冒烟 2025-03-12 00:56:54 +08:00
Rikki bcb3f09c65 Merge remote-tracking branch 'upstream/debug' into debug 2025-03-12 00:54:49 +08:00
Rikki 39018440d7 refactor: 修复database单例多次初始化的问题,改变instance默认返回实例的类型,缩短db相关函数调用时的object名 2025-03-12 00:52:07 +08:00
SengokuCola d524409c18
Merge branch 'debug' into debug 2025-03-12 00:29:59 +08:00
Naptie 98b30e38a1
Merge branch 'debug' of github.com:SengokuCola/MaiMBot into contrib 2025-03-12 00:27:30 +08:00
SengokuCola 40f3055caf
Merge branch 'debug' into main 2025-03-12 00:20:54 +08:00
Naptie 4de04df0b7
Merge branch 'debug' of github.com:SengokuCola/MaiMBot into contrib 2025-03-11 23:50:27 +08:00
SengokuCola ed18f2e96d 新增了知识库一键启动漂亮脚本 2025-03-11 23:46:49 +08:00
Naptie 4f72b22462
Merge branch 'debug' of github.com:SengokuCola/MaiMBot into contrib 2025-03-11 23:45:56 +08:00
UnCLAS-Prommer c681a827f1 修复小名无效问题 2025-03-11 23:21:57 +08:00
Pliosauroidea 390b2d81d7
Merge branch 'SengokuCola:debug' into debug 2025-03-11 23:01:31 +08:00
ChangingSelf 8c346377cb 提高健壮性 2025-03-11 22:58:07 +08:00
Naptie 0a55ccb253
refactor: truncate messages for console logging 2025-03-11 22:57:29 +08:00
Naptie 28fd1c8a8e
refactor(message_sender): log format consistency 2025-03-11 22:53:47 +08:00
Naptie fd19b0d601
feat(utils): truncate_message 2025-03-11 22:51:49 +08:00
ChangingSelf 2688a96986 close SengokuCola/MaiMBot#225 让麦麦可以正确读取分享卡片 2025-03-11 22:47:23 +08:00
Pliosauroidea cd16e68223 修复表情包发送时的缺失参数 2025-03-11 22:47:20 +08:00
Pliosauroidea 3c8c8977e6 屏蔽一个臃肿的debug信息 2025-03-11 22:11:10 +08:00
Pliosauroidea 9d0152a2b2 修复了合并过程中造成的代码重复 2025-03-11 21:41:36 +08:00
Pliosauroidea 956135cad9 添加一些注释 2025-03-11 21:23:07 +08:00
Pliosauroidea a41274156b 将print变为logger.debug 2025-03-11 21:14:32 +08:00
Pliosauroidea 3180426727 修复了没有改掉的typo字段 2025-03-11 21:08:19 +08:00
Pliosauroidea aea3bffd99 添加私聊过滤开关,更新config,增加约束 2025-03-11 20:55:54 +08:00
Pliosauroidea 912432cf49 Merge branch 'debug' of https://github.com/Pliosauroidea/MaiMBot into debug 2025-03-11 20:50:03 +08:00
Ikko Eltociear Ashimine cda6281cc6
chore: update emoji_manager.py
discription -> description
2025-03-11 21:49:18 +09:00
Pliosauroidea baed8560fb 修正了私聊屏蔽词输出 2025-03-11 20:48:11 +08:00
Pliosauroidea 5aeafca756 Merge branch 'debug' of https://github.com/Pliosauroidea/MaiMBot into debug 2025-03-11 20:45:12 +08:00
tcmofashi 6b11b6ef29 fix: 一些from disct 2025-03-11 20:41:03 +08:00
Pliosauroidea 66a0f18e69 修复了私聊时产生reply消息的bug 2025-03-11 20:38:14 +08:00
HYY1116 3bf5cd6131 feat: 新增运行时重载配置文件;新增根据不同环境(dev;prod)显示不同级别的log 2025-03-11 20:11:17 +08:00
Pliosauroidea 33cd83b895 添加私聊功能 2025-03-11 20:01:38 +08:00
tcmofashi b19902919e Merge remote-tracking branch 'upstream/debug' into refractor 2025-03-11 19:51:03 +08:00
tcmofashi aa41f0d1d8 fix: 放反了 2025-03-11 19:47:09 +08:00
tcmofashi bd64e72f55
Merge pull request #213 from Pliosauroidea/debug
bugfix&feat: 添加logger.debug输出开关,调整env文件生成逻辑
2025-03-11 19:45:06 +08:00
tcmofashi 1e6f0062d2
Merge pull request #211 from pineoncellar/debug
fix: 流式输出模式增加结束判断与token用量记录(#199)
2025-03-11 19:43:23 +08:00
tcmofashi 2673d97cd3
Merge pull request #208 from EightOrange/debug
fix: 添加群信息获取的错误处理 (#173)
2025-03-11 19:41:27 +08:00
tcmofashi ef8691cd9e fix: 修改message继承逻辑,修复回复消息无法识别 2025-03-11 19:30:20 +08:00
HYY1116 7d017be9f7 fix:模型降级 2025-03-11 19:23:48 +08:00
八分橘子 e1019ade3c fix: 修复变量拼写错误并优化代码可读性 2025-03-11 18:52:32 +08:00
pine c24bb70291 fix: 流式输出模式增加结束判断与token用量记录 2025-03-11 18:51:28 +08:00
Pliosauroidea 60a93766c7 添加logger的debug输出开关,默认为不开启 2025-03-11 18:42:35 +08:00
八分橘子 bfa9a3c026 fix: 添加群信息获取的错误处理 (#173) 2025-03-11 18:40:03 +08:00
HYY1116 2e3411f103 Merge branch 'debug' of https://github.com/SengokuCola/MaiMBot into debug 2025-03-11 18:21:57 +08:00
HYY1116 dea14c1d8a fix: 模型降级目前只对硅基流动的V3和R1生效 2025-03-11 18:21:46 +08:00
tcmofashi b6edbea96c fix: 图片保存路径不正确 2025-03-11 18:17:29 +08:00
tcmofashi cb79d09ee4 Merge remote-tracking branch 'rikki/tc_merge' into refractor 2025-03-11 17:00:29 +08:00
tcmofashi 01a6fa80ae fix: 删除神秘test 2025-03-11 16:59:19 +08:00
SengokuCola af962c2e84 修复了情绪管理器没有正确导入导致发布出消息
1
2025-03-11 16:50:40 +08:00
tcmofashi 14fbbc593a Merge remote-tracking branch 'upstream/debug' into refractor 2025-03-11 16:45:41 +08:00
tcmofashi 5760412382 fix: 小修 2025-03-11 16:32:35 +08:00
tcmofashi 1c9b0ccbe3 fix: 修复部分cq码解析错误,merge 2025-03-11 16:16:00 +08:00
春河晴 b6867b904d
fix: 统一使用os.getenv获取数据库连接信息,避免从config对象获取不存在的值时出现KeyError 2025-03-11 17:07:37 +09:00
晴猫 3765c79e3a
Merge branch 'debug' into debug 2025-03-11 13:47:43 +09:00
SengokuCola 5e069f74e2 修复记忆保存时无时间信息的bug 2025-03-11 12:06:01 +08:00
SengokuCola 450f378791
Merge pull request #186 from Naptie/contrib
refactor: 使用 Base64 编码的表情包 CQ 码
2025-03-11 11:47:08 +08:00
SengokuCola e46214bd1c
Merge pull request #176 from BBleae/patch-5
fix: 更新情感判断模型配置(使配置文件里的 llm_emotion_judge 生效)
2025-03-11 11:26:40 +08:00
SengokuCola 73a3e41e47 修复记忆更新bug 2025-03-11 11:11:36 +08:00
Naptie 52c93ba080
refactor: use Base64 for emoji CQ codes 2025-03-11 10:16:04 +08:00
Rikki 67f6d7cd42 fix: 保证能运行的小修改 2025-03-11 06:54:04 +08:00
Rikki 0cf4ff0a4d Merge remote-tracking branch 'upstream/debug' into tc_refractor 2025-03-11 06:01:54 +08:00
Rikki c32c4fb1e2 refactor: 修改配置文件的版本号 2025-03-11 05:06:58 +08:00
Rikki a54ca8ce18 Merge remote-tracking branch 'upstream/debug' into feat_regix 2025-03-11 05:05:07 +08:00
tcmofashi 8cbf9bb048 feat: 史上最好的消息流重构和图片管理 2025-03-11 04:42:24 +08:00
晴猫 a63ce969c7
fix: 更新情感判断模型配置(使配置文件里的 llm_emotion_judge 生效) 2025-03-11 02:38:23 +09:00
SengokuCola 7b35ddd07f ruff 哥又有新点子 2025-03-11 01:19:56 +08:00
tcmofashi 7899e67cb2 feat: 重构完成开始测试debug 2025-03-11 01:15:32 +08:00
SengokuCola 354d6d0deb 记忆系统优化
优化了记忆的连接建立
重启了遗忘功能
2025-03-11 01:13:17 +08:00
ChangingSelf 84495f8329 fix 2025-03-11 00:20:55 +08:00
ChangingSelf 204744cd71 修改配置名与修改过滤对象为raw_message 2025-03-11 00:12:19 +08:00
HYY 3750ebd15b
Merge branch 'debug' into debug 2025-03-10 23:11:36 +08:00
ChangingSelf 1b611ecce5 resolve SengokuCola/MaiMBot#167 根据正则表达式过滤消息 2025-03-10 22:52:14 +08:00
tcmofashi 20b8778e2b Merge branch 'refractor' of https://github.com/tcmofashi/MaiMBot into refractor 2025-03-10 21:01:06 +08:00