Browse Source

新增查询所有模型等接口

gitlink
JeshuaRen 1 year ago
parent
commit
83d1e96382
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      sdks/scheduler/modeljob.go

+ 6
- 4
sdks/scheduler/modeljob.go View File

@@ -6,7 +6,6 @@ import (
"gitlink.org.cn/cloudream/common/pkgs/mq" "gitlink.org.cn/cloudream/common/pkgs/mq"
myhttp "gitlink.org.cn/cloudream/common/utils/http" myhttp "gitlink.org.cn/cloudream/common/utils/http"
"gitlink.org.cn/cloudream/common/utils/serder" "gitlink.org.cn/cloudream/common/utils/serder"
schmod "gitlink.org.cn/cloudream/scheduler/common/models"
"net/url" "net/url"
"strings" "strings"
) )
@@ -24,7 +23,12 @@ type RunningModelResp struct {


type AllModelResp struct { type AllModelResp struct {
MessageBodyBase MessageBodyBase
AllModels []schmod.Models `json:"allModels"`
AllModels []Models `json:"allModels"`
}

type Models struct {
ModelID ModelID `json:"modelID"`
ModelName ModelName `json:"modelName"`
} }


type NodeInfo struct { type NodeInfo struct {
@@ -75,8 +79,6 @@ type UsageRate struct {
} }


const ( const (
RunStatus = "run"
StopStatus = "stop"
FineTuning = "finetuning" FineTuning = "finetuning"


CreateECS = "create" CreateECS = "create"


Loading…
Cancel
Save