modify: cli命令更新

This commit is contained in:
2026-08-20 16:51:00 +08:00
parent d6b385d2b1
commit 5e5dee83df
6 changed files with 61 additions and 35 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ tags = ["aibox_sophon_adapter", "sophon", "adapter"]
### 新增 RPC 端点
1. 在 `config/workers/aibox_sophon_adapter/` 下创建 `<操作>.toml`(参考 `list_devices.toml`)
2. 运行 `uv run python -m chongming.scripts.gen_models` 生成模型
2. 运行 `uv run gen_models` 生成模型
3. 在 `src/plugins/aibox_sophon_adapter/router/` 下创建 `<操作>.py`,使用 `@rpc_method`
4. 更新 `router/__init__.py` 的导入与 `__all__`
5. 重启服务