@daocloud-proto/hydra 0.16.0-dev-18 → 0.16.0-dev-20
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.
|
@@ -65,6 +65,7 @@ export type Model = {
|
|
|
65
65
|
parameterSize?: number
|
|
66
66
|
contextLength?: HydraManagement_apiModelV1alpha1Model.ContextLengthRange
|
|
67
67
|
operationTags?: HydraManagement_apiModelV1alpha1Model.ModelOperationTag[]
|
|
68
|
+
publishTimestamp?: GoogleProtobufTimestamp.Timestamp
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
export type UpdateModelRequest = {
|
|
@@ -166,6 +167,10 @@ export type ListModelServingsByModelResponse = {
|
|
|
166
167
|
items?: WorkspaceModelServingGroup[]
|
|
167
168
|
}
|
|
168
169
|
|
|
170
|
+
export type SortModelsRequest = {
|
|
171
|
+
modelIds?: string[]
|
|
172
|
+
}
|
|
173
|
+
|
|
169
174
|
export class AdminModelManagement {
|
|
170
175
|
static CreateModel(req: CreateModelRequest, initReq?: fm.InitReq): Promise<Model> {
|
|
171
176
|
return fm.fetchReq<CreateModelRequest, Model>(`/apis/admin.hydra.io/v1alpha1/models`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -203,6 +208,9 @@ export class AdminModelManagement {
|
|
|
203
208
|
static ListModelServingsByModel(req: ListModelServingsByModelRequest, initReq?: fm.InitReq): Promise<ListModelServingsByModelResponse> {
|
|
204
209
|
return fm.fetchReq<ListModelServingsByModelRequest, ListModelServingsByModelResponse>(`/apis/admin.hydra.io/v1alpha1/models/${req["modelId"]}/servings?${fm.renderURLSearchParams(req, ["modelId"])}`, {...initReq, method: "GET"})
|
|
205
210
|
}
|
|
211
|
+
static SortModels(req: SortModelsRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
212
|
+
return fm.fetchReq<SortModelsRequest, GoogleProtobufEmpty.Empty>(`/apis/admin.hydra.io/v1alpha1/models:sort`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
213
|
+
}
|
|
206
214
|
}
|
|
207
215
|
export class AdminModelTemplateManagement {
|
|
208
216
|
static CreateModelTemplate(req: HydraManagement_apiModelV1alpha1Model.CreateModelTemplateRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiModelV1alpha1Model.ModelTemplate> {
|
|
@@ -126,6 +126,7 @@ export type Model = {
|
|
|
126
126
|
parameterSize?: number
|
|
127
127
|
contextLength?: ContextLengthRange
|
|
128
128
|
operationTags?: ModelOperationTag[]
|
|
129
|
+
publishTimestamp?: GoogleProtobufTimestamp.Timestamp
|
|
129
130
|
}
|
|
130
131
|
|
|
131
132
|
export type ListModelRequest = {
|
|
@@ -231,6 +232,7 @@ export type WSModel = {
|
|
|
231
232
|
parameterSize?: number
|
|
232
233
|
contextLength?: ContextLengthRange
|
|
233
234
|
operationTags?: ModelOperationTag[]
|
|
235
|
+
publishTimestamp?: GoogleProtobufTimestamp.Timestamp
|
|
234
236
|
}
|
|
235
237
|
|
|
236
238
|
export type CreatePrivateModelRequest = {
|