Commit Graph

1947 Commits

Author SHA1 Message Date
墨梓柒
c4499829a6 fix: Ruff 2025-04-23 23:37:07 +08:00
墨梓柒
3dd50aeb0a ban掉fastapi的logger输出 2025-04-23 23:34:54 +08:00
墨梓柒
eccdeda70a Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-04-23 23:31:15 +08:00
墨梓柒
5172f2d22c 竟然还漏了一个?杀! 2025-04-23 23:30:59 +08:00
SengokuCola
bbe70586f2 fix:修复思考炸裂 2025-04-23 23:30:13 +08:00
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
github-actions[bot]
95210e8b25 🤖 自动格式化代码 [skip ci] 2025-04-23 15:24:27 +00: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
SengokuCola
5f830aff86 Update interest_monitor_gui.py 2025-04-23 23:21:30 +08:00
github-actions[bot]
7281c13a12 🤖 自动格式化代码 [skip ci] 2025-04-23 15:17:06 +00:00
墨梓柒
701caa6af2 Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-04-23 23:16:35 +08: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
github-actions[bot]
b4f37d04fe 🤖 自动格式化代码 [skip ci] 2025-04-23 15:04:54 +00:00
墨梓柒
e9a5c773c4 Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-04-23 23:04:37 +08:00
墨梓柒
c727929bcf refactor(logger): 优化日志配置以增强可读性和一致性
重构日志模块,引入MAIN_STYLE_CONFIG和INTEREST_STYLE_CONFIG配置,统一日志格式。通过LogConfig类传递配置参数,确保日志输出在不同模块中保持一致性和可读性。
2025-04-23 23:04:30 +08:00
github-actions[bot]
2a424d087c 🤖 自动格式化代码 [skip ci] 2025-04-23 14:50:38 +00:00
墨梓柒
3ca1df3e21 Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-04-23 22:50:24 +08:00
墨梓柒
f47d2a8b4f refactor(logger): 移除日志格式中的模块信息以简化输出
移除日志格式中的`{extra[module]}`字段,使日志输出更加简洁且易于阅读
2025-04-23 22:50:17 +08:00
UnCLAS-Prommer
e866fb3c05 Merge pull request #835 from UnCLAS-Prommer/dev
1
2025-04-23 22:48:40 +08:00
UnCLAS-Prommer
95cacee2bd 1 2025-04-23 22:48:12 +08:00
墨梓柒
44a7058985 refactor(common): 优化 SIMPLE_OUTPUT 环境变量读取逻辑
- 将 SIMPLE_OUTPUT环境变量的值转换为布尔型
- 提高代码可读性和健壮性
2025-04-23 22:43:17 +08:00
github-actions[bot]
b0b05d532b 🤖 自动格式化代码 [skip ci] 2025-04-23 14:27:57 +00:00
墨梓柒
7438c2dd76 refactor(logger): 替换print为logger并添加自定义日志样式支持
将配置文件加载中的print语句替换为logger.info,以统一日志输出。同时新增log_decorators.py文件,提供自定义日志样式的装饰器支持,并在logger.py中实现自定义样式处理器的添加和移除功能。
2025-04-23 22:27:44 +08:00
SengokuCola
5782d4425b fix:增加日志可读性 2025-04-23 17:22:06 +08:00
SengokuCola
f10540eb8d Update mai_state_manager.py 2025-04-23 17:14:30 +08:00
SengokuCola
b51c84e74e fix:调整了hfc进入概率 2025-04-23 17:12:03 +08:00
SengokuCola
f79f041abc Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-04-23 16:34:06 +08:00
UnCLAS-Prommer
d557aadb6f Merge pull request #833 from infinitycat233/dev
feat: Add g++ compiler installation in Dockerfile
2025-04-23 15:57:39 +08:00
SengokuCola
a46be25973 Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-04-23 15:53:01 +08:00
SengokuCola
26904b9306 Update sub_heartflow.py 2025-04-23 15:52:47 +08:00
github-actions[bot]
1708957471 🤖 自动格式化代码 [skip ci] 2025-04-23 07:52:31 +00:00
SengokuCola
b4a723037a fix:normal_caht未正常启动 2025-04-23 15:52:19 +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
春河晴
77f70d2fb2 chore: Update .gitignore and remove .DS_Store
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-04-23 16:09:14 +09:00
infinitycat
7213062f6d feat: Add g++ compiler installation in Dockerfile
This change ensures the g++ compiler is installed within the Docker image. It updates the build process to support projects requiring C++ compilation.
2025-04-23 14:50:25 +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
墨梓柒
7b707014f5 chore: 更新requirements.txt依赖文件 2025-04-23 11:29:53 +08:00
github-actions[bot]
705e876735 🤖 自动格式化代码 [skip ci] 2025-04-23 02:29:47 +00:00
墨梓柒
9eaf72e4f9 fix: Ruff 2025-04-23 10:29:34 +08: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