From c12484bf2ec85091b0f6800486807cdd072b2c2d Mon Sep 17 00:00:00 2001 From: qiwang <1364512070@qq.com> Date: Wed, 9 Oct 2024 09:46:55 +0800 Subject: [PATCH] fix: update instance center of ai --- desc/inference/inference.api | 4 ++-- internal/types/types.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/desc/inference/inference.api b/desc/inference/inference.api index 87b9f7fd..13ccda23 100644 --- a/desc/inference/inference.api +++ b/desc/inference/inference.api @@ -35,8 +35,8 @@ type ( /******************image inference*************************/ /******************instance center*************************/ InstanceCenterReq{ - InstanceType int32 `json:"instance_type"` - InstanceClass string `json:"instance_class"` + InstanceType int32 `form:"instance_type"` + InstanceClass string `form:"instance_class,optional"` } InstanceCenterResp { InstanceCenterList []InstanceCenterList `json:"instanceCenterList" copier:"InstanceCenterList"` diff --git a/internal/types/types.go b/internal/types/types.go index 271fcb36..9bef1f4a 100644 --- a/internal/types/types.go +++ b/internal/types/types.go @@ -3666,8 +3666,8 @@ type InstanceCenterList struct { } type InstanceCenterReq struct { - InstanceType int32 `json:"instance_type"` - InstanceClass string `json:"instance_class"` + InstanceType int32 `form:"instance_type"` + InstanceClass string `form:"instance_class,optional"` } type InstanceCenterResp struct {