雅诺狐
|
679195d792
|
refactor(db): 修正SQLAlchemy异步操作调用方式
移除session.add()方法的不必要await调用,修正异步数据库操作模式。主要变更包括:
- 将 `await session.add()` 统一改为 `session.add()`
- 修正部分函数调用为异步版本(如消息查询函数)
- 重构SQLAlchemyTransaction为完全异步实现
- 重写napcat_adapter_plugin数据库层以符合异步规范
- 添加aiomysql和aiosqlite依赖支持
|
2025-11-19 23:05:17 +08:00 |
|
tt-P607
|
dedd06efdc
|
refactor(core): 适配核心数据获取与消息构建函数的异步调用
在数据库交互层异步化后,多个相关的数据获取和消息构建函数(如 `build_readable_messages`)也转为异步实现。本次提交在所有调用点添加了 `await` 关键字,以适应这一变化。
此外,本次提交还包含以下修复:
- 在主动思考模块中增加了对规划器返回无效动作的检查,避免后续流程出错。
- 修正了日志记录中错误的上下文变量引用。
|
2025-11-19 23:05:11 +08:00 |
|
雅诺狐
|
93542cadef
|
perf(methods): 通过移除不必要的 self 参数优化方法签名
在包括 chat、plugin_system、schedule 和 mais4u 在内的多个模块中,消除冗余的实例引用。此次改动将无需访问实例状态的实用函数转换为静态方法,从而提升了内存效率,并使方法依赖关系更加清晰。
|
2025-11-19 23:05:00 +08:00 |
|
Windpicker-owo
|
3980509caa
|
refactor(prompt): 重构并统一提示词系统
- 删除旧的智能提示词系统(smart_prompt.py)和相关参数模块(prompt_parameters.py)
- 将 prompt_builder.py 重命名为 prompt.py 并精简功能
- 更新所有模块的导入路径从 `src.chat.utils.prompt_builder` 到 `src.chat.utils.prompt`
- 统一提示词构建接口,使用新的 PromptContext 替代 SmartPromptParameters
- 移除重复和冗余代码,简化系统架构
BREAKING CHANGE: 旧的 SmartPrompt 系统已被完全移除,所有相关模块需要改用新的统一 Prompt 系统
|
2025-11-19 22:58:17 +08:00 |
|
Windpicker-owo
|
51aad4f952
|
迁移:1f91967(remove:移除willing系统,移除reply2,移除能量值,移除reply_to改为message)
|
2025-11-19 22:57:24 +08:00 |
|
Windpicker-owo
|
fe472dff60
|
修复代码格式和文件名大小写问题
|
2025-11-19 22:55:55 +08:00 |
|
雅诺狐
|
ab3a36bfa7
|
全面更换orjson
|
2025-11-19 22:47:10 +08:00 |
|
SengokuCola
|
ed4313b8c0
|
修复了bug
|
2025-08-13 19:17:56 +08:00 |
|
SengokuCola
|
41a09b39b9
|
fix:将s4u启用放到配置文件防止git更新
|
2025-08-13 19:15:17 +08:00 |
|
tcmofashi
|
f5c66d4729
|
Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev
|
2025-08-13 09:33:41 +08:00 |
|
SengokuCola
|
4ffcc61f4b
|
feat:记录使用的表达方式
|
2025-08-12 21:44:35 +08:00 |
|
tcmofashi
|
4dec7d1f16
|
Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev
|
2025-08-12 18:45:03 +08:00 |
|
tcmofashi
|
76285ecb8b
|
feat: 增加对动作的重载选项
|
2025-08-12 18:42:55 +08:00 |
|
SengokuCola
|
ae254de494
|
better:重构personinfo,使用Person类和类属性
|
2025-08-12 14:33:13 +08:00 |
|
SengokuCola
|
1e7f3a92a6
|
fix:用新LLMREQ处理S4u
|
2025-08-12 11:25:46 +08:00 |
|
SengokuCola
|
0f6ed0fe02
|
ref:重构关系系统第一步,拆除impression,采用不同属性交叉评分呢
|
2025-08-12 01:38:19 +08:00 |
|
SengokuCola
|
268b428e8f
|
feat: llm统计现已记录模型反应时间
|
2025-08-11 21:51:59 +08:00 |
|
SengokuCola
|
b738b6ba63
|
feat:添加群印象
|
2025-08-11 19:53:33 +08:00 |
|
SengokuCola
|
1f91967d2d
|
remove:移除willing系统,移除reply2,移除能量值,移除reply_to改为message
|
2025-08-11 13:18:17 +08:00 |
|
SengokuCola
|
8053067af5
|
feat:优化关键词显示,优化表达方式配置和逻辑
|
2025-08-09 00:10:41 +08:00 |
|
SengokuCola
|
a2c86f3605
|
feat:部分处理notify,自动同步数据库null约束变更
notify存储至message库
|
2025-08-08 12:34:21 +08:00 |
|
UnCLAS-Prommer
|
6c0edd0ad7
|
调整对应的调用
|
2025-07-30 17:07:55 +08:00 |
|
SengokuCola
|
8c9b2b54c0
|
better:优化interest的算法,更好更强
|
2025-07-25 15:45:14 +08:00 |
|
SengokuCola
|
a02ea61386
|
fix ruff
|
2025-07-24 05:00:30 +08:00 |
|
SengokuCola
|
b839f8ba6c
|
better:优化prompt和配置和无用代码
|
2025-07-24 02:37:11 +08:00 |
|
SengokuCola
|
398e15232e
|
feat:升级loger_viewer,移除无用脚本
|
2025-07-23 23:55:15 +08:00 |
|
SengokuCola
|
9d4eed3c06
|
fix:默认不启动s4u组件
|
2025-07-23 02:48:40 +08:00 |
|
SengokuCola
|
c17b138c08
|
fix:ruff
|
2025-07-23 02:25:43 +08:00 |
|
SengokuCola
|
12a8290cfb
|
fix:意外启动s4u
|
2025-07-23 02:25:34 +08:00 |
|
SengokuCola
|
75022b5d10
|
s4u的一些修改,包括动作适配
|
2025-07-22 20:36:53 +08:00 |
|
SengokuCola
|
639048deed
|
feat:麦麦会产生thinking,并发送内容到直播流
|
2025-07-21 00:44:58 +08:00 |
|
SengokuCola
|
9be97acb00
|
feat:移除watching,增加回复生成缓冲,添加头部动作
|
2025-07-17 22:25:33 +08:00 |
|
SengokuCola
|
4e294e95d4
|
覅下:ruff
|
2025-07-17 00:56:16 +08:00 |
|
SengokuCola
|
c12975bfdf
|
fix:修正s4u的一些问题,修复表达方式共享失效的问题
|
2025-07-17 00:55:48 +08:00 |
|
SengokuCola
|
7d448c5fdc
|
feat:可接受 screen seg来读屏幕
|
2025-07-15 20:29:06 +08:00 |
|
SengokuCola
|
8111291f99
|
Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev
|
2025-07-15 17:05:53 +08:00 |
|
SengokuCola
|
47b7624ec4
|
fix ruff
|
2025-07-15 17:04:58 +08:00 |
|
SengokuCola
|
5ec0d42cde
|
feat:添加新的message类为s4u服务,添加s4u config,添加sc和gift的解析,修复关系构建的一些问题
|
2025-07-15 17:04:30 +08:00 |
|
UnCLASPrommer
|
b5fd959fe1
|
ruff, typing, api, bug fix
|
2025-07-15 16:50:29 +08:00 |
|
SengokuCola
|
443f0a4f6f
|
feat:添加思考状态发送,优化s4u队列
|
2025-07-15 02:53:54 +08:00 |
|
SengokuCola
|
8e34ab885a
|
feat:为s4u添加一个透明底的聊天记录网页
|
2025-07-14 23:44:01 +08:00 |
|
SengokuCola
|
3332be0d12
|
feat:添加了眨眼动作和微动作,注视动作
|
2025-07-14 02:44:27 +08:00 |
|
SengokuCola
|
6226de10ea
|
remove:移除pfc遗留代码
|
2025-07-13 15:19:56 +08:00 |
|
SengokuCola
|
5fd4caf23b
|
fix:更新s4u表情系统
|
2025-07-13 13:00:03 +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
|
f890722c3d
|
Merge branch 'dev' into plugin
|
2025-07-13 01:28:48 +08:00 |
|
SengokuCola
|
7757931da5
|
feat:为s4u添加优先级信息
|
2025-07-13 00:05:12 +08:00 |
|
SengokuCola
|
16c2a8b68e
|
fix:无动作时卡入no_reply
|
2025-07-13 00:04:57 +08:00 |
|
UnCLAS-Prommer
|
485aaac783
|
Merge branch 'dev' into plugin
|
2025-07-12 10:02:05 +08:00 |
|
SengokuCola
|
8d303d96a2
|
Merge branch 'dev' of https://github.com/MaiM-with-u/MaiBot into dev
|
2025-07-12 01:26:30 +08:00 |
|