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

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,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 = {
@@ -211,6 +211,7 @@ export type ModelServing = {
211
211
  modelAvatar?: string
212
212
  regionName?: HydraCommonCommon.I18nName
213
213
  modelSupportFeature?: HydraManagement_apiModelV1alpha1Model.ModelSupportFeature[]
214
+ enableMetrics?: boolean
214
215
  }
215
216
 
216
217
 
@@ -237,6 +238,7 @@ export type ModelServing = {
237
238
  preflight?: PreflightConfig
238
239
  configMapMounts?: ConfigMapMountConfig[]
239
240
  healthCheck?: HealthCheckConfig
241
+ enableMetrics?: boolean
240
242
  }
241
243
 
242
244
  export type WSModelServing = BaseWSModelServing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.16.0-rc1",
3
+ "version": "v0.16.0-rc1-dev-3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"