model_register
Register a trained model endpoint by unique name, endpoint URL, and model ID for later switching. Optionally set profile, client type, and verify hash for auditable control.
Instructions
模型注册——注册训练后模型 endpoint(name+endpoint+model)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | 注册名(唯一标识——model_switch 按此切换) | |
| model | No | 模型名(传给服务的 model 字段) | |
| source | No | 来源类型 | endpoint |
| comment | No | 备注 | |
| profile | No | 端点能力画像——strengths 擅长能力 / modalities 模态 / maxContext 最大上下文 / costPerKToken 每千 token 成本 / latencyP50 延迟 P50 | |
| endpoint | No | 服务地址(endpoint 型必填;local-path 型为权重目录占位) | |
| eval_score | No | 评测分数 | |
| client_type | No | 客户端协议(缺省 ollama;openai-compatible = vLLM/第三方 router) | ollama |
| verify_hash | No | 注册时校验权重哈希(缺省 true——供应链完整性) | |
| weights_dir | No | 权重目录(source=local-path 必填——按 manifest.json 目录规范校验,校验通过才注册) |