@daocloud-proto/hydra 0.5.0-dev-9 → 0.5.0-dev-14
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.
|
@@ -17,6 +17,13 @@ type OneOf<T> =
|
|
|
17
17
|
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
18
18
|
: never)
|
|
19
19
|
: never);
|
|
20
|
+
|
|
21
|
+
export enum ListModelRequestModelListSelector {
|
|
22
|
+
ALL = "ALL",
|
|
23
|
+
HAS_DEPLOY_TEMPLATE = "HAS_DEPLOY_TEMPLATE",
|
|
24
|
+
NO_DEPLOY_TEMPLATE = "NO_DEPLOY_TEMPLATE",
|
|
25
|
+
}
|
|
26
|
+
|
|
20
27
|
export type CreateModelRequest = {
|
|
21
28
|
modelId?: string
|
|
22
29
|
modelAvatar?: string
|
|
@@ -71,6 +78,7 @@ export type UpdateModelRequest = {
|
|
|
71
78
|
export type ListModelRequest = {
|
|
72
79
|
page?: HydraCommonCommon.Pagination
|
|
73
80
|
showDeployTemplate?: boolean
|
|
81
|
+
selector?: ListModelRequestModelListSelector
|
|
74
82
|
}
|
|
75
83
|
|
|
76
84
|
export type ListModelResponse = {
|
|
@@ -20,6 +20,7 @@ export enum ModelSupportFeature {
|
|
|
20
20
|
RERANK_MODEL = "RERANK_MODEL",
|
|
21
21
|
AUDIO_TO_AUDIO = "AUDIO_TO_AUDIO",
|
|
22
22
|
AUDIO_TO_TEXT = "AUDIO_TO_TEXT",
|
|
23
|
+
TOOLS = "TOOLS",
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
export enum PublicModelConfigRateLimitLimitedBy {
|
|
@@ -107,6 +108,12 @@ export type DeployTemplate = {
|
|
|
107
108
|
runtime?: DeployTemplateInferenceRuntime
|
|
108
109
|
versionRequired?: string
|
|
109
110
|
customDeployArgs?: string[]
|
|
111
|
+
env?: EnvVar[]
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type EnvVar = {
|
|
115
|
+
name?: string
|
|
116
|
+
value?: string
|
|
110
117
|
}
|
|
111
118
|
|
|
112
119
|
export type ListWSModelRequest = {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as fm from "../../../fetch.pb"
|
|
8
|
+
export type GetAgentAddressRequest = {
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type GetAgentAddressResponse = {
|
|
12
|
+
address?: string
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class WebSearchAgentService {
|
|
16
|
+
static GetAgentAddress(req: GetAgentAddressRequest, initReq?: fm.InitReq): Promise<GetAgentAddressResponse> {
|
|
17
|
+
return fm.fetchReq<GetAgentAddressRequest, GetAgentAddressResponse>(`/apis/hydra.io/v1alpha1/web-search-agent/address?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
18
|
+
}
|
|
19
|
+
}
|