Commit Graph

335 Commits

Author SHA1 Message Date
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
SengokuCola
a6e1a0e7d3 feat:可添加的评估标准 2025-12-27 17:48:28 +08:00
SengokuCola
f92136bffc feat;模型选择现在可以使用完全随机的策略
Update model_config_template.toml
2025-12-27 17:34:26 +08:00
SengokuCola
99665e7918 feat:新增自动表达优化功能,优化表达方式的提取 2025-12-27 17:20:11 +08:00
墨梓柒
fe75dad3bb feat:添加对Optional类型的安全检查,禁止多类型Union 2025-12-24 21:59:54 +08:00
墨梓柒
e1c03608c2 feat:支持Union/Optional类型的字段转换,增强配置加载的灵活性 2025-12-24 21:57:35 +08:00
SengokuCola
7cbc2f1462 remove:移除utils_small模型,统一使用tool_use模型,移除弃用的LLM_judge类型 2025-12-24 19:28:44 +08:00
SengokuCola
a3c3fcf518 remove:无用模型 2025-12-24 18:53:15 +08:00
SengokuCola
0852af49f9 feat;优化了记忆检索的速度和token消耗(将question提出交给planenr) 2025-12-24 18:43:32 +08:00
墨梓柒
a13f605977 更新 WebUI 配置,移除 host 和 port 字段,改为从环境变量读取;更新配置模板版本至 7.2.5,并添加相关说明。 2025-12-20 12:35:15 +08:00
SengokuCola
edfc8d053a Merge branch 'dev' of https://github.com/Mai-with-u/MaiBot into dev 2025-12-19 18:18:47 +08:00
SengokuCola
acd0952857 feat:做梦可以私发 2025-12-19 18:18:38 +08:00
墨梓柒
3231995ebd feat: 增强 WebUI 配置,支持防爬虫和安全 Cookie 设置 2025-12-19 00:44:22 +08:00
SengokuCola
bc2431ce98 黑话提取新模式 2025-12-18 21:01:32 +08:00
SengokuCola
216c51d7a2 feat:可以关闭回复前黑话自动提取 2025-12-18 17:34:32 +08:00
SengokuCola
11dd9ece13 feat:表达方式可以多种随机 2025-12-18 17:07:54 +08:00
tcmofashi
dc95ea25a2 Merge pull request #1432 from tcmofashi/dev
feat: 支持maim_message api-server模式
2025-12-17 15:26:13 +08:00
SengokuCola
3ea775af92 Update config.py
Update changelog.md
2025-12-16 15:03:38 +08:00
tcmofashi
c69ec06130 feat: 支持maim_message api-server模式 2025-12-14 12:36:25 +08:00
墨梓柒
e680a4d1f5 Ruff format 2025-12-13 17:14:09 +08:00
SengokuCola
b73a748f52 feat:优化think_mode,修复表情包选取bug 2025-12-13 00:12:13 +08:00
SengokuCola
110431e6d2 feat:添加思考深度配置 2025-12-12 23:50:55 +08:00
SengokuCola
a0ba073cfb remove:人格的兴趣配置项移动到planner prompt中 2025-12-08 19:24:04 +08:00
SengokuCola
910c73be73 feat:默认开启planner replyer联动 2025-12-07 23:54:04 +08:00
SengokuCola
2e31fa2055 feat:复用jargon和expression的部分代码,代码层面合并,合并配置项
缓解bot重复学习自身表达的问题
缓解单字黑话推断时消耗过高的问题
修复count过高时推断过长的问题
移除表达方式学习强度配置
2025-12-07 14:28:30 +08:00