@daocloud-proto/baize 0.111.2 → 0.112.0
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/management-api/analysis/v1alpha2/analysis.pb.ts +28 -0
- package/management-api/cluster/v1alpha2/cluster.pb.ts +26 -0
- package/management-api/dataset/v1alpha1/dataset.pb.ts +3 -0
- package/management-api/dataset/v1alpha2/dataset.pb.ts +28 -0
- package/management-api/job/v1alpha2/job.pb.ts +28 -0
- package/management-api/labeling/v1alpha2/labeling.pb.ts +28 -0
- package/management-api/metrics/v1alpha1/metrics.pb.ts +12 -0
- package/management-api/metrics/v1alpha2/metrics.pb.ts +26 -0
- package/management-api/model/v1alpha2/model.pb.ts +26 -0
- package/management-api/notebook/v1alpha2/notebook.pb.ts +28 -0
- package/management-api/pod/v1alpha2/pod.pb.ts +29 -0
- package/management-api/queue/v1alpha1/queue.pb.ts +27 -0
- package/management-api/queue/v1alpha2/queue.pb.ts +26 -0
- package/management-api/serving/v1alpha1/serving.pb.ts +6 -0
- package/management-api/serving/v1alpha2/serving.pb.ts +28 -0
- package/management-api/workspace/v1alpha2/workspace.pb.ts +28 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListAnalysisRequest = {
|
|
10
|
+
workspace?: number
|
|
11
|
+
cluster?: string
|
|
12
|
+
namespace?: string
|
|
13
|
+
page?: BaizeCommonCommon.Pagination
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Analysis = {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ListAnalysisResponse = {
|
|
20
|
+
items?: Analysis[]
|
|
21
|
+
page?: BaizeCommonCommon.Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class AnalysisService {
|
|
25
|
+
static ListAnalysis(req: ListAnalysisRequest, initReq?: fm.InitReq): Promise<ListAnalysisResponse> {
|
|
26
|
+
return fm.fetchReq<ListAnalysisRequest, ListAnalysisResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/analysis?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListClustersRequest = {
|
|
10
|
+
workspace?: number
|
|
11
|
+
page?: BaizeCommonCommon.Pagination
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type Cluster = {
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type ListClustersResponse = {
|
|
18
|
+
items?: Cluster[]
|
|
19
|
+
page?: BaizeCommonCommon.Pagination
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class ClusterService {
|
|
23
|
+
static ListClusters(req: ListClustersRequest, initReq?: fm.InitReq): Promise<ListClustersResponse> {
|
|
24
|
+
return fm.fetchReq<ListClustersRequest, ListClustersResponse>(`/apis/baize.io/v1alpha2/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -238,6 +238,9 @@ export type SingleDatasetRequest = {
|
|
|
238
238
|
share?: boolean
|
|
239
239
|
sharedStoWorkspaces?: number[]
|
|
240
240
|
uri?: string
|
|
241
|
+
description?: string
|
|
242
|
+
labels?: {[key: string]: string}
|
|
243
|
+
annotations?: {[key: string]: string}
|
|
241
244
|
}
|
|
242
245
|
|
|
243
246
|
export type UpdateDatasetRequest = BaseUpdateDatasetRequest
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListDatasetsRequest = {
|
|
10
|
+
workspace?: number
|
|
11
|
+
cluster?: string
|
|
12
|
+
namespace?: string
|
|
13
|
+
page?: BaizeCommonCommon.Pagination
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Dataset = {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ListDatasetsResponse = {
|
|
20
|
+
items?: Dataset[]
|
|
21
|
+
page?: BaizeCommonCommon.Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class DatasetService {
|
|
25
|
+
static ListDatasets(req: ListDatasetsRequest, initReq?: fm.InitReq): Promise<ListDatasetsResponse> {
|
|
26
|
+
return fm.fetchReq<ListDatasetsRequest, ListDatasetsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/datasets?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListJobsRequest = {
|
|
10
|
+
workspace?: number
|
|
11
|
+
cluster?: string
|
|
12
|
+
namespace?: string
|
|
13
|
+
page?: BaizeCommonCommon.Pagination
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Job = {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ListJobsResponse = {
|
|
20
|
+
items?: Job[]
|
|
21
|
+
page?: BaizeCommonCommon.Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class JobService {
|
|
25
|
+
static ListJobs(req: ListJobsRequest, initReq?: fm.InitReq): Promise<ListJobsResponse> {
|
|
26
|
+
return fm.fetchReq<ListJobsRequest, ListJobsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/jobs?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListLabelingsRequest = {
|
|
10
|
+
workspace?: number
|
|
11
|
+
cluster?: string
|
|
12
|
+
namespace?: string
|
|
13
|
+
page?: BaizeCommonCommon.Pagination
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Labeling = {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ListLabelingsResponse = {
|
|
20
|
+
items?: Labeling[]
|
|
21
|
+
page?: BaizeCommonCommon.Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class LabelingService {
|
|
25
|
+
static ListLabeling(req: ListLabelingsRequest, initReq?: fm.InitReq): Promise<ListLabelingsResponse> {
|
|
26
|
+
return fm.fetchReq<ListLabelingsRequest, ListLabelingsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/labeling-instances?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -184,6 +184,15 @@ export type NvidiaGPUGrafanaDashboardRequest = {
|
|
|
184
184
|
to?: string
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
+
export type GPUGrafanaDashboardRequest = {
|
|
188
|
+
vendor?: string
|
|
189
|
+
cluster?: string
|
|
190
|
+
node?: string
|
|
191
|
+
gpuIndex?: string
|
|
192
|
+
from?: string
|
|
193
|
+
to?: string
|
|
194
|
+
}
|
|
195
|
+
|
|
187
196
|
export class MetricsService {
|
|
188
197
|
static QueryMultipleVectors(req: QueryMultipleVectorRequest, initReq?: fm.InitReq): Promise<MultipleVectorQueryResponse> {
|
|
189
198
|
return fm.fetchReq<QueryMultipleVectorRequest, MultipleVectorQueryResponse>(`/apis/baize.io/v1alpha1/metrics/multiple-queries?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -209,4 +218,7 @@ export class MetricsService {
|
|
|
209
218
|
static GetNvidiaGPUGrafanaDashboard(req: NvidiaGPUGrafanaDashboardRequest, initReq?: fm.InitReq): Promise<GrafanaDashboard> {
|
|
210
219
|
return fm.fetchReq<NvidiaGPUGrafanaDashboardRequest, GrafanaDashboard>(`/apis/baize.io/v1alpha1/grafana-dashboards/nvidia-gpu-overview?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
211
220
|
}
|
|
221
|
+
static GetGPUGrafanaDashboard(req: GPUGrafanaDashboardRequest, initReq?: fm.InitReq): Promise<GrafanaDashboard> {
|
|
222
|
+
return fm.fetchReq<GPUGrafanaDashboardRequest, GrafanaDashboard>(`/apis/baize.io/v1alpha1/grafana-dashboards/gpu-overview?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
223
|
+
}
|
|
212
224
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as fm from "../../../fetch.pb"
|
|
8
|
+
export type GPUGrafanaDashboardRequest = {
|
|
9
|
+
cluster?: string
|
|
10
|
+
node?: string
|
|
11
|
+
gpuIndex?: string
|
|
12
|
+
vendor?: string
|
|
13
|
+
from?: string
|
|
14
|
+
to?: string
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type GrafanaDashboard = {
|
|
18
|
+
urlEn?: string
|
|
19
|
+
urlZh?: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class MetricsService {
|
|
23
|
+
static GetGPUGrafanaDashboard(req: GPUGrafanaDashboardRequest, initReq?: fm.InitReq): Promise<GrafanaDashboard> {
|
|
24
|
+
return fm.fetchReq<GPUGrafanaDashboardRequest, GrafanaDashboard>(`/apis/baize.io/v1alpha2/grafana-dashboards/gpu-overview?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListModelsRequest = {
|
|
10
|
+
workspace?: number
|
|
11
|
+
page?: BaizeCommonCommon.Pagination
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type Model = {
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type ListModelsResponse = {
|
|
18
|
+
items?: Model[]
|
|
19
|
+
page?: BaizeCommonCommon.Pagination
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class ModelService {
|
|
23
|
+
static ListModels(req: ListModelsRequest, initReq?: fm.InitReq): Promise<ListModelsResponse> {
|
|
24
|
+
return fm.fetchReq<ListModelsRequest, ListModelsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/models?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListNotebooksRequest = {
|
|
10
|
+
workspace?: number
|
|
11
|
+
cluster?: string
|
|
12
|
+
namespace?: string
|
|
13
|
+
page?: BaizeCommonCommon.Pagination
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Notebook = {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ListNotebooksResponse = {
|
|
20
|
+
items?: Notebook[]
|
|
21
|
+
page?: BaizeCommonCommon.Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class NotebookService {
|
|
25
|
+
static ListNotebooks(req: ListNotebooksRequest, initReq?: fm.InitReq): Promise<ListNotebooksResponse> {
|
|
26
|
+
return fm.fetchReq<ListNotebooksRequest, ListNotebooksResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/notebooks?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type Pod = {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type ListPodsRequest = {
|
|
13
|
+
workspace?: number
|
|
14
|
+
cluster?: string
|
|
15
|
+
namespace?: string
|
|
16
|
+
name?: string
|
|
17
|
+
page?: BaizeCommonCommon.Pagination
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type ListPodsResponse = {
|
|
21
|
+
items?: Pod[]
|
|
22
|
+
page?: BaizeCommonCommon.Pagination
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class PodService {
|
|
26
|
+
static ListPods(req: ListPodsRequest, initReq?: fm.InitReq): Promise<ListPodsResponse> {
|
|
27
|
+
return fm.fetchReq<ListPodsRequest, ListPodsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/resources/${req["name"]}/instances?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -62,6 +62,12 @@ export type QueueStatus = {
|
|
|
62
62
|
phase?: QueuePhase
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
export type FlavorQuota = {
|
|
66
|
+
name?: string
|
|
67
|
+
resources?: QueueResource[]
|
|
68
|
+
resourcesAvailable?: QueueResource[]
|
|
69
|
+
}
|
|
70
|
+
|
|
65
71
|
export type Queue = {
|
|
66
72
|
type?: QueueType
|
|
67
73
|
cluster?: string
|
|
@@ -75,6 +81,8 @@ export type Queue = {
|
|
|
75
81
|
status?: QueueStatus
|
|
76
82
|
strategy?: QueueStrategy
|
|
77
83
|
workspaceAlias?: string
|
|
84
|
+
preemptionWithinClusterQueue?: QueuePreemptionWithinClusterQueuePolicy
|
|
85
|
+
flavors?: FlavorQuota[]
|
|
78
86
|
}
|
|
79
87
|
|
|
80
88
|
export type ListQueueRequest = {
|
|
@@ -104,6 +112,7 @@ export type CreateQueueRequest = {
|
|
|
104
112
|
labels?: {[key: string]: string}
|
|
105
113
|
annotations?: {[key: string]: string}
|
|
106
114
|
preemptionWithinClusterQueue?: QueuePreemptionWithinClusterQueuePolicy
|
|
115
|
+
flavors?: FlavorQuota[]
|
|
107
116
|
}
|
|
108
117
|
|
|
109
118
|
export type UpdateQueueRequest = {
|
|
@@ -117,6 +126,7 @@ export type UpdateQueueRequest = {
|
|
|
117
126
|
labels?: {[key: string]: string}
|
|
118
127
|
annotations?: {[key: string]: string}
|
|
119
128
|
preemptionWithinClusterQueue?: QueuePreemptionWithinClusterQueuePolicy
|
|
129
|
+
flavors?: FlavorQuota[]
|
|
120
130
|
}
|
|
121
131
|
|
|
122
132
|
export type GetQueueRequest = {
|
|
@@ -189,6 +199,20 @@ export type ListQueueWorkloadResponse = {
|
|
|
189
199
|
page?: BaizeCommonCommon.Pagination
|
|
190
200
|
}
|
|
191
201
|
|
|
202
|
+
export type ResourceFlavor = {
|
|
203
|
+
name?: string
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export type ListKueueResourceFlavorsRequest = {
|
|
207
|
+
cluster?: string
|
|
208
|
+
page?: BaizeCommonCommon.Pagination
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export type ListKueueResourceFlavorsResponse = {
|
|
212
|
+
items?: ResourceFlavor[]
|
|
213
|
+
page?: BaizeCommonCommon.Pagination
|
|
214
|
+
}
|
|
215
|
+
|
|
192
216
|
export class QueueManagement {
|
|
193
217
|
static ListQueues(req: ListQueueRequest, initReq?: fm.InitReq): Promise<ListQueueResponse> {
|
|
194
218
|
return fm.fetchReq<ListQueueRequest, ListQueueResponse>(`/apis/baize.io/v1alpha1/queues?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -217,4 +241,7 @@ export class QueueManagement {
|
|
|
217
241
|
static ListQueueWorkloads(req: ListQueueWorkloadRequest, initReq?: fm.InitReq): Promise<ListQueueWorkloadResponse> {
|
|
218
242
|
return fm.fetchReq<ListQueueWorkloadRequest, ListQueueWorkloadResponse>(`/apis/baize.io/v1alpha1/clusters/${req["cluster"]}/queues/${req["queueName"]}/workloads?${fm.renderURLSearchParams(req, ["cluster", "queueName"])}`, {...initReq, method: "GET"})
|
|
219
243
|
}
|
|
244
|
+
static ListKueueResourceFlavors(req: ListKueueResourceFlavorsRequest, initReq?: fm.InitReq): Promise<ListKueueResourceFlavorsResponse> {
|
|
245
|
+
return fm.fetchReq<ListKueueResourceFlavorsRequest, ListKueueResourceFlavorsResponse>(`/apis/baize.io/v1alpha1/clusters/${req["cluster"]}/kueue/resourceflavors?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
246
|
+
}
|
|
220
247
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type Queue = {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type ListQueuesRequest = {
|
|
13
|
+
workspace?: number
|
|
14
|
+
page?: BaizeCommonCommon.Pagination
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type ListQueuesResponse = {
|
|
18
|
+
items?: Queue[]
|
|
19
|
+
page?: BaizeCommonCommon.Pagination
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class QueueService {
|
|
23
|
+
static ListQueues(req: ListQueuesRequest, initReq?: fm.InitReq): Promise<ListQueuesResponse> {
|
|
24
|
+
return fm.fetchReq<ListQueuesRequest, ListQueuesResponse>(`/apis/baize.io/v1alpha2/queues?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -83,6 +83,11 @@ export type ServingConfigVLLMLoraModel = {
|
|
|
83
83
|
relativePath?: string
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
export type ServingConfigVLLMCustomOptionalArg = {
|
|
87
|
+
argName?: string
|
|
88
|
+
argValues?: string[]
|
|
89
|
+
}
|
|
90
|
+
|
|
86
91
|
export type ServingConfigVLLM = {
|
|
87
92
|
trustRemoteCode?: boolean
|
|
88
93
|
tensorParallelSize?: number
|
|
@@ -91,6 +96,7 @@ export type ServingConfigVLLM = {
|
|
|
91
96
|
maxLorasRank?: number
|
|
92
97
|
maxLoras?: number
|
|
93
98
|
maxCpuLoras?: number
|
|
99
|
+
customOptionalArgs?: ServingConfigVLLMCustomOptionalArg[]
|
|
94
100
|
}
|
|
95
101
|
|
|
96
102
|
export type ServingConfigTritonModelConfig = {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type InferenceServing = {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type ListInferenceServingsRequest = {
|
|
13
|
+
cluster?: string
|
|
14
|
+
namespace?: string
|
|
15
|
+
workspace?: number
|
|
16
|
+
page?: BaizeCommonCommon.Pagination
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ListInferenceServingsResponse = {
|
|
20
|
+
items?: InferenceServing[]
|
|
21
|
+
page?: BaizeCommonCommon.Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class InferenceServingService {
|
|
25
|
+
static ListInferenceServings(req: ListInferenceServingsRequest, initReq?: fm.InitReq): Promise<ListInferenceServingsResponse> {
|
|
26
|
+
return fm.fetchReq<ListInferenceServingsRequest, ListInferenceServingsResponse>(`/apis/baize.io/v1alpha2/workspaces/${req["workspace"]}/inference-serving?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListWorkspacesRequest = {
|
|
10
|
+
page?: BaizeCommonCommon.Pagination
|
|
11
|
+
cluster?: string
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type Workspace = {
|
|
15
|
+
workspaceId?: number
|
|
16
|
+
alias?: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type ListWorkspacesResponse = {
|
|
20
|
+
items?: Workspace[]
|
|
21
|
+
page?: BaizeCommonCommon.Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export class WorkspaceService {
|
|
25
|
+
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
26
|
+
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/baize.io/v1alpha2/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
27
|
+
}
|
|
28
|
+
}
|