@daocloud-proto/hydra 0.16.0-rc1-dev-rc1 → 0.16.0-rc1-dev-5

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.
@@ -64,6 +64,45 @@ export type GetAnalysisURIResponse = {
64
64
  uri?: string
65
65
  }
66
66
 
67
+ export type NodeGPUInfo = {
68
+ clusterName?: string
69
+ nodeName?: string
70
+ gpuProduct?: string
71
+ gpuMemory?: string
72
+ gpuCount?: number
73
+ }
74
+
75
+ export type ListNodeGPUInfoRequest = {
76
+ cluster?: string
77
+ }
78
+
79
+ export type ListNodeGPUInfoResponse = {
80
+ items?: NodeGPUInfo[]
81
+ }
82
+
83
+ export type ModelGPUInfo = {
84
+ accessModelName?: string
85
+ lwsName?: string
86
+ namespace?: string
87
+ cluster?: string
88
+ nodes?: ModelNodeGPU[]
89
+ }
90
+
91
+ export type ModelNodeGPU = {
92
+ nodeName?: string
93
+ gpuProduct?: string
94
+ gpuMemory?: string
95
+ gpuCount?: number
96
+ }
97
+
98
+ export type ListModelGPUInfoRequest = {
99
+ accessModelName?: string
100
+ }
101
+
102
+ export type ListModelGPUInfoResponse = {
103
+ items?: ModelGPUInfo[]
104
+ }
105
+
67
106
  export class CoreService {
68
107
  static AdminListCluster(req: ListClusterRequest, initReq?: fm.InitReq): Promise<ListClusterResponse> {
69
108
  return fm.fetchReq<ListClusterRequest, ListClusterResponse>(`/apis/admin.hydra.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -80,4 +119,10 @@ export class CoreService {
80
119
  static GetAnalysisURI(req: GetAnalysisURIRequest, initReq?: fm.InitReq): Promise<GetAnalysisURIResponse> {
81
120
  return fm.fetchReq<GetAnalysisURIRequest, GetAnalysisURIResponse>(`/apis/admin.hydra.io/v1alpha1/analysis-uri?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
82
121
  }
122
+ static ListNodeGPUInfo(req: ListNodeGPUInfoRequest, initReq?: fm.InitReq): Promise<ListNodeGPUInfoResponse> {
123
+ return fm.fetchReq<ListNodeGPUInfoRequest, ListNodeGPUInfoResponse>(`/apis/admin.hydra.io/v1alpha1/node-gpu-info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
124
+ }
125
+ static ListModelGPUInfo(req: ListModelGPUInfoRequest, initReq?: fm.InitReq): Promise<ListModelGPUInfoResponse> {
126
+ return fm.fetchReq<ListModelGPUInfoRequest, ListModelGPUInfoResponse>(`/apis/admin.hydra.io/v1alpha1/model-gpu-info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
127
+ }
83
128
  }
@@ -24,6 +24,12 @@ export enum ModelSupportFeature {
24
24
  TOOLS = "TOOLS",
25
25
  }
26
26
 
27
+ export enum SkuDiscountScheduleType {
28
+ SKU_DISCOUNT_SCHEDULE_TYPE_UNSPECIFIED = "SKU_DISCOUNT_SCHEDULE_TYPE_UNSPECIFIED",
29
+ SKU_DISCOUNT_SCHEDULE_TYPE_ABSOLUTE = "SKU_DISCOUNT_SCHEDULE_TYPE_ABSOLUTE",
30
+ SKU_DISCOUNT_SCHEDULE_TYPE_DAILY = "SKU_DISCOUNT_SCHEDULE_TYPE_DAILY",
31
+ }
32
+
27
33
  export enum PublicModelConfigRateLimitLimitedBy {
28
34
  LIMITED_BY_UNSPECIFIED = "LIMITED_BY_UNSPECIFIED",
29
35
  USER_ID = "USER_ID",
@@ -37,11 +43,31 @@ export enum DeployTemplateInferenceRuntime {
37
43
  IMAGE_GEN = "IMAGE_GEN",
38
44
  }
39
45
 
46
+ export type ModelPriceDiscountInfo = {
47
+ discountRate?: number
48
+ discountName?: string
49
+ schedule?: ModelPriceDiscountSchedule
50
+ }
51
+
52
+ export type ModelPriceDiscountSchedule = {
53
+ discountRuleId?: string
54
+ type?: SkuDiscountScheduleType
55
+ effectiveStartAt?: string
56
+ effectiveEndAt?: string
57
+ dailyStartMinute?: number
58
+ dailyEndMinute?: number
59
+ timezone?: string
60
+ }
61
+
40
62
  export type ModelPrice = {
41
63
  inputPerKTokens?: string
42
64
  outputPerKTokens?: string
43
65
  perImage?: string
44
66
  cachedPerKTokens?: string
67
+ inputDiscountInfo?: ModelPriceDiscountInfo
68
+ outputDiscountInfo?: ModelPriceDiscountInfo
69
+ perImageDiscountInfo?: ModelPriceDiscountInfo
70
+ cachedDiscountInfo?: ModelPriceDiscountInfo
45
71
  }
46
72
 
47
73
  export type Model = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.16.0-rc1-dev-rc1",
3
+ "version": "v0.16.0-rc1-dev-5",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"