Commit Graph

688 Commits

Author SHA1 Message Date
Pliosauroidea
d6860bbc1d Merge remote-tracking branch 'upstream/debug' into debug 2025-03-12 23:26:52 +08:00
Pliosauroidea
eafc3dea71 修正了message变动导致的私聊error 2025-03-12 23:16:29 +08:00
HYY
d9386317fc fix: 修复缺失hash字段和文件的记录 抛出File not found
fix: 修复缺失hash字段和文件的记录 抛出File not found
2025-03-12 23:12:00 +08:00
HYY
e56796be81 Merge branch 'debug' into debug 2025-03-12 23:11:48 +08:00
HYY
24a3cf3b66 fix:修复了一个hash unset可能导致异常的点 2025-03-12 23:09:53 +08:00
KawaiiYusora
acb59e5d8d fix: 修复缺失hash字段的记录 抛出File not found 2025-03-12 23:07:28 +08:00
HYY
2b6a0b7e4f fix: 修复hash为unset,修复set reply
fix: 修复hash为unset,修复set reply
2025-03-12 22:57:47 +08:00
tcmofashi
3b1fc70e26 fix: 路径完整性检查 2025-03-12 21:51:16 +08:00
tcmofashi
8b3011e15c Merge remote-tracking branch 'upstream/debug' into debug 2025-03-12 21:47:53 +08:00
tcmofashi
f8ac3f879d Merge pull request #287 from BBleae/debug
重构database.py为全局对象模式
2025-03-12 21:43:57 +08:00
晴猫
ce12ba655d typo 2025-03-12 22:39:18 +09:00
tcmofashi
588aecd0f3 fix: 为没有hash的表情包添加hash,修复set reply 2025-03-12 21:30:38 +08:00
晴猫
8be087dcad 重构数据库访问,替换为统一的数据库实例引用 2025-03-12 22:27:59 +09:00
晴猫
49082267bb 重构数据库模块实现延迟初始化
- 使用Global Object Pattern设计模式
- 实现数据库连接的延迟初始化
- 添加类型注解支持IDE类型推导
- 确保环境变量在bot.py加载后再连接数据库

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-12 22:27:05 +09:00
tcmofashi
3857642203 Merge remote-tracking branch 'upstream/debug' into debug 2025-03-12 20:26:06 +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
aab7fe1c5a feat: 创建日志文件
Add logger file sink and fix logger loading issues
2025-03-12 11:40:13 +08:00
Nestor Qin
8676682e97 Sink logs to logs file 2025-03-11 20:26:02 -07:00
Nestor Qin
aecb4ffa35 Fix logger double loading 2025-03-11 20:04:52 -07:00
HYY
f7f2c73eeb fix:修复火山缺少finish_reasoning导致的报错
fix:修复火山缺少finish_reasoning导致的报错
2025-03-12 11:02:48 +08:00
HYY
26ed7f54d3 遵循s指导 2025-03-12 10:59:34 +08:00
HYY
25ecfcecc0 修补 2025-03-12 10:42:48 +08:00
Pliosauroidea
0f292bb7c0 Merge remote-tracking branch 'upstream/debug' into debug 2025-03-12 10:05:11 +08:00
HYY1116
75aeecaeab Merge branch 'debug' of https://github.com/HYY1116/MaiMBot into debug 2025-03-12 09:58:17 +08:00
HYY1116
d106260d93 小修补 2025-03-12 09:58:10 +08:00
HYY
7d44393d59 Merge branch 'SengokuCola:debug' into debug 2025-03-12 09:55:36 +08:00
HYY1116
1840599156 fix: 尝试修复所有图片都被保存为jpg的问题,并以正确的格式请求识图api 2025-03-12 09:53:01 +08:00
tcmofashi
60095307eb Merge pull request #241 from twds0x13/debug
简易 Q&A 目录,适用于常见问题
2025-03-12 09:42:25 +08:00
Pliosauroidea
5040e7111a 删除一个莫名其妙的文件 2025-03-12 08:28:41 +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
Twds_0x13
524014bd90 排版 2025-03-12 02:35:45 +08:00
Twds_0x13
86ca4aeebe 教程视频 2025-03-12 02:21:44 +08:00