DrSmoothl
777d4cb0d2
feat: Enhance OpenAI compatibility and introduce unified LLM service data models
...
- Refactored model fetching logic to support various authentication methods for OpenAI-compatible APIs.
- Introduced new data models for LLM service requests and responses to standardize interactions across layers.
- Added an adapter base class for unified request execution across different providers.
- Implemented utility functions for building OpenAI-compatible client configurations and request overrides.
2026-03-26 16:15:42 +08:00
SengokuCola
a5fc4d172d
feat:提供原生vlm支持
2026-03-24 20:57:57 +08:00
SengokuCola
6cfc92e66f
feat:添加maisaka接管回复逻辑
2026-03-24 18:11:15 +08:00
SengokuCola
418a05effd
Merge branch 'r-dev' of https://github.com/Mai-with-u/MaiBot into r-dev
2026-03-24 15:42:03 +08:00
SengokuCola
37f45d48c5
feat:maisaka使用主程序的message格式,优化逻辑,移除冗余模块
2026-03-24 15:41:58 +08:00
DrSmoothl
d13767ee21
feat: Enhance plugin configuration management and SDK integration
...
- Add support for configuration reload scopes in the plugin runtime.
- Implement validation for SDK plugins to ensure required lifecycle methods are overridden.
- Update the configuration update handling to include scope information.
- Introduce tests for expression auto-check task and NapCat adapter SDK integration.
- Refactor configuration management to support callbacks with variable arguments.
- Improve plugin loading and error handling for configuration updates.
- Ensure that plugins can manage their own configuration updates effectively.
2026-03-24 12:14:58 +08:00
UnCLAS-Prommer
310d7798ba
refactor: hook_dispatcher相关的修改
2026-03-24 12:13:17 +08:00
UnCLAS-Prommer
668f41431a
移除无用配置
2026-03-24 12:13:17 +08:00
SengokuCola
e7ca3142e9
feat:修改maisaka
2026-03-23 17:55:39 +08:00
DrSmoothl
a576313b22
Ruff Format
2026-03-13 11:45:26 +08:00
DrSmoothl
f3270d4d41
feat: 添加插件运行时配置类,增强会话令牌管理和插件目录支持
2026-03-13 00:11:00 +08:00
春河晴
27d334df08
i18n: wire startup and config messages
2026-03-12 17:24:37 +09:00
SengokuCola
664f900f43
ref:让MaiSaka使用麦麦原有的pompt系统,配置系统
2026-03-11 21:25:35 +08:00
SengokuCola
8f13c4804b
remove:移除表达反思功能
2026-03-11 20:52:54 +08:00
SengokuCola
045bd5e183
remove:移除传统记忆模式,默认开启lpmm模式
2026-03-11 18:20:34 +08:00
SengokuCola
788de70450
remove:移除做梦功能
2026-03-11 14:49:37 +08:00
DrSmoothl
dfa944b368
feat: 添加 _ready_event 以确保文件监视器在启动时准备就绪,优化监控逻辑
2026-03-09 15:04:58 +08:00
DrSmoothl
426cbc6190
feat(test): 在 FileWatcher 中添加 force_polling 参数以增强文件监控功能
2026-03-09 14:42:03 +08:00
DrSmoothl
b056ad2c34
feat: 添加动态 Tab 分组支持,优化配置界面 UI 元数据
2026-03-07 23:13:04 +08:00
DrSmoothl
b3a81754e6
feat(config): harden file watcher hot-reload flow and add test coverage
...
refactor FileWatcher to subscription-based dispatch with path/change filters
add callback timeout, failure cooldown, auto-retry loop, and runtime stats
strengthen ConfigManager hot-reload with throttling, timeout guard, and watcher stats logging
add pytest suites for watcher behavior and config hot-reload edge cases
2026-03-04 21:39:26 +08:00
UnCLAS-Prommer
b9faed4924
拆分新的utils
2026-02-27 22:07:26 +08:00
UnCLAS-Prommer
e253a2ed2a
分离提及和at必回复
2026-02-27 16:11:47 +08:00
DrSmoothl
eaef7f0e98
Ruff Format
2026-02-21 16:24:24 +08:00
DrSmoothl
ed27217c94
feat(config): add UI metadata to all Bot config sections
...
- BotConfig: 5/5 fields (100%)
- ChatConfig: 9/9 fields (100%)
- PersonalityConfig: 8/8 fields (100%)
- MemoryConfig: 9/9 fields (100%)
- ExpressionConfig: 13/13 fields (100%)
- WebUIConfig: 8/8 fields (100%)
- DatabaseConfig: 1/1 fields (100%)
All user-facing fields now have x-widget and x-icon metadata.
Complex fields marked as 'custom' for Hook rendering.
Completes Task 9 of webui-config-visualization-refactor plan.
2026-02-17 17:35:18 +08:00
DrSmoothl
bae87d122b
feat(config): add UI metadata to ModelConfig fields
...
Add json_schema_extra UI metadata to all Model-related configuration classes:
- APIProvider (7 fields): name, base_url, api_key, client_type, max_retry, timeout, retry_interval
- ModelInfo (8 fields): model_identifier, name, api_provider, price_in, price_out, temperature, max_tokens, force_stream_mode, extra_params
- TaskConfig (5 fields): model_list, max_tokens, temperature, slow_threshold, selection_strategy
- ModelTaskConfig (9 fields): utils, replyer, vlm, voice, tool_use, planner, embedding, lpmm_entity_extract, lpmm_rdf_build
Pattern: Field(default=..., [ge/le constraints], json_schema_extra={x-widget, x-icon, [step]})
Widget types: input, slider, switch, select, custom (for complex types)
Constraints mapped: ge/le to minValue/maxValue in Schema output (Task 1d)
All 30 user-facing fields now have complete metadata coverage:
- x-widget: rendering hint for frontend
- x-icon: icon identifier from lucide-react
- Constraints: ge, le for numeric validation
Verification:
✓ All classes import successfully
✓ 100% metadata coverage on user-facing fields
✓ Config instance creation works
✓ Backward compatible with existing validation
Relates to: Task 12 (Wave 3) of webui-config-visualization-refactor
2026-02-17 17:25:48 +08:00
DrSmoothl
5879164bfe
feat(config): add UI metadata to remaining ChatConfig fields (Wave 2)
...
- plan_reply_log_max_per_chat: input widget + file-text icon
- llm_quote: switch widget + quote icon
- enable_talk_value_rules: switch widget + settings icon
- talk_value_rules: custom widget + list icon
All ChatConfig fields now have json_schema_extra metadata for complete UI visualization support.
2026-02-17 17:09:07 +08:00
DrSmoothl
278a084c23
feat(webui): enhance ConfigSchemaGenerator with field_docs and UI metadata
...
- Add AttrDocBase.get_class_field_docs() classmethod for class-level field docs extraction
- Merge json_schema_extra (x-widget, x-icon, step) into schema output
- Map Pydantic constraints (ge/le) to minValue/maxValue for frontend compatibility
- Add ge=0, le=1 constraints to ChatConfig.talk_value for validation
Completes Task 1 (including subtasks 1a, 1b, 1c, 1d) of webui-config-visualization-refactor plan.
2026-02-17 17:05:25 +08:00
DrSmoothl
1631774452
feat(config): add UI metadata to ChatConfig sample fields
2026-02-17 16:49:49 +08:00
DrSmoothl
0dccc23e76
更新 GitHub Actions 工作流,统一使用 ubuntu-24.04 作为运行环境;新增发布 WebUI 产物的工作流
2026-02-15 16:19:13 +08:00
UnCLAS-Prommer
6db889580d
方便消息格式检查的property
2026-02-14 23:52:58 +08:00
DrSmoothl
dc36542403
添加文件监视器地基模块,重构模型请求模块使用新版本的配置热重载模块,新增watchfiles依赖
2026-02-14 21:17:24 +08:00
UnCLAS-Prommer
b9f3c17e14
合并到远程
2026-02-13 13:41:58 +08:00
SengokuCola
3a5fd9d3e3
feat:自动检测并升级旧版配置文件
2026-02-06 23:05:43 +08:00
UnCLAS-Prommer
4dbe919cfe
移除.env文件
2026-02-05 16:16:44 +08:00
UnCLAS-Prommer
c15b77907e
Prompt管理器与测试;调整部分方法名称
2026-01-20 14:00:15 +08:00
UnCLAS-Prommer
3a66bfeac1
恢复可用性
2026-01-16 23:03:45 +08:00
墨梓柒
7bdd394bf0
将PFC加回来,修复一大堆PFC的神秘报错
2026-01-16 03:36:25 +08:00
UnCLAS-Prommer
77725ba9d8
逐步适配新的config
2026-01-15 23:51:19 +08:00
UnCLAS-Prommer
c8b4366501
忘了引入webui了
2026-01-15 17:24:06 +08:00
UnCLAS-Prommer
b6fb74e8c8
补上webui config
2026-01-15 17:17:21 +08:00
UnCLAS-Prommer
7c23c6466b
怎么重复了一块配置
2026-01-15 17:14:23 +08:00
UnCLAS-Prommer
9186d14100
解决ConfigBase问题,更严格测试,实际测试
2026-01-15 17:05:23 +08:00
UnCLAS-Prommer
fd46d8a302
Merge branch 'dev' into r-dev
2026-01-12 22:44:43 +08:00
UnCLAS-Prommer
13f095f231
使用Sourcery的Test,修复测出来的Bug
2026-01-12 21:48:54 +08:00
SengokuCola
ccc9af57b8
ref:记忆检索不再基于问题,而是基于上下文;添加一些调试用配置
2026-01-12 19:05:07 +08:00
UnCLAS-Prommer
207dc460cb
ConfigBase and Test
2026-01-12 18:20:03 +08:00
SengokuCola
87d4c7c38a
remove:移除Planner问题配置项
2026-01-12 00:37:50 +08:00
SengokuCola
a8c25cdc15
feat:wait可被打断,不推荐修改私聊planner
2026-01-06 22:40:46 +08:00
SengokuCola
71a85667e3
feat:可选,由llm执行回复
2025-12-31 00:43:08 +08:00
SengokuCola
67c24f84cd
feat:日志上线数量可更改
2025-12-31 00:07:55 +08:00