@daocloud-proto/hydra 0.0.0-dev-eab07a7c → 0.0.0-dev-2fe43a7a

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> {
@@ -52,6 +52,7 @@ export type FineTuneJob = {
52
52
  completionTimestamp?: GoogleProtobufTimestamp.Timestamp
53
53
  metrics?: MetricPoint[]
54
54
  trainingParams?: GoogleProtobufStruct.Struct
55
+ metadata?: GoogleProtobufStruct.Struct
55
56
  }
56
57
 
57
58
  export type CreateWSFineTuneJobRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.0.0-dev-eab07a7c",
3
+ "version": "v0.0.0-dev-2fe43a7a",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"