@daocloud-proto/hydra 0.15.0-dev-3 → 0.15.0-dev-5

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.
@@ -41,6 +41,7 @@ export type ListClusterResponse = {
41
41
  export type ConstantsResponse = {
42
42
  defaultFilesStorageCapacity?: string
43
43
  defaultMountPath?: string
44
+ defaultModelServingPort?: number
44
45
  }
45
46
 
46
47
  export type ListPlatformRolePermissionsForCurrentUserResponse = {
@@ -11,4 +11,9 @@ export enum JobStatus {
11
11
  COMPLETED = "COMPLETED",
12
12
  FAILED = "FAILED",
13
13
  DELETING = "DELETING",
14
+ }
15
+
16
+ export type EnvVar = {
17
+ name?: string
18
+ value?: string
14
19
  }
@@ -44,6 +44,7 @@ export type EvalJob = {
44
44
  creationTimestamp?: GoogleProtobufTimestamp.Timestamp
45
45
  completionTimestamp?: GoogleProtobufTimestamp.Timestamp
46
46
  datasetName?: string
47
+ env?: HydraManagement_apiFinetuneV1alpha1Common.EnvVar[]
47
48
  }
48
49
 
49
50
 
@@ -57,6 +58,7 @@ export type EvalJob = {
57
58
  finetuneJobName?: string
58
59
  datasetId?: string
59
60
  datasetVolumeId?: string
61
+ env?: HydraManagement_apiFinetuneV1alpha1Common.EnvVar[]
60
62
  }
61
63
 
62
64
  export type CreateWSEvalJobRequest = BaseCreateWSEvalJobRequest
@@ -52,6 +52,7 @@ export type FineTuneJob = {
52
52
  metrics?: MetricPoint[]
53
53
  trainingParams?: GoogleProtobufStruct.Struct
54
54
  metadata?: GoogleProtobufStruct.Struct
55
+ env?: HydraManagement_apiFinetuneV1alpha1Common.EnvVar[]
55
56
  }
56
57
 
57
58
  export type CreateWSFineTuneJobRequest = {
@@ -67,6 +68,7 @@ export type CreateWSFineTuneJobRequest = {
67
68
  training?: HydraManagement_apiFinetuneV1alpha1Finetuneconfig.TrainingConfig
68
69
  dpo?: HydraManagement_apiFinetuneV1alpha1Finetuneconfig.DpoConfig
69
70
  resources?: HydraManagement_apiFinetuneV1alpha1Finetuneconfig.ResourceConfig
71
+ env?: HydraManagement_apiFinetuneV1alpha1Common.EnvVar[]
70
72
  }
71
73
 
72
74
  export type GetWSFineTuneJobRequest = {
@@ -263,6 +263,24 @@ export type ListWSModelServingResponse = {
263
263
  page?: HydraCommonCommon.Pagination
264
264
  }
265
265
 
266
+ export type ListWSModelServingConfigMapsRequest = {
267
+ workspace?: number
268
+ cluster?: string
269
+ namespace?: string
270
+ page?: HydraCommonCommon.Pagination
271
+ name?: string
272
+ }
273
+
274
+ export type WSModelServingConfigMap = {
275
+ name?: string
276
+ namespace?: string
277
+ }
278
+
279
+ export type ListWSModelServingConfigMapsResponse = {
280
+ items?: WSModelServingConfigMap[]
281
+ page?: HydraCommonCommon.Pagination
282
+ }
283
+
266
284
  export type GetWSModelServingRequest = {
267
285
  workspace?: number
268
286
  id?: string
@@ -366,6 +384,9 @@ export class WSModelServingManagement {
366
384
  static ListWSModelServing(req: ListWSModelServingRequest, initReq?: fm.InitReq): Promise<ListWSModelServingResponse> {
367
385
  return fm.fetchReq<ListWSModelServingRequest, ListWSModelServingResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/model-serving?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
368
386
  }
387
+ static ListWSModelServingConfigMaps(req: ListWSModelServingConfigMapsRequest, initReq?: fm.InitReq): Promise<ListWSModelServingConfigMapsResponse> {
388
+ return fm.fetchReq<ListWSModelServingConfigMapsRequest, ListWSModelServingConfigMapsResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/configmaps?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
389
+ }
369
390
  static GetWSModelServing(req: GetWSModelServingRequest, initReq?: fm.InitReq): Promise<WSModelServing> {
370
391
  return fm.fetchReq<GetWSModelServingRequest, WSModelServing>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/model-serving/${req["id"]}?${fm.renderURLSearchParams(req, ["workspace", "id"])}`, {...initReq, method: "GET"})
371
392
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.15.0-dev-3",
3
+ "version": "v0.15.0-dev-5",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"