From eb4ca38875497b2e284a966c987116c827b5ff9d Mon Sep 17 00:00:00 2001 From: tzwang Date: Wed, 19 Jun 2024 19:30:09 +0800 Subject: [PATCH] updated imageinference api Former-commit-id: cb39280dcc921074722e34f0387b613fbef4e2c6 --- api/desc/inference/inference.api | 1 + api/internal/types/types.go | 1 + 2 files changed, 2 insertions(+) diff --git a/api/desc/inference/inference.api b/api/desc/inference/inference.api index c47fb20e..51492e01 100644 --- a/api/desc/inference/inference.api +++ b/api/desc/inference/inference.api @@ -3,6 +3,7 @@ syntax = "v1" type ( InferOption { TaskName string `json:"taskName"` + ModelName string `json:"modelName"` TaskType string `json:"taskType"` AdapterId string `json:"adapterId"` AiClusterIds []string `json:"aiClusterIds"` diff --git a/api/internal/types/types.go b/api/internal/types/types.go index e45a6d7e..d339507c 100644 --- a/api/internal/types/types.go +++ b/api/internal/types/types.go @@ -5881,6 +5881,7 @@ type Category struct { type InferOption struct { TaskName string `json:"taskName"` + ModelName string `json:"modelName"` TaskType string `json:"taskType"` AdapterId string `json:"adapterId"` AiClusterIds []string `json:"aiClusterIds"`