@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.
- package/admin-api/core/v1alpha1/core.pb.ts +1 -0
- package/management-api/finetune/v1alpha1/common.pb.ts +5 -0
- package/management-api/finetune/v1alpha1/evaljob.pb.ts +2 -0
- package/management-api/finetune/v1alpha1/finetunejob.pb.ts +2 -0
- package/management-api/model_serving/v1alpha1/model_serving.pb.ts +21 -0
- package/package.json +1 -1
|
@@ -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
|
}
|