@daocloud-proto/infery 0.0.0-dev-6e9d6274 → 0.0.0-dev-b70ac6c2
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.
|
@@ -88,6 +88,17 @@ export type ExportInferenceTemplateRequest = {
|
|
|
88
88
|
maturity?: Maturity
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
export type ParseInferenceTemplateRequest = {
|
|
92
|
+
workspace?: number
|
|
93
|
+
manifest?: InferenceTemplateManifest
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type ParseInferenceTemplateResponse = {
|
|
97
|
+
name?: string
|
|
98
|
+
maturity?: Maturity
|
|
99
|
+
guide?: InferyCommonCommon.I18nName
|
|
100
|
+
}
|
|
101
|
+
|
|
91
102
|
export type CreateInferenceTemplateRequest = {
|
|
92
103
|
workspace?: number
|
|
93
104
|
name?: string
|
|
@@ -145,6 +156,9 @@ export class InferenceTemplateManagement {
|
|
|
145
156
|
static ExportInferenceTemplate(req: ExportInferenceTemplateRequest, initReq?: fm.InitReq): Promise<InferenceTemplateManifest> {
|
|
146
157
|
return fm.fetchReq<ExportInferenceTemplateRequest, InferenceTemplateManifest>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/inference-templates:export`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
147
158
|
}
|
|
159
|
+
static ParseInferenceTemplate(req: ParseInferenceTemplateRequest, initReq?: fm.InitReq): Promise<ParseInferenceTemplateResponse> {
|
|
160
|
+
return fm.fetchReq<ParseInferenceTemplateRequest, ParseInferenceTemplateResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/inference-templates:parse`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
161
|
+
}
|
|
148
162
|
static CreateInferenceTemplate(req: CreateInferenceTemplateRequest, initReq?: fm.InitReq): Promise<InferenceTemplate> {
|
|
149
163
|
return fm.fetchReq<CreateInferenceTemplateRequest, InferenceTemplate>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/inference-templates`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
150
164
|
}
|