@daocloud-proto/hydra 0.5.0-dev-35 → 0.9.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.
@@ -16,8 +16,22 @@ export type GetWebSearchAgentConfigResponse = {
16
16
  config?: WebSearchAgentConfig
17
17
  }
18
18
 
19
+ export type ListInferenceRuntimesRequest = {
20
+ }
21
+
22
+ export type ListInferenceRuntimesResponse = {
23
+ items?: InferenceRuntime[]
24
+ }
25
+
26
+ export type InferenceRuntime = {
27
+ name?: string
28
+ }
29
+
19
30
  export class Management {
20
31
  static GetWebSearchAgentConfig(req: GetWebSearchAgentConfigRequest, initReq?: fm.InitReq): Promise<GetWebSearchAgentConfigResponse> {
21
32
  return fm.fetchReq<GetWebSearchAgentConfigRequest, GetWebSearchAgentConfigResponse>(`/apis/hydra.io/v1alpha1/web-search-agent/config?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
22
33
  }
34
+ static ListInferenceRuntimes(req: ListInferenceRuntimesRequest, initReq?: fm.InitReq): Promise<ListInferenceRuntimesResponse> {
35
+ return fm.fetchReq<ListInferenceRuntimesRequest, ListInferenceRuntimesResponse>(`/apis/hydra.io/v1alpha1/inference-runtimes?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
36
+ }
23
37
  }
@@ -112,6 +112,7 @@ export type DeployTemplate = {
112
112
  versionRequired?: string
113
113
  customDeployArgs?: string[]
114
114
  env?: EnvVar[]
115
+ inferenceRuntime?: string
115
116
  }
116
117
 
117
118
  export type EnvVar = {
@@ -14,6 +14,7 @@ export type UserInfo = {
14
14
  balance?: string
15
15
  amount?: string
16
16
  idVerified?: boolean
17
+ isMain?: boolean
17
18
  }
18
19
 
19
20
  export class UserService {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.5.0-dev-35",
3
+ "version": "v0.9.0",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"