Commit Graph

55 Commits

Author SHA1 Message Date
minecraft1024a
2e436dff33 rrrrrrrrrrrrrruuuuuuuuuuuuuuuuuuuuffffffffffffffffffffffffff 2025-11-19 22:57:45 +08:00
minecraft1024a
d66e04baff chore: format code and remove redundant blank lines
This commit applies automated code formatting across the project. The changes primarily involve removing unnecessary blank lines and ensuring consistent code style, improving readability and maintainability without altering functionality.
2025-11-19 22:57:44 +08:00
Windpicker-owo
57ba493a74 fix:修复图片识别爆炸 2025-11-19 22:57:22 +08:00
tt-P607
2dbce6a738 feat(chat): 添加图片消息判断工具函数
增加 `is_image_message` 函数,用于根据消息字典的内容判断该消息是否为图片类型。这有助于在处理不同消息类型时,能够准确识别并分流图片消息。
2025-11-19 22:57:03 +08:00
Windpicker-owo
fe472dff60 修复代码格式和文件名大小写问题 2025-11-19 22:55:55 +08:00
雅诺狐
1b9c86abef Refactor web search plugin and clean up code
Refactored the web search plugin by removing the old Bing search implementation and reorganizing the plugin structure. Introduced modular search engine classes under 'web_search_tool/engines' and utility tools under 'web_search_tool/tools' and 'web_search_tool/utils'. Updated references and initialization logic to support multiple search engines and improved maintainability. Also performed minor code cleanups and replaced 'except ...: pass' with 'except ...: ...' for brevity.
2025-11-19 22:45:42 +08:00
雅诺狐
383f704b53 Remove unused imports across multiple modules
Cleaned up various files by removing unused or redundant import statements to improve code readability and reduce potential confusion. No functional changes were made.
2025-11-19 22:44:32 +08:00
雅诺狐
875e02d42f 数据库重构 2025-11-19 22:40:23 +08:00
minecraft1024a
1e785a117d 优化图片格式处理,统一将'jpg'格式转换为'jpeg',新增标准化和MIME类型转换功能,以确保API兼容性和提高代码可读性(最主要的还是为了gemini) 2025-11-19 22:36:09 +08:00
雅诺狐
23ee3767ef 初始化 2025-11-19 22:34:56 +08:00
UnCLAS-Prommer
43190b12d2 防炸 2025-08-11 11:29:05 +08:00
SengokuCola
1515cef487 fix:必要性修复 2025-08-11 01:08:42 +08:00
SengokuCola
b57671b639 fix:修复表情包描述进入prompt问题 2025-08-09 21:16:57 +08:00
UnCLAS-Prommer
6c0edd0ad7 调整对应的调用 2025-07-30 17:07:55 +08:00
SengokuCola
29e1d6efae feat:修复emoji和图片的缓存
Update send_api.py
2025-07-25 21:03:27 +08:00
SengokuCola
a02ea61386 fix ruff 2025-07-24 05:00:30 +08:00
SengokuCola
6c91b95314 better:新增log前缀映射,优化emoji的显示,加强了emoji的识别 2025-07-24 04:54:47 +08:00
SengokuCola
4aff3c8005 feat:测试性的新辅助记忆系统 2025-07-16 16:11:56 +08:00
SengokuCola
c6ec4c53db Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev 2025-07-13 12:59:10 +08:00
UnCLAS-Prommer
7ef0bfb7c8 完成所有类型注解的修复 2025-07-13 00:19:54 +08:00
SengokuCola
16c2a8b68e fix:无动作时卡入no_reply 2025-07-13 00:04:57 +08:00
UnCLAS-Prommer
b303a95f61 部分类型注解修复,优化import顺序,删除无用API文件 2025-07-12 00:34:49 +08:00
github-actions[bot]
a3a3d872fa 🤖 自动格式化代码 [skip ci] 2025-07-06 14:13:25 +00:00
A0000Xz
b5698f2ede 让麦麦自己发的图片也能初始化picid等字段 2025-07-06 02:47:06 +08:00
github-actions[bot]
6230920d31 🤖 自动格式化代码 [skip ci] 2025-07-05 14:10:08 +00:00
A0000Xz
71e749ce97 修复对于古早缺失字段的图片反复生成新picid记录的BUG 2025-07-05 21:59:55 +08:00
SengokuCola
bf74d0e584 fix:修改默认模型,微调prompt 2025-06-22 14:51:22 +08:00
SengokuCola
81c03c1869 fix:优化prompt和log 2025-06-21 17:57:20 +08:00
github-actions[bot]
40c5763864 🤖 自动格式化代码 [skip ci] 2025-06-16 05:48:17 +00:00
SengokuCola
2cbd9745d2 fix:优化表情包ascii问题 2025-06-16 13:47:25 +08:00
github-actions[bot]
d9ac3f0bb4 🤖 自动格式化代码 [skip ci] 2025-06-14 13:17:53 +00:00
SengokuCola
733f76b280 fix:兼容旧图片格式 2025-06-14 20:38:30 +08:00
SengokuCola
e4e14550c7 修复sql小问题 2025-06-14 17:19:20 +08:00
SengokuCola
b957e482e8 fix:移除b64 2025-06-14 16:04:07 +08:00
github-actions[bot]
538c3ae3f2 🤖 自动格式化代码 [skip ci] 2025-06-14 07:03:25 +00:00
SengokuCola
e15a9b29ff better:优化了图片展示形式 2025-06-14 15:03:09 +08:00
晴猫
fc7b9b61d9 fix: 将日志级别从trace更改为debug 2025-06-11 22:49:25 +09:00
春河晴
6767bd6715 fix: 懒加载单例以修复环境变量加载问题 2025-06-11 17:22:43 +09:00
春河晴
7b4e7b94f8 use structlog instead of loguru 2025-06-11 15:17:08 +09:00
SengokuCola
bc0fba5634 feat:最新最好的关系系统 2025-06-08 23:49:45 +08:00
SengokuCola
bc2c7c5c1e fix:修复normal_chat的planner合并后的一些问题 2025-06-03 00:03:27 +08:00
SengokuCola
b72dd531b5 Merge branch 'dev' into dev 2025-06-02 23:09:11 +08:00
SengokuCola
78f6476ebd fix:偷表情包配置生效 2025-06-02 22:23:11 +08:00
github-actions[bot]
243d5184e6 🤖 自动格式化代码 [skip ci] 2025-06-02 13:15:04 +00:00
SengokuCola
4bf290d55f fix:修复遥测,打字时间,图像识别 2025-06-02 17:46:17 +08:00
SengokuCola
0391111c82 feat:拆分重命名模型配置,修复动作恢复问题 2025-05-27 14:28:41 +08:00
SengokuCola
890a7b6505 feat:修复了action变更,修改了默认配置,提升版本号 2025-05-27 12:41:23 +08:00
SengokuCola
9625750e62 fix:文件路径合理化 2025-05-23 16:00:26 +08:00
SengokuCola
00f02b6f38 Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into new-storage 2025-05-16 21:03:40 +08:00
墨梓柒
b698d17a76 重命名表情包和图像模型中的哈希字段,统一为 emoji_hash 和 image_description_hash,以提高代码一致性 2025-05-16 17:08:30 +08:00