modify: cli命令更新
This commit is contained in:
@@ -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. 重启服务
|
||||
|
||||
Reference in New Issue
Block a user