@daocloud-proto/hydra 0.1.0-dev-4 → 0.1.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.
@@ -8,7 +8,6 @@ import * as HydraCommonCommon from "../../../common/common.pb"
8
8
  import * as fm from "../../../fetch.pb"
9
9
  import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
10
10
  export type CreateAPIKeyRequest = {
11
- allowModels?: string[]
12
11
  name?: string
13
12
  }
14
13
 
@@ -28,7 +28,6 @@ export type Model = {
28
28
  modelName?: string
29
29
  providerId?: string
30
30
  providerName?: HydraCommonCommon.I18nName
31
- gpuSupport?: string[]
32
31
  modelDescription?: HydraCommonCommon.I18nName
33
32
  finetune?: boolean
34
33
  modelSupportFeature?: ModelSupportFeature[]
@@ -21,7 +21,7 @@ export enum SKUPriceCurrency {
21
21
 
22
22
  export enum ListSKURequestResourceType {
23
23
  RESOURCE_TYPE_UNSPECIFIED = "RESOURCE_TYPE_UNSPECIFIED",
24
- MODEL_SERVING = "MODEL_SERVING",
24
+ MODEL = "MODEL",
25
25
  }
26
26
 
27
27
  export type Region = {
@@ -40,7 +40,7 @@ export type ListRegionResponse = {
40
40
  }
41
41
 
42
42
  export type GetRegionRequest = {
43
- name?: string
43
+ region?: string
44
44
  }
45
45
 
46
46
  export type SKU = {
@@ -70,7 +70,7 @@ export class SKUManagement {
70
70
  return fm.fetchReq<ListRegionRequest, ListRegionResponse>(`/apis/hydra.io/v1alpha1/regions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
71
71
  }
72
72
  static GetRegion(req: GetRegionRequest, initReq?: fm.InitReq): Promise<Region> {
73
- return fm.fetchReq<GetRegionRequest, Region>(`/apis/hydra.io/v1alpha1/regions/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
73
+ return fm.fetchReq<GetRegionRequest, Region>(`/apis/hydra.io/v1alpha1/regions/${req["region"]}?${fm.renderURLSearchParams(req, ["region"])}`, {...initReq, method: "GET"})
74
74
  }
75
75
  static ListSKUs(req: ListSKURequest, initReq?: fm.InitReq): Promise<ListSKUResponse> {
76
76
  return fm.fetchReq<ListSKURequest, ListSKUResponse>(`/apis/hydra.io/v1alpha1/skus?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.1.0-dev-4",
3
+ "version": "v0.1.0-dev-7",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"