Commit Graph

1034 Commits

Author SHA1 Message Date
SengokuCola
4e767c7633 Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-04-23 23:28:13 +08:00
SengokuCola
f825da590d fix: 修复名字识别错 2025-04-23 23:27:29 +08:00
墨梓柒
6da2a77b78 refactor(logger): 为base_tool和person_info模块添加自定义日志配置
为base_tool和person_info模块引入自定义日志配置,提升日志输出的可读性和一致性。分别在logger.py中新增BASE_TOOL_STYLE_CONFIG和PERSON_INFO_STYLE_CONFIG配置,并在相应模块中应用这些配置。
2025-04-23 23:24:08 +08:00
github-actions[bot]
7281c13a12 🤖 自动格式化代码 [skip ci] 2025-04-23 15:17:06 +00:00
墨梓柒
79260d3b86 refactor(logger): 统一日志配置并添加模块特定样式
为远程、表情、主程序、后台任务等模块添加了特定的日志样式配置,并统一了日志初始化方式,以提高日志的可读性和一致性。
2025-04-23 23:16:20 +08:00
SengokuCola
d7b783b27c Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-04-23 23:11:45 +08:00
SengokuCola
ae95218dc6 fix:修复允许说话的群无效的问题 2025-04-23 23:11:38 +08:00
SengokuCola
7733782929 fix:修复hfc根本不会被触发的bug 2025-04-23 23:08:19 +08:00
墨梓柒
7438c2dd76 refactor(logger): 替换print为logger并添加自定义日志样式支持
将配置文件加载中的print语句替换为logger.info,以统一日志输出。同时新增log_decorators.py文件,提供自定义日志样式的装饰器支持,并在logger.py中实现自定义样式处理器的添加和移除功能。
2025-04-23 22:27:44 +08:00
SengokuCola
c367ec8dfc merge:合并lpmm改动 2025-04-23 15:40:20 +08:00
SengokuCola
d241e1922a fix:ruff 2025-04-23 15:32:24 +08:00
SengokuCola
b4054544c4 fix:实例化 normal_chat,支持不同子聊天拥有不同参数,修复各种问题 2025-04-23 15:30:31 +08:00
春河晴
9b9dbbd74d fix: Ensure explicit returns and correct async calls
Adds explicit `return None` statements in several functions across different modules to improve code clarity and prevent potential issues where functions might implicitly return None.
Corrects an async call in `Heartflow.deactivate_chat` by adding `await`.
Updates type hints in `heartflow_prompt_builder.py`.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-23 15:18:12 +09:00
春河晴
7e26304e94 使用旧式联合体写法以兼容python3.9 2025-04-23 14:39:51 +09:00
github-actions[bot]
705e876735 🤖 自动格式化代码 [skip ci] 2025-04-23 02:29:47 +00:00
墨梓柒
2b07c9e81b feat: 新增LPMM知识库模块及工具支持
- 新增LPMM知识库模块,包括实体提取、RDF构建、Embedding存储、KG管理等功能
- 新增`lpmm_get_knowledge`工具,支持从LPMM知识库中检索相关信息
- 新增OpenIE数据处理模块,支持信息提取、数据导入等功能
- 新增知识库初始化脚本,支持从原始数据到知识库的完整处理流程
- 新增配置文件`lpmm_config.toml`,支持自定义知识库相关参数
- 新增日志模块`LPMM_STYLE_CONFIG`,支持知识库相关日志输出
- 新增`raw_data_preprocessor.py`、`info_extraction.py`、`import_openie.py`等脚本,支持知识库数据预处理
2025-04-23 10:28:05 +08:00
SengokuCola
ca2bbc9c85 fix:修改工具调用问题 2025-04-23 10:27:54 +08:00
SengokuCola
6265fd6c14 fix: 跳!跳进软钢! 2025-04-23 00:55:33 +08:00
SengokuCola
f58f6ca550 Update heartflow_processor.py 2025-04-23 00:49:07 +08:00
SengokuCola
e2d882ec82 fix:拯救大兵ruff 2 2025-04-23 00:43:33 +08:00
SengokuCola
f2c50d2cd4 fix:拯救大兵ruff 2025-04-23 00:42:28 +08:00
SengokuCola
2eecd746af feat:基于不同心流单独的发送器实例,反正能跑,但我也不知道能不能跑
睡觉
2025-04-23 00:41:46 +08:00
SengokuCola
bcf295905e fix:更改心流运行结构,反正能跑 2025-04-22 23:16:57 +08:00
SengokuCola
8d50a381e4 fix:更名和小bug修复 2025-04-22 21:59:23 +08:00
SengokuCola
1482133005 fix:更改文件夹结构 2025-04-22 17:02:14 +08:00
SengokuCola
157a46af68 Merge pull request #801 from UnCLAS-Prommer/dev
拆分_execute_request 第一步:拆分
2025-04-22 11:35:47 +08:00
SengokuCola
061fd33e2f Merge pull request #817 from Dax233/issue#816
修复麦麦会把所有引用回复都识别为提及的问题
2025-04-22 11:35:29 +08:00
Bakadax
e3271e354b 呜呜~讨厌正则 2025-04-22 11:03:33 +08:00
Bakadax
b1ee98007d Merge branch 'issue#816' of https://github.com/Dax233/MaiMBot into issue#816 2025-04-22 09:34:19 +08:00
Bakadax
062d6d46b7 modified: src/plugins/chat/utils.py 2025-04-22 09:34:10 +08:00
github-actions[bot]
273647f958 🤖 自动格式化代码 [skip ci] 2025-04-22 01:30:21 +00:00
Bakadax
6a21f3408e modified: src/plugins/chat/utils.py 2025-04-22 09:29:47 +08:00
SengokuCola
55254549be feat:成功融合reasoning和HFC,由主心流统一调控 2025-04-22 02:01:52 +08:00
tcmofashi
5b894f7f59 fix: reply中的format_info为空 2025-04-22 01:27:04 +08:00
UnCLAS-Prommer
31d45ad346 Merge branch 'MaiM-with-u:dev' into dev 2025-04-21 22:55:24 +08:00
Bakadax
ce1247f2fd modified: src/plugins/chat/utils.py 2025-04-21 20:36:38 +08:00
SengokuCola
94b1b3c0e6 fix:修复民命 2025-04-21 18:51:53 +08:00
SengokuCola
09ff1d9db5 fix:希望不会爆炸 2025-04-21 18:46:40 +08:00
SengokuCola
8b5edf04a2 Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-04-21 18:45:39 +08:00
SengokuCola
c10b7eea61 feat: 整合reasoning模式和hfc模式,统一调控(但不是很统一) 2025-04-21 18:37:49 +08:00
UnCLAS-Prommer
74ed1d3876 Merge branch 'MaiM-with-u:dev' into dev 2025-04-21 15:26:11 +08:00
UnCLAS-Prommer
7d2f5b51a7 合并openai兼容,过ruff 2025-04-21 15:25:29 +08:00
UnCLAS-Prommer
6cb317123d ai说的好 2025-04-21 14:50:25 +08:00
春河晴
1e481a7af1 fix: unreachable? 2025-04-21 14:49:14 +09:00
春河晴
13e05adf80 chore: 显式返回None 2025-04-21 14:42:33 +09:00
春河晴
1dd3c62c55 chore: PEP8 naming 2025-04-21 14:32:32 +09:00
UnCLAS-Prommer
6b599f88ac Merge branch 'MaiM-with-u:dev' into dev 2025-04-21 13:25:28 +08:00
春河晴
5d66334776 fix: 修复未解析的饮用 2025-04-21 14:21:08 +09:00
春河晴
388392b9c5 fix: 删除重复的类定义 2025-04-21 14:16:13 +09:00
SengokuCola
7e0f41c039 fix:修改config 2025-04-21 12:34:00 +08:00