Browse Source

fix: update instance center of ai

pull/318/head
qiwang 1 year ago
parent
commit
c12484bf2e
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      desc/inference/inference.api
  2. +2
    -2
      internal/types/types.go

+ 2
- 2
desc/inference/inference.api View File

@@ -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"`


+ 2
- 2
internal/types/types.go View File

@@ -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 {


Loading…
Cancel
Save