@daocloud-proto/hydra 0.0.0-dev-b7de043b → 0.0.0-dev-f02519ef

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -136,6 +136,26 @@ export type UpdateDeployTemplatesRequest = {
136
136
  deployTemplates?: HydraManagement_apiModelV1alpha1Model.DeployTemplate[]
137
137
  }
138
138
 
139
+ export type ModelServingRef = {
140
+ id?: string
141
+ name?: string
142
+ cluster?: string
143
+ namespace?: string
144
+ }
145
+
146
+ export type WorkspaceModelServingGroup = {
147
+ workspaceId?: string
148
+ items?: ModelServingRef[]
149
+ }
150
+
151
+ export type ListModelServingsByModelRequest = {
152
+ modelId?: string
153
+ }
154
+
155
+ export type ListModelServingsByModelResponse = {
156
+ items?: WorkspaceModelServingGroup[]
157
+ }
158
+
139
159
  export class AdminModelManagement {
140
160
  static CreateModel(req: CreateModelRequest, initReq?: fm.InitReq): Promise<Model> {
141
161
  return fm.fetchReq<CreateModelRequest, Model>(`/apis/admin.hydra.io/v1alpha1/models`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
@@ -170,6 +190,9 @@ export class AdminModelManagement {
170
190
  static UpdateDeployTemplates(req: UpdateDeployTemplatesRequest, initReq?: fm.InitReq): Promise<Model> {
171
191
  return fm.fetchReq<UpdateDeployTemplatesRequest, Model>(`/apis/admin.hydra.io/v1alpha1/models/${req["modelId"]}/deploy_templates`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
172
192
  }
193
+ static ListModelServingsByModel(req: ListModelServingsByModelRequest, initReq?: fm.InitReq): Promise<ListModelServingsByModelResponse> {
194
+ return fm.fetchReq<ListModelServingsByModelRequest, ListModelServingsByModelResponse>(`/apis/admin.hydra.io/v1alpha1/models/${req["modelId"]}/servings?${fm.renderURLSearchParams(req, ["modelId"])}`, {...initReq, method: "GET"})
195
+ }
173
196
  }
174
197
  export class AdminModelTemplateManagement {
175
198
  static CreateModelTemplate(req: HydraManagement_apiModelV1alpha1Model.CreateModelTemplateRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiModelV1alpha1Model.ModelTemplate> {
@@ -148,6 +148,7 @@ export type ResourceConfig = BaseResourceConfig
148
148
  export type FineTuneConfig = {
149
149
  name?: string
150
150
  cluster?: string
151
+ namespace?: string
151
152
  stage?: TrainingStage
152
153
  finetuningType?: FineTuningType
153
154
  model?: ModelConfig
@@ -163,6 +164,7 @@ export type FineTuneConfig = {
163
164
  export type CreateWSFineTuneConfigRequest = {
164
165
  workspace?: number
165
166
  cluster?: string
167
+ namespace?: string
166
168
  name?: string
167
169
  stage?: TrainingStage
168
170
  finetuningType?: FineTuningType
@@ -177,6 +179,7 @@ export type CreateWSFineTuneConfigRequest = {
177
179
  export type UpdateWSFineTuneConfigRequest = {
178
180
  workspace?: number
179
181
  cluster?: string
182
+ namespace?: string
180
183
  name?: string
181
184
  stage?: TrainingStage
182
185
  finetuningType?: FineTuningType
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.0.0-dev-b7de043b",
3
+ "version": "v0.0.0-dev-f02519ef",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"