added imageinference api

Former-commit-id: 88cfe68d5d660c181f200719ea65c03eddce33b4
This commit is contained in:
tzwang 2024-06-19 16:24:51 +08:00
parent b4b93d2c09
commit cfecebc3b8
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,6 @@ syntax = "v1"
type ( type (
InferOption { InferOption {
TaskName string `json:"taskName"` TaskName string `json:"taskName"`
Images []string `form:"images"`
// AdapterId string `json:"adapterId"` // AdapterId string `json:"adapterId"`
// AiClusterIds []string `json:"aiClusterIds"` // AiClusterIds []string `json:"aiClusterIds"`
// ResourceType string `json:"resourceType"` // ResourceType string `json:"resourceType"`
@ -23,6 +22,7 @@ type (
ImageInferenceReq { ImageInferenceReq {
InferOption *InferOption `json:"inferOption,optional"` InferOption *InferOption `json:"inferOption,optional"`
Images []string `form:"images"`
} }
ImageInferenceResp { ImageInferenceResp {

View File

@ -5881,11 +5881,11 @@ type Category struct {
type InferOption struct { type InferOption struct {
TaskName string `json:"taskName"` TaskName string `json:"taskName"`
Images []string `form:"images"`
} }
type ImageInferenceReq struct { type ImageInferenceReq struct {
InferOption *InferOption `json:"inferOption,optional"` InferOption *InferOption `json:"inferOption,optional"`
Images []string `form:"images"`
} }
type ImageInferenceResp struct { type ImageInferenceResp struct {