@daocloud-proto/hydra 0.18.0-dev-4 → 0.18.0-dev-7
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.
|
@@ -24,6 +24,14 @@ export enum MAASWorkspaceVisibilityScope {
|
|
|
24
24
|
MAAS_WORKSPACE_VISIBILITY_SCOPE_SPECIFIED = "MAAS_WORKSPACE_VISIBILITY_SCOPE_SPECIFIED",
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
export enum MAASModelHealthStatus {
|
|
28
|
+
MAAS_MODEL_HEALTH_STATUS_UNSPECIFIED = "MAAS_MODEL_HEALTH_STATUS_UNSPECIFIED",
|
|
29
|
+
MAAS_MODEL_HEALTH_STATUS_UNKNOWN = "MAAS_MODEL_HEALTH_STATUS_UNKNOWN",
|
|
30
|
+
MAAS_MODEL_HEALTH_STATUS_HEALTHY = "MAAS_MODEL_HEALTH_STATUS_HEALTHY",
|
|
31
|
+
MAAS_MODEL_HEALTH_STATUS_DEGRADED = "MAAS_MODEL_HEALTH_STATUS_DEGRADED",
|
|
32
|
+
MAAS_MODEL_HEALTH_STATUS_FAILED = "MAAS_MODEL_HEALTH_STATUS_FAILED",
|
|
33
|
+
}
|
|
34
|
+
|
|
27
35
|
export enum LoadBalanceStrategy {
|
|
28
36
|
LOAD_BALANCE_STRATEGY_UNSPECIFIED = "LOAD_BALANCE_STRATEGY_UNSPECIFIED",
|
|
29
37
|
LOAD_BALANCE_STRATEGY_ROUND_ROBIN = "LOAD_BALANCE_STRATEGY_ROUND_ROBIN",
|
|
@@ -145,6 +153,7 @@ export type MAASModel = {
|
|
|
145
153
|
tokenWeight?: string
|
|
146
154
|
workspaceVisibility?: MAASWorkspaceVisibility
|
|
147
155
|
capabilityRoutes?: MAASCapabilityRoute[]
|
|
156
|
+
healthStatus?: MAASModelHealthStatus
|
|
148
157
|
}
|
|
149
158
|
|
|
150
159
|
export type LoadBalanceConfig = {
|
|
@@ -187,6 +196,8 @@ export type MAASCapabilityUpstream = {
|
|
|
187
196
|
apiKey?: string
|
|
188
197
|
status?: MAASBackendStatus
|
|
189
198
|
capabilityPaths?: {[key: string]: string}
|
|
199
|
+
healthCheck?: HealthCheck
|
|
200
|
+
healthMessage?: string
|
|
190
201
|
}
|
|
191
202
|
|
|
192
203
|
export type UpstreamModel = {
|
|
@@ -194,6 +205,16 @@ export type UpstreamModel = {
|
|
|
194
205
|
apiKey?: string
|
|
195
206
|
endpoint?: string
|
|
196
207
|
status?: UpstreamModelStatus
|
|
208
|
+
healthCheck?: HealthCheck
|
|
209
|
+
healthMessage?: string
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export type HealthCheck = {
|
|
213
|
+
path?: string
|
|
214
|
+
interval?: number
|
|
215
|
+
timeout?: number
|
|
216
|
+
healthyThreshold?: number
|
|
217
|
+
unhealthyThreshold?: number
|
|
197
218
|
}
|
|
198
219
|
|
|
199
220
|
export type ListMAASModelRequest = {
|
|
@@ -42,6 +42,20 @@ export type ListGPUTypesResponse = {
|
|
|
42
42
|
export type GPUType = {
|
|
43
43
|
gpuName?: string
|
|
44
44
|
gpuType?: string
|
|
45
|
+
displayName?: string
|
|
46
|
+
provider?: string
|
|
47
|
+
resources?: GPUResourceSchema[]
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type GPUResourceSchema = {
|
|
51
|
+
key?: string
|
|
52
|
+
displayName?: string
|
|
53
|
+
displayNameZh?: string
|
|
54
|
+
semanticType?: string
|
|
55
|
+
minimum?: string
|
|
56
|
+
maximum?: string
|
|
57
|
+
description?: string
|
|
58
|
+
descriptionZh?: string
|
|
45
59
|
}
|
|
46
60
|
|
|
47
61
|
export class Management {
|