docs: 修正过期引用(gen_models 命令、网关源码路径)

This commit is contained in:
2026-10-13 17:29:26 +08:00
parent a6853acb0a
commit 230ceeac74
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ config/
| `[development]` | 开发环境配置(server、logging、cors、mqtt) |
| `[production]` | 生产环境配置 |
| `[plugins_worker]` | 插件 Worker 注册配置路径 |
| `[pyinstaller_build_import]` | PyInstaller 打包时的隐式导入声明 |
| `[pyinstaller_build_import]` | PyInstaller 打包时的隐式导入声明(只放网关本体依赖;内置插件专属依赖见根目录 `plugins_deps.toml`) |
### 开发环境配置示例
@@ -230,7 +230,7 @@ optional_field = { type = "int", required = false, default = 0 }
修改任何 TOML 配置后,**必须重新生成 Pydantic 模型**:
```bash
uv run python -m chongming.scripts.gen_models
uv run gen_models
```
该命令扫描 `config/workers/*/` 下所有 `.toml` 文件,自动更新 `src/plugins/*/models/pydantic.py`。