35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
syntax = "v1"
|
|
|
|
type (
|
|
/******************image inference*************************/
|
|
|
|
ImageInferenceReq {
|
|
TaskName string `form:"taskName"`
|
|
TaskDesc string `form:"taskDesc"`
|
|
ModelName string `form:"modelName"`
|
|
ModelType string `form:"modelType"`
|
|
AdapterId string `form:"adapterId"`
|
|
AiClusterIds []string `form:"aiClusterIds,optional"`
|
|
ResourceType string `form:"resourceType,optional"`
|
|
ComputeCard string `form:"card,optional"`
|
|
Strategy string `form:"strategy"`
|
|
StaticWeightMap map[string]int32 `form:"staticWeightMap,optional"`
|
|
Params []string `form:"params,optional"`
|
|
Envs []string `form:"envs,optional"`
|
|
Cmd string `form:"cmd,optional"`
|
|
Replica int32 `form:"replicas,optional"`
|
|
}
|
|
|
|
ImageInferenceResp {
|
|
InferResults []*ImageResult `json:"result"`
|
|
}
|
|
|
|
ImageResult {
|
|
ClusterId string `json:"clusterId"`
|
|
ClusterName string `json:"clusterName"`
|
|
ImageName string `json:"imageName"`
|
|
Card string `json:"card"`
|
|
ImageResult string `json:"imageResult"`
|
|
}
|
|
)
|