Commit Graph

12 Commits

Author SHA1 Message Date
John Richard
a79253c714 re-style: 格式化代码 2025-11-19 23:13:20 +08:00
雅诺狐
93542cadef perf(methods): 通过移除不必要的 self 参数优化方法签名
在包括 chat、plugin_system、schedule 和 mais4u 在内的多个模块中,消除冗余的实例引用。此次改动将无需访问实例状态的实用函数转换为静态方法,从而提升了内存效率,并使方法依赖关系更加清晰。
2025-11-19 23:05:00 +08:00
Windpicker-owo
fe472dff60 修复代码格式和文件名大小写问题 2025-11-19 22:55:55 +08:00
雅诺狐
8d67632b9b Enforce strict type validation and update config types
Enabled strict type checking in ValidatedConfigBase to fully disable type coercion. Updated MessageReceiveConfig and MemoryConfig fields from set/tuple to list types for compatibility with strict validation.
2025-11-19 22:45:02 +08:00
雅诺狐
bb4592846c Refactor config system to use Pydantic validation
Refactored configuration classes to inherit from a new ValidatedConfigBase using Pydantic for robust validation and error reporting. Updated api_ada_configs.py, config.py, config_base.py, and official_configs.py to replace dataclasses with Pydantic models, add field validation, and improve error messages. This change enhances configuration reliability and developer feedback for misconfigurations. Also includes minor code cleanups and removal of unused variables in other modules.
2025-11-19 22:44:45 +08:00
UnCLAS-Prommer
7ef0bfb7c8 完成所有类型注解的修复 2025-07-13 00:19:54 +08:00
github-actions[bot]
1bff478fcc 🤖 自动格式化代码 [skip ci] 2025-07-11 05:19:35 +00:00
github-actions[bot]
243d5184e6 🤖 自动格式化代码 [skip ci] 2025-06-02 13:15:04 +00:00
SengokuCola
2432c8d0ea feat:修复了关键词功能,并且在focus可用 2025-06-02 17:46:03 +08:00
github-actions[bot]
222080f6c4 🤖 自动格式化代码 [skip ci] 2025-05-24 12:29:28 +00:00
SengokuCola
ca55aca750 fix:处理特殊类型 2025-05-24 19:24:34 +08:00
Oct-autumn
021e7f1a97 refactor: 重构配置模块 2025-05-16 16:50:53 +08:00