@openrouter/sdk 0.0.0-beta.32 → 0.0.0-beta.33
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.
- package/FUNCTIONS.md +2 -0
- package/REACT_QUERY.md +2 -0
- package/README.md +12 -0
- package/dist/commonjs/funcs/endpointsList.d.ts +1 -1
- package/dist/commonjs/funcs/endpointsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/endpointsList.js +1 -1
- package/dist/commonjs/funcs/endpointsList.js.map +1 -1
- package/dist/commonjs/funcs/modelsList.d.ts +1 -1
- package/dist/commonjs/funcs/modelsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/modelsList.js +1 -1
- package/dist/commonjs/funcs/modelsList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/endpointslist.d.ts +768 -0
- package/dist/commonjs/models/endpointslist.d.ts.map +1 -0
- package/dist/commonjs/models/endpointslist.js +625 -0
- package/dist/commonjs/models/endpointslist.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +3 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +3 -0
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/keyinfo.d.ts +155 -0
- package/dist/commonjs/models/keyinfo.d.ts.map +1 -0
- package/dist/commonjs/models/keyinfo.js +163 -0
- package/dist/commonjs/models/keyinfo.js.map +1 -0
- package/dist/commonjs/models/modelslist.d.ts +854 -0
- package/dist/commonjs/models/modelslist.d.ts.map +1 -0
- package/dist/commonjs/models/modelslist.js +768 -0
- package/dist/commonjs/models/modelslist.js.map +1 -0
- package/dist/commonjs/models/openairesponsesrequest.d.ts +52 -52
- package/dist/commonjs/models/openairesponsesrequest.d.ts.map +1 -1
- package/dist/commonjs/models/openairesponsesrequest.js +74 -76
- package/dist/commonjs/models/openairesponsesrequest.js.map +1 -1
- package/dist/commonjs/models/operations/getcurrentkey.d.ts +3 -108
- package/dist/commonjs/models/operations/getcurrentkey.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcurrentkey.js +4 -88
- package/dist/commonjs/models/operations/getcurrentkey.js.map +1 -1
- package/dist/commonjs/models/operations/list.d.ts +63 -825
- package/dist/commonjs/models/operations/list.d.ts.map +1 -1
- package/dist/commonjs/models/operations/list.js +86 -667
- package/dist/commonjs/models/operations/list.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +16 -865
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +19 -742
- package/dist/commonjs/models/operations/listmodels.js.map +1 -1
- package/dist/commonjs/models/operations/listusermodels.d.ts +3 -852
- package/dist/commonjs/models/operations/listusermodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listusermodels.js +4 -730
- package/dist/commonjs/models/operations/listusermodels.js.map +1 -1
- package/dist/commonjs/models/operations/previewzdr.d.ts +97 -97
- package/dist/commonjs/models/operations/previewzdr.d.ts.map +1 -1
- package/dist/commonjs/models/operations/previewzdr.js +134 -133
- package/dist/commonjs/models/operations/previewzdr.js.map +1 -1
- package/dist/commonjs/models/responsereasoningconfig.d.ts +4 -0
- package/dist/commonjs/models/responsereasoningconfig.d.ts.map +1 -1
- package/dist/commonjs/models/responsereasoningconfig.js +13 -0
- package/dist/commonjs/models/responsereasoningconfig.js.map +1 -1
- package/dist/commonjs/models/responsesusage.d.ts +41 -0
- package/dist/commonjs/models/responsesusage.d.ts.map +1 -1
- package/dist/commonjs/models/responsesusage.js +54 -1
- package/dist/commonjs/models/responsesusage.js.map +1 -1
- package/dist/commonjs/react-query/endpointsList.d.ts +4 -4
- package/dist/commonjs/react-query/endpointsList.d.ts.map +1 -1
- package/dist/commonjs/react-query/endpointsList.js.map +1 -1
- package/dist/commonjs/react-query/modelsList.d.ts +4 -4
- package/dist/commonjs/react-query/modelsList.d.ts.map +1 -1
- package/dist/commonjs/react-query/modelsList.js.map +1 -1
- package/dist/commonjs/sdk/endpoints.d.ts +1 -1
- package/dist/commonjs/sdk/endpoints.d.ts.map +1 -1
- package/dist/commonjs/sdk/endpoints.js.map +1 -1
- package/dist/commonjs/sdk/models.d.ts +1 -1
- package/dist/commonjs/sdk/models.d.ts.map +1 -1
- package/dist/commonjs/sdk/models.js.map +1 -1
- package/dist/esm/funcs/endpointsList.d.ts +1 -1
- package/dist/esm/funcs/endpointsList.d.ts.map +1 -1
- package/dist/esm/funcs/endpointsList.js +1 -1
- package/dist/esm/funcs/endpointsList.js.map +1 -1
- package/dist/esm/funcs/modelsList.d.ts +1 -1
- package/dist/esm/funcs/modelsList.d.ts.map +1 -1
- package/dist/esm/funcs/modelsList.js +1 -1
- package/dist/esm/funcs/modelsList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/endpointslist.d.ts +768 -0
- package/dist/esm/models/endpointslist.d.ts.map +1 -0
- package/dist/esm/models/endpointslist.js +562 -0
- package/dist/esm/models/endpointslist.js.map +1 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/keyinfo.d.ts +155 -0
- package/dist/esm/models/keyinfo.d.ts.map +1 -0
- package/dist/esm/models/keyinfo.js +123 -0
- package/dist/esm/models/keyinfo.js.map +1 -0
- package/dist/esm/models/modelslist.d.ts +854 -0
- package/dist/esm/models/modelslist.d.ts.map +1 -0
- package/dist/esm/models/modelslist.js +697 -0
- package/dist/esm/models/modelslist.js.map +1 -0
- package/dist/esm/models/openairesponsesrequest.d.ts +52 -52
- package/dist/esm/models/openairesponsesrequest.d.ts.map +1 -1
- package/dist/esm/models/openairesponsesrequest.js +64 -66
- package/dist/esm/models/openairesponsesrequest.js.map +1 -1
- package/dist/esm/models/operations/getcurrentkey.d.ts +3 -108
- package/dist/esm/models/operations/getcurrentkey.d.ts.map +1 -1
- package/dist/esm/models/operations/getcurrentkey.js +3 -83
- package/dist/esm/models/operations/getcurrentkey.js.map +1 -1
- package/dist/esm/models/operations/list.d.ts +63 -825
- package/dist/esm/models/operations/list.d.ts.map +1 -1
- package/dist/esm/models/operations/list.js +81 -635
- package/dist/esm/models/operations/list.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +16 -865
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +16 -704
- package/dist/esm/models/operations/listmodels.js.map +1 -1
- package/dist/esm/models/operations/listusermodels.d.ts +3 -852
- package/dist/esm/models/operations/listusermodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listusermodels.js +3 -694
- package/dist/esm/models/operations/listusermodels.js.map +1 -1
- package/dist/esm/models/operations/previewzdr.d.ts +97 -97
- package/dist/esm/models/operations/previewzdr.d.ts.map +1 -1
- package/dist/esm/models/operations/previewzdr.js +118 -117
- package/dist/esm/models/operations/previewzdr.js.map +1 -1
- package/dist/esm/models/responsereasoningconfig.d.ts +4 -0
- package/dist/esm/models/responsereasoningconfig.d.ts.map +1 -1
- package/dist/esm/models/responsereasoningconfig.js +13 -0
- package/dist/esm/models/responsereasoningconfig.js.map +1 -1
- package/dist/esm/models/responsesusage.d.ts +41 -0
- package/dist/esm/models/responsesusage.d.ts.map +1 -1
- package/dist/esm/models/responsesusage.js +51 -0
- package/dist/esm/models/responsesusage.js.map +1 -1
- package/dist/esm/react-query/endpointsList.d.ts +4 -4
- package/dist/esm/react-query/endpointsList.d.ts.map +1 -1
- package/dist/esm/react-query/endpointsList.js.map +1 -1
- package/dist/esm/react-query/modelsList.d.ts +4 -4
- package/dist/esm/react-query/modelsList.d.ts.map +1 -1
- package/dist/esm/react-query/modelsList.js.map +1 -1
- package/dist/esm/sdk/endpoints.d.ts +1 -1
- package/dist/esm/sdk/endpoints.d.ts.map +1 -1
- package/dist/esm/sdk/endpoints.js.map +1 -1
- package/dist/esm/sdk/models.d.ts +1 -1
- package/dist/esm/sdk/models.d.ts.map +1 -1
- package/dist/esm/sdk/models.js.map +1 -1
- package/docs/sdks/endpoints/README.md +1 -1
- package/docs/sdks/models/README.md +1 -1
- package/docs/sdks/responses/README.md +4 -0
- package/examples/betaResponsesSendRequest.example.ts +2 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/endpointsList.ts +3 -3
- package/src/funcs/modelsList.ts +3 -5
- package/src/lib/config.ts +2 -2
- package/src/models/endpointslist.ts +1034 -0
- package/src/models/index.ts +3 -0
- package/src/models/keyinfo.ts +281 -0
- package/src/models/modelslist.ts +1394 -0
- package/src/models/openairesponsesrequest.ts +133 -94
- package/src/models/operations/getcurrentkey.ts +5 -203
- package/src/models/operations/list.ts +109 -1106
- package/src/models/operations/listmodels.ts +26 -1436
- package/src/models/operations/listusermodels.ts +5 -1440
- package/src/models/operations/previewzdr.ts +196 -225
- package/src/models/responsereasoningconfig.ts +17 -0
- package/src/models/responsesusage.ts +96 -0
- package/src/react-query/endpointsList.ts +4 -4
- package/src/react-query/modelsList.ts +4 -4
- package/src/sdk/endpoints.ts +1 -1
- package/src/sdk/models.ts +1 -1
|
@@ -2,95 +2,8 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
5
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
|
|
8
|
-
* Tokenizer type used by the model
|
|
9
|
-
*/
|
|
10
|
-
export const ListUserModelsTokenizer = {
|
|
11
|
-
Router: "Router",
|
|
12
|
-
Media: "Media",
|
|
13
|
-
Other: "Other",
|
|
14
|
-
Gpt: "GPT",
|
|
15
|
-
Claude: "Claude",
|
|
16
|
-
Gemini: "Gemini",
|
|
17
|
-
Grok: "Grok",
|
|
18
|
-
Cohere: "Cohere",
|
|
19
|
-
Nova: "Nova",
|
|
20
|
-
Qwen: "Qwen",
|
|
21
|
-
Yi: "Yi",
|
|
22
|
-
DeepSeek: "DeepSeek",
|
|
23
|
-
Mistral: "Mistral",
|
|
24
|
-
Llama2: "Llama2",
|
|
25
|
-
Llama3: "Llama3",
|
|
26
|
-
Llama4: "Llama4",
|
|
27
|
-
PaLM: "PaLM",
|
|
28
|
-
Rwkv: "RWKV",
|
|
29
|
-
Qwen3: "Qwen3",
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Instruction format type
|
|
33
|
-
*/
|
|
34
|
-
export const ListUserModelsInstructType = {
|
|
35
|
-
None: "none",
|
|
36
|
-
Airoboros: "airoboros",
|
|
37
|
-
Alpaca: "alpaca",
|
|
38
|
-
AlpacaModif: "alpaca-modif",
|
|
39
|
-
Chatml: "chatml",
|
|
40
|
-
Claude: "claude",
|
|
41
|
-
CodeLlama: "code-llama",
|
|
42
|
-
Gemma: "gemma",
|
|
43
|
-
Llama2: "llama2",
|
|
44
|
-
Llama3: "llama3",
|
|
45
|
-
Mistral: "mistral",
|
|
46
|
-
Nemotron: "nemotron",
|
|
47
|
-
Neural: "neural",
|
|
48
|
-
Openchat: "openchat",
|
|
49
|
-
Phi3: "phi3",
|
|
50
|
-
Rwkv: "rwkv",
|
|
51
|
-
Vicuna: "vicuna",
|
|
52
|
-
Zephyr: "zephyr",
|
|
53
|
-
DeepseekR1: "deepseek-r1",
|
|
54
|
-
DeepseekV31: "deepseek-v3.1",
|
|
55
|
-
Qwq: "qwq",
|
|
56
|
-
Qwen3: "qwen3",
|
|
57
|
-
};
|
|
58
|
-
export const ListUserModelsInputModality = {
|
|
59
|
-
Text: "text",
|
|
60
|
-
Image: "image",
|
|
61
|
-
File: "file",
|
|
62
|
-
Audio: "audio",
|
|
63
|
-
};
|
|
64
|
-
export const ListUserModelsOutputModality = {
|
|
65
|
-
Text: "text",
|
|
66
|
-
Image: "image",
|
|
67
|
-
Embeddings: "embeddings",
|
|
68
|
-
};
|
|
69
|
-
export const ListUserModelsSupportedParameter = {
|
|
70
|
-
Temperature: "temperature",
|
|
71
|
-
TopP: "top_p",
|
|
72
|
-
TopK: "top_k",
|
|
73
|
-
MinP: "min_p",
|
|
74
|
-
TopA: "top_a",
|
|
75
|
-
FrequencyPenalty: "frequency_penalty",
|
|
76
|
-
PresencePenalty: "presence_penalty",
|
|
77
|
-
RepetitionPenalty: "repetition_penalty",
|
|
78
|
-
MaxTokens: "max_tokens",
|
|
79
|
-
LogitBias: "logit_bias",
|
|
80
|
-
Logprobs: "logprobs",
|
|
81
|
-
TopLogprobs: "top_logprobs",
|
|
82
|
-
Seed: "seed",
|
|
83
|
-
ResponseFormat: "response_format",
|
|
84
|
-
StructuredOutputs: "structured_outputs",
|
|
85
|
-
Stop: "stop",
|
|
86
|
-
Tools: "tools",
|
|
87
|
-
ToolChoice: "tool_choice",
|
|
88
|
-
ParallelToolCalls: "parallel_tool_calls",
|
|
89
|
-
IncludeReasoning: "include_reasoning",
|
|
90
|
-
Reasoning: "reasoning",
|
|
91
|
-
WebSearchOptions: "web_search_options",
|
|
92
|
-
Verbosity: "verbosity",
|
|
93
|
-
};
|
|
6
|
+
import * as models from "../index.js";
|
|
94
7
|
/** @internal */
|
|
95
8
|
export const ListUserModelsSecurity$inboundSchema = z.object({
|
|
96
9
|
bearer: z.string(),
|
|
@@ -117,616 +30,12 @@ export function listUserModelsSecurityFromJSON(jsonString) {
|
|
|
117
30
|
return safeParse(jsonString, (x) => ListUserModelsSecurity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsSecurity' from JSON`);
|
|
118
31
|
}
|
|
119
32
|
/** @internal */
|
|
120
|
-
export const ListUserModelsPrompt$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
121
|
-
/** @internal */
|
|
122
|
-
export const ListUserModelsPrompt$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
123
|
-
/**
|
|
124
|
-
* @internal
|
|
125
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
126
|
-
*/
|
|
127
|
-
export var ListUserModelsPrompt$;
|
|
128
|
-
(function (ListUserModelsPrompt$) {
|
|
129
|
-
/** @deprecated use `ListUserModelsPrompt$inboundSchema` instead. */
|
|
130
|
-
ListUserModelsPrompt$.inboundSchema = ListUserModelsPrompt$inboundSchema;
|
|
131
|
-
/** @deprecated use `ListUserModelsPrompt$outboundSchema` instead. */
|
|
132
|
-
ListUserModelsPrompt$.outboundSchema = ListUserModelsPrompt$outboundSchema;
|
|
133
|
-
})(ListUserModelsPrompt$ || (ListUserModelsPrompt$ = {}));
|
|
134
|
-
export function listUserModelsPromptToJSON(listUserModelsPrompt) {
|
|
135
|
-
return JSON.stringify(ListUserModelsPrompt$outboundSchema.parse(listUserModelsPrompt));
|
|
136
|
-
}
|
|
137
|
-
export function listUserModelsPromptFromJSON(jsonString) {
|
|
138
|
-
return safeParse(jsonString, (x) => ListUserModelsPrompt$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsPrompt' from JSON`);
|
|
139
|
-
}
|
|
140
|
-
/** @internal */
|
|
141
|
-
export const ListUserModelsCompletion$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
142
|
-
/** @internal */
|
|
143
|
-
export const ListUserModelsCompletion$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
144
|
-
/**
|
|
145
|
-
* @internal
|
|
146
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
147
|
-
*/
|
|
148
|
-
export var ListUserModelsCompletion$;
|
|
149
|
-
(function (ListUserModelsCompletion$) {
|
|
150
|
-
/** @deprecated use `ListUserModelsCompletion$inboundSchema` instead. */
|
|
151
|
-
ListUserModelsCompletion$.inboundSchema = ListUserModelsCompletion$inboundSchema;
|
|
152
|
-
/** @deprecated use `ListUserModelsCompletion$outboundSchema` instead. */
|
|
153
|
-
ListUserModelsCompletion$.outboundSchema = ListUserModelsCompletion$outboundSchema;
|
|
154
|
-
})(ListUserModelsCompletion$ || (ListUserModelsCompletion$ = {}));
|
|
155
|
-
export function listUserModelsCompletionToJSON(listUserModelsCompletion) {
|
|
156
|
-
return JSON.stringify(ListUserModelsCompletion$outboundSchema.parse(listUserModelsCompletion));
|
|
157
|
-
}
|
|
158
|
-
export function listUserModelsCompletionFromJSON(jsonString) {
|
|
159
|
-
return safeParse(jsonString, (x) => ListUserModelsCompletion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsCompletion' from JSON`);
|
|
160
|
-
}
|
|
161
|
-
/** @internal */
|
|
162
|
-
export const ModelsListUserModelsRequest$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
163
|
-
/** @internal */
|
|
164
|
-
export const ModelsListUserModelsRequest$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
165
|
-
/**
|
|
166
|
-
* @internal
|
|
167
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
168
|
-
*/
|
|
169
|
-
export var ModelsListUserModelsRequest$;
|
|
170
|
-
(function (ModelsListUserModelsRequest$) {
|
|
171
|
-
/** @deprecated use `ModelsListUserModelsRequest$inboundSchema` instead. */
|
|
172
|
-
ModelsListUserModelsRequest$.inboundSchema = ModelsListUserModelsRequest$inboundSchema;
|
|
173
|
-
/** @deprecated use `ModelsListUserModelsRequest$outboundSchema` instead. */
|
|
174
|
-
ModelsListUserModelsRequest$.outboundSchema = ModelsListUserModelsRequest$outboundSchema;
|
|
175
|
-
})(ModelsListUserModelsRequest$ || (ModelsListUserModelsRequest$ = {}));
|
|
176
|
-
export function modelsListUserModelsRequestToJSON(modelsListUserModelsRequest) {
|
|
177
|
-
return JSON.stringify(ModelsListUserModelsRequest$outboundSchema.parse(modelsListUserModelsRequest));
|
|
178
|
-
}
|
|
179
|
-
export function modelsListUserModelsRequestFromJSON(jsonString) {
|
|
180
|
-
return safeParse(jsonString, (x) => ModelsListUserModelsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsListUserModelsRequest' from JSON`);
|
|
181
|
-
}
|
|
182
|
-
/** @internal */
|
|
183
|
-
export const ListUserModelsImage$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
184
|
-
/** @internal */
|
|
185
|
-
export const ListUserModelsImage$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
186
|
-
/**
|
|
187
|
-
* @internal
|
|
188
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
189
|
-
*/
|
|
190
|
-
export var ListUserModelsImage$;
|
|
191
|
-
(function (ListUserModelsImage$) {
|
|
192
|
-
/** @deprecated use `ListUserModelsImage$inboundSchema` instead. */
|
|
193
|
-
ListUserModelsImage$.inboundSchema = ListUserModelsImage$inboundSchema;
|
|
194
|
-
/** @deprecated use `ListUserModelsImage$outboundSchema` instead. */
|
|
195
|
-
ListUserModelsImage$.outboundSchema = ListUserModelsImage$outboundSchema;
|
|
196
|
-
})(ListUserModelsImage$ || (ListUserModelsImage$ = {}));
|
|
197
|
-
export function listUserModelsImageToJSON(listUserModelsImage) {
|
|
198
|
-
return JSON.stringify(ListUserModelsImage$outboundSchema.parse(listUserModelsImage));
|
|
199
|
-
}
|
|
200
|
-
export function listUserModelsImageFromJSON(jsonString) {
|
|
201
|
-
return safeParse(jsonString, (x) => ListUserModelsImage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsImage' from JSON`);
|
|
202
|
-
}
|
|
203
|
-
/** @internal */
|
|
204
|
-
export const ListUserModelsImageOutput$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
205
|
-
/** @internal */
|
|
206
|
-
export const ListUserModelsImageOutput$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
207
|
-
/**
|
|
208
|
-
* @internal
|
|
209
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
210
|
-
*/
|
|
211
|
-
export var ListUserModelsImageOutput$;
|
|
212
|
-
(function (ListUserModelsImageOutput$) {
|
|
213
|
-
/** @deprecated use `ListUserModelsImageOutput$inboundSchema` instead. */
|
|
214
|
-
ListUserModelsImageOutput$.inboundSchema = ListUserModelsImageOutput$inboundSchema;
|
|
215
|
-
/** @deprecated use `ListUserModelsImageOutput$outboundSchema` instead. */
|
|
216
|
-
ListUserModelsImageOutput$.outboundSchema = ListUserModelsImageOutput$outboundSchema;
|
|
217
|
-
})(ListUserModelsImageOutput$ || (ListUserModelsImageOutput$ = {}));
|
|
218
|
-
export function listUserModelsImageOutputToJSON(listUserModelsImageOutput) {
|
|
219
|
-
return JSON.stringify(ListUserModelsImageOutput$outboundSchema.parse(listUserModelsImageOutput));
|
|
220
|
-
}
|
|
221
|
-
export function listUserModelsImageOutputFromJSON(jsonString) {
|
|
222
|
-
return safeParse(jsonString, (x) => ListUserModelsImageOutput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsImageOutput' from JSON`);
|
|
223
|
-
}
|
|
224
|
-
/** @internal */
|
|
225
|
-
export const ListUserModelsAudio$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
226
|
-
/** @internal */
|
|
227
|
-
export const ListUserModelsAudio$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
228
|
-
/**
|
|
229
|
-
* @internal
|
|
230
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
231
|
-
*/
|
|
232
|
-
export var ListUserModelsAudio$;
|
|
233
|
-
(function (ListUserModelsAudio$) {
|
|
234
|
-
/** @deprecated use `ListUserModelsAudio$inboundSchema` instead. */
|
|
235
|
-
ListUserModelsAudio$.inboundSchema = ListUserModelsAudio$inboundSchema;
|
|
236
|
-
/** @deprecated use `ListUserModelsAudio$outboundSchema` instead. */
|
|
237
|
-
ListUserModelsAudio$.outboundSchema = ListUserModelsAudio$outboundSchema;
|
|
238
|
-
})(ListUserModelsAudio$ || (ListUserModelsAudio$ = {}));
|
|
239
|
-
export function listUserModelsAudioToJSON(listUserModelsAudio) {
|
|
240
|
-
return JSON.stringify(ListUserModelsAudio$outboundSchema.parse(listUserModelsAudio));
|
|
241
|
-
}
|
|
242
|
-
export function listUserModelsAudioFromJSON(jsonString) {
|
|
243
|
-
return safeParse(jsonString, (x) => ListUserModelsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsAudio' from JSON`);
|
|
244
|
-
}
|
|
245
|
-
/** @internal */
|
|
246
|
-
export const ListUserModelsInputAudioCache$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
247
|
-
/** @internal */
|
|
248
|
-
export const ListUserModelsInputAudioCache$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
249
|
-
/**
|
|
250
|
-
* @internal
|
|
251
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
252
|
-
*/
|
|
253
|
-
export var ListUserModelsInputAudioCache$;
|
|
254
|
-
(function (ListUserModelsInputAudioCache$) {
|
|
255
|
-
/** @deprecated use `ListUserModelsInputAudioCache$inboundSchema` instead. */
|
|
256
|
-
ListUserModelsInputAudioCache$.inboundSchema = ListUserModelsInputAudioCache$inboundSchema;
|
|
257
|
-
/** @deprecated use `ListUserModelsInputAudioCache$outboundSchema` instead. */
|
|
258
|
-
ListUserModelsInputAudioCache$.outboundSchema = ListUserModelsInputAudioCache$outboundSchema;
|
|
259
|
-
})(ListUserModelsInputAudioCache$ || (ListUserModelsInputAudioCache$ = {}));
|
|
260
|
-
export function listUserModelsInputAudioCacheToJSON(listUserModelsInputAudioCache) {
|
|
261
|
-
return JSON.stringify(ListUserModelsInputAudioCache$outboundSchema.parse(listUserModelsInputAudioCache));
|
|
262
|
-
}
|
|
263
|
-
export function listUserModelsInputAudioCacheFromJSON(jsonString) {
|
|
264
|
-
return safeParse(jsonString, (x) => ListUserModelsInputAudioCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsInputAudioCache' from JSON`);
|
|
265
|
-
}
|
|
266
|
-
/** @internal */
|
|
267
|
-
export const ListUserModelsWebSearch$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
268
|
-
/** @internal */
|
|
269
|
-
export const ListUserModelsWebSearch$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
270
|
-
/**
|
|
271
|
-
* @internal
|
|
272
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
273
|
-
*/
|
|
274
|
-
export var ListUserModelsWebSearch$;
|
|
275
|
-
(function (ListUserModelsWebSearch$) {
|
|
276
|
-
/** @deprecated use `ListUserModelsWebSearch$inboundSchema` instead. */
|
|
277
|
-
ListUserModelsWebSearch$.inboundSchema = ListUserModelsWebSearch$inboundSchema;
|
|
278
|
-
/** @deprecated use `ListUserModelsWebSearch$outboundSchema` instead. */
|
|
279
|
-
ListUserModelsWebSearch$.outboundSchema = ListUserModelsWebSearch$outboundSchema;
|
|
280
|
-
})(ListUserModelsWebSearch$ || (ListUserModelsWebSearch$ = {}));
|
|
281
|
-
export function listUserModelsWebSearchToJSON(listUserModelsWebSearch) {
|
|
282
|
-
return JSON.stringify(ListUserModelsWebSearch$outboundSchema.parse(listUserModelsWebSearch));
|
|
283
|
-
}
|
|
284
|
-
export function listUserModelsWebSearchFromJSON(jsonString) {
|
|
285
|
-
return safeParse(jsonString, (x) => ListUserModelsWebSearch$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsWebSearch' from JSON`);
|
|
286
|
-
}
|
|
287
|
-
/** @internal */
|
|
288
|
-
export const ListUserModelsInternalReasoning$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
289
|
-
/** @internal */
|
|
290
|
-
export const ListUserModelsInternalReasoning$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
291
|
-
/**
|
|
292
|
-
* @internal
|
|
293
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
294
|
-
*/
|
|
295
|
-
export var ListUserModelsInternalReasoning$;
|
|
296
|
-
(function (ListUserModelsInternalReasoning$) {
|
|
297
|
-
/** @deprecated use `ListUserModelsInternalReasoning$inboundSchema` instead. */
|
|
298
|
-
ListUserModelsInternalReasoning$.inboundSchema = ListUserModelsInternalReasoning$inboundSchema;
|
|
299
|
-
/** @deprecated use `ListUserModelsInternalReasoning$outboundSchema` instead. */
|
|
300
|
-
ListUserModelsInternalReasoning$.outboundSchema = ListUserModelsInternalReasoning$outboundSchema;
|
|
301
|
-
})(ListUserModelsInternalReasoning$ || (ListUserModelsInternalReasoning$ = {}));
|
|
302
|
-
export function listUserModelsInternalReasoningToJSON(listUserModelsInternalReasoning) {
|
|
303
|
-
return JSON.stringify(ListUserModelsInternalReasoning$outboundSchema.parse(listUserModelsInternalReasoning));
|
|
304
|
-
}
|
|
305
|
-
export function listUserModelsInternalReasoningFromJSON(jsonString) {
|
|
306
|
-
return safeParse(jsonString, (x) => ListUserModelsInternalReasoning$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsInternalReasoning' from JSON`);
|
|
307
|
-
}
|
|
308
|
-
/** @internal */
|
|
309
|
-
export const ListUserModelsInputCacheRead$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
310
|
-
/** @internal */
|
|
311
|
-
export const ListUserModelsInputCacheRead$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
312
|
-
/**
|
|
313
|
-
* @internal
|
|
314
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
315
|
-
*/
|
|
316
|
-
export var ListUserModelsInputCacheRead$;
|
|
317
|
-
(function (ListUserModelsInputCacheRead$) {
|
|
318
|
-
/** @deprecated use `ListUserModelsInputCacheRead$inboundSchema` instead. */
|
|
319
|
-
ListUserModelsInputCacheRead$.inboundSchema = ListUserModelsInputCacheRead$inboundSchema;
|
|
320
|
-
/** @deprecated use `ListUserModelsInputCacheRead$outboundSchema` instead. */
|
|
321
|
-
ListUserModelsInputCacheRead$.outboundSchema = ListUserModelsInputCacheRead$outboundSchema;
|
|
322
|
-
})(ListUserModelsInputCacheRead$ || (ListUserModelsInputCacheRead$ = {}));
|
|
323
|
-
export function listUserModelsInputCacheReadToJSON(listUserModelsInputCacheRead) {
|
|
324
|
-
return JSON.stringify(ListUserModelsInputCacheRead$outboundSchema.parse(listUserModelsInputCacheRead));
|
|
325
|
-
}
|
|
326
|
-
export function listUserModelsInputCacheReadFromJSON(jsonString) {
|
|
327
|
-
return safeParse(jsonString, (x) => ListUserModelsInputCacheRead$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsInputCacheRead' from JSON`);
|
|
328
|
-
}
|
|
329
|
-
/** @internal */
|
|
330
|
-
export const ListUserModelsInputCacheWrite$inboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
331
|
-
/** @internal */
|
|
332
|
-
export const ListUserModelsInputCacheWrite$outboundSchema = z.union([z.number(), z.string(), z.any()]);
|
|
333
|
-
/**
|
|
334
|
-
* @internal
|
|
335
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
336
|
-
*/
|
|
337
|
-
export var ListUserModelsInputCacheWrite$;
|
|
338
|
-
(function (ListUserModelsInputCacheWrite$) {
|
|
339
|
-
/** @deprecated use `ListUserModelsInputCacheWrite$inboundSchema` instead. */
|
|
340
|
-
ListUserModelsInputCacheWrite$.inboundSchema = ListUserModelsInputCacheWrite$inboundSchema;
|
|
341
|
-
/** @deprecated use `ListUserModelsInputCacheWrite$outboundSchema` instead. */
|
|
342
|
-
ListUserModelsInputCacheWrite$.outboundSchema = ListUserModelsInputCacheWrite$outboundSchema;
|
|
343
|
-
})(ListUserModelsInputCacheWrite$ || (ListUserModelsInputCacheWrite$ = {}));
|
|
344
|
-
export function listUserModelsInputCacheWriteToJSON(listUserModelsInputCacheWrite) {
|
|
345
|
-
return JSON.stringify(ListUserModelsInputCacheWrite$outboundSchema.parse(listUserModelsInputCacheWrite));
|
|
346
|
-
}
|
|
347
|
-
export function listUserModelsInputCacheWriteFromJSON(jsonString) {
|
|
348
|
-
return safeParse(jsonString, (x) => ListUserModelsInputCacheWrite$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsInputCacheWrite' from JSON`);
|
|
349
|
-
}
|
|
350
|
-
/** @internal */
|
|
351
|
-
export const ListUserModelsPricing$inboundSchema = z.object({
|
|
352
|
-
prompt: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
353
|
-
completion: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
354
|
-
request: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
355
|
-
image: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
356
|
-
image_output: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
357
|
-
audio: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
358
|
-
input_audio_cache: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
359
|
-
web_search: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
360
|
-
internal_reasoning: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
361
|
-
input_cache_read: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
362
|
-
input_cache_write: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
363
|
-
discount: z.number().optional(),
|
|
364
|
-
}).transform((v) => {
|
|
365
|
-
return remap$(v, {
|
|
366
|
-
"image_output": "imageOutput",
|
|
367
|
-
"input_audio_cache": "inputAudioCache",
|
|
368
|
-
"web_search": "webSearch",
|
|
369
|
-
"internal_reasoning": "internalReasoning",
|
|
370
|
-
"input_cache_read": "inputCacheRead",
|
|
371
|
-
"input_cache_write": "inputCacheWrite",
|
|
372
|
-
});
|
|
373
|
-
});
|
|
374
|
-
/** @internal */
|
|
375
|
-
export const ListUserModelsPricing$outboundSchema = z.object({
|
|
376
|
-
prompt: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
377
|
-
completion: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
378
|
-
request: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
379
|
-
image: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
380
|
-
imageOutput: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
381
|
-
audio: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
382
|
-
inputAudioCache: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
383
|
-
webSearch: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
384
|
-
internalReasoning: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
385
|
-
inputCacheRead: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
386
|
-
inputCacheWrite: z.union([z.number(), z.string(), z.any()]).optional(),
|
|
387
|
-
discount: z.number().optional(),
|
|
388
|
-
}).transform((v) => {
|
|
389
|
-
return remap$(v, {
|
|
390
|
-
imageOutput: "image_output",
|
|
391
|
-
inputAudioCache: "input_audio_cache",
|
|
392
|
-
webSearch: "web_search",
|
|
393
|
-
internalReasoning: "internal_reasoning",
|
|
394
|
-
inputCacheRead: "input_cache_read",
|
|
395
|
-
inputCacheWrite: "input_cache_write",
|
|
396
|
-
});
|
|
397
|
-
});
|
|
398
|
-
/**
|
|
399
|
-
* @internal
|
|
400
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
401
|
-
*/
|
|
402
|
-
export var ListUserModelsPricing$;
|
|
403
|
-
(function (ListUserModelsPricing$) {
|
|
404
|
-
/** @deprecated use `ListUserModelsPricing$inboundSchema` instead. */
|
|
405
|
-
ListUserModelsPricing$.inboundSchema = ListUserModelsPricing$inboundSchema;
|
|
406
|
-
/** @deprecated use `ListUserModelsPricing$outboundSchema` instead. */
|
|
407
|
-
ListUserModelsPricing$.outboundSchema = ListUserModelsPricing$outboundSchema;
|
|
408
|
-
})(ListUserModelsPricing$ || (ListUserModelsPricing$ = {}));
|
|
409
|
-
export function listUserModelsPricingToJSON(listUserModelsPricing) {
|
|
410
|
-
return JSON.stringify(ListUserModelsPricing$outboundSchema.parse(listUserModelsPricing));
|
|
411
|
-
}
|
|
412
|
-
export function listUserModelsPricingFromJSON(jsonString) {
|
|
413
|
-
return safeParse(jsonString, (x) => ListUserModelsPricing$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsPricing' from JSON`);
|
|
414
|
-
}
|
|
415
|
-
/** @internal */
|
|
416
|
-
export const ListUserModelsTokenizer$inboundSchema = z.nativeEnum(ListUserModelsTokenizer);
|
|
417
|
-
/** @internal */
|
|
418
|
-
export const ListUserModelsTokenizer$outboundSchema = ListUserModelsTokenizer$inboundSchema;
|
|
419
|
-
/**
|
|
420
|
-
* @internal
|
|
421
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
422
|
-
*/
|
|
423
|
-
export var ListUserModelsTokenizer$;
|
|
424
|
-
(function (ListUserModelsTokenizer$) {
|
|
425
|
-
/** @deprecated use `ListUserModelsTokenizer$inboundSchema` instead. */
|
|
426
|
-
ListUserModelsTokenizer$.inboundSchema = ListUserModelsTokenizer$inboundSchema;
|
|
427
|
-
/** @deprecated use `ListUserModelsTokenizer$outboundSchema` instead. */
|
|
428
|
-
ListUserModelsTokenizer$.outboundSchema = ListUserModelsTokenizer$outboundSchema;
|
|
429
|
-
})(ListUserModelsTokenizer$ || (ListUserModelsTokenizer$ = {}));
|
|
430
|
-
/** @internal */
|
|
431
|
-
export const ListUserModelsInstructType$inboundSchema = z.nativeEnum(ListUserModelsInstructType);
|
|
432
|
-
/** @internal */
|
|
433
|
-
export const ListUserModelsInstructType$outboundSchema = ListUserModelsInstructType$inboundSchema;
|
|
434
|
-
/**
|
|
435
|
-
* @internal
|
|
436
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
437
|
-
*/
|
|
438
|
-
export var ListUserModelsInstructType$;
|
|
439
|
-
(function (ListUserModelsInstructType$) {
|
|
440
|
-
/** @deprecated use `ListUserModelsInstructType$inboundSchema` instead. */
|
|
441
|
-
ListUserModelsInstructType$.inboundSchema = ListUserModelsInstructType$inboundSchema;
|
|
442
|
-
/** @deprecated use `ListUserModelsInstructType$outboundSchema` instead. */
|
|
443
|
-
ListUserModelsInstructType$.outboundSchema = ListUserModelsInstructType$outboundSchema;
|
|
444
|
-
})(ListUserModelsInstructType$ || (ListUserModelsInstructType$ = {}));
|
|
445
|
-
/** @internal */
|
|
446
|
-
export const ListUserModelsInputModality$inboundSchema = z.nativeEnum(ListUserModelsInputModality);
|
|
447
|
-
/** @internal */
|
|
448
|
-
export const ListUserModelsInputModality$outboundSchema = ListUserModelsInputModality$inboundSchema;
|
|
449
|
-
/**
|
|
450
|
-
* @internal
|
|
451
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
452
|
-
*/
|
|
453
|
-
export var ListUserModelsInputModality$;
|
|
454
|
-
(function (ListUserModelsInputModality$) {
|
|
455
|
-
/** @deprecated use `ListUserModelsInputModality$inboundSchema` instead. */
|
|
456
|
-
ListUserModelsInputModality$.inboundSchema = ListUserModelsInputModality$inboundSchema;
|
|
457
|
-
/** @deprecated use `ListUserModelsInputModality$outboundSchema` instead. */
|
|
458
|
-
ListUserModelsInputModality$.outboundSchema = ListUserModelsInputModality$outboundSchema;
|
|
459
|
-
})(ListUserModelsInputModality$ || (ListUserModelsInputModality$ = {}));
|
|
460
|
-
/** @internal */
|
|
461
|
-
export const ListUserModelsOutputModality$inboundSchema = z.nativeEnum(ListUserModelsOutputModality);
|
|
462
|
-
/** @internal */
|
|
463
|
-
export const ListUserModelsOutputModality$outboundSchema = ListUserModelsOutputModality$inboundSchema;
|
|
464
|
-
/**
|
|
465
|
-
* @internal
|
|
466
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
467
|
-
*/
|
|
468
|
-
export var ListUserModelsOutputModality$;
|
|
469
|
-
(function (ListUserModelsOutputModality$) {
|
|
470
|
-
/** @deprecated use `ListUserModelsOutputModality$inboundSchema` instead. */
|
|
471
|
-
ListUserModelsOutputModality$.inboundSchema = ListUserModelsOutputModality$inboundSchema;
|
|
472
|
-
/** @deprecated use `ListUserModelsOutputModality$outboundSchema` instead. */
|
|
473
|
-
ListUserModelsOutputModality$.outboundSchema = ListUserModelsOutputModality$outboundSchema;
|
|
474
|
-
})(ListUserModelsOutputModality$ || (ListUserModelsOutputModality$ = {}));
|
|
475
|
-
/** @internal */
|
|
476
|
-
export const ListUserModelsArchitecture$inboundSchema = z.object({
|
|
477
|
-
tokenizer: ListUserModelsTokenizer$inboundSchema.optional(),
|
|
478
|
-
instruct_type: z.nullable(ListUserModelsInstructType$inboundSchema)
|
|
479
|
-
.optional(),
|
|
480
|
-
modality: z.nullable(z.string()),
|
|
481
|
-
input_modalities: z.array(ListUserModelsInputModality$inboundSchema),
|
|
482
|
-
output_modalities: z.array(ListUserModelsOutputModality$inboundSchema),
|
|
483
|
-
}).transform((v) => {
|
|
484
|
-
return remap$(v, {
|
|
485
|
-
"instruct_type": "instructType",
|
|
486
|
-
"input_modalities": "inputModalities",
|
|
487
|
-
"output_modalities": "outputModalities",
|
|
488
|
-
});
|
|
489
|
-
});
|
|
490
|
-
/** @internal */
|
|
491
|
-
export const ListUserModelsArchitecture$outboundSchema = z.object({
|
|
492
|
-
tokenizer: ListUserModelsTokenizer$outboundSchema.optional(),
|
|
493
|
-
instructType: z.nullable(ListUserModelsInstructType$outboundSchema)
|
|
494
|
-
.optional(),
|
|
495
|
-
modality: z.nullable(z.string()),
|
|
496
|
-
inputModalities: z.array(ListUserModelsInputModality$outboundSchema),
|
|
497
|
-
outputModalities: z.array(ListUserModelsOutputModality$outboundSchema),
|
|
498
|
-
}).transform((v) => {
|
|
499
|
-
return remap$(v, {
|
|
500
|
-
instructType: "instruct_type",
|
|
501
|
-
inputModalities: "input_modalities",
|
|
502
|
-
outputModalities: "output_modalities",
|
|
503
|
-
});
|
|
504
|
-
});
|
|
505
|
-
/**
|
|
506
|
-
* @internal
|
|
507
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
508
|
-
*/
|
|
509
|
-
export var ListUserModelsArchitecture$;
|
|
510
|
-
(function (ListUserModelsArchitecture$) {
|
|
511
|
-
/** @deprecated use `ListUserModelsArchitecture$inboundSchema` instead. */
|
|
512
|
-
ListUserModelsArchitecture$.inboundSchema = ListUserModelsArchitecture$inboundSchema;
|
|
513
|
-
/** @deprecated use `ListUserModelsArchitecture$outboundSchema` instead. */
|
|
514
|
-
ListUserModelsArchitecture$.outboundSchema = ListUserModelsArchitecture$outboundSchema;
|
|
515
|
-
})(ListUserModelsArchitecture$ || (ListUserModelsArchitecture$ = {}));
|
|
516
|
-
export function listUserModelsArchitectureToJSON(listUserModelsArchitecture) {
|
|
517
|
-
return JSON.stringify(ListUserModelsArchitecture$outboundSchema.parse(listUserModelsArchitecture));
|
|
518
|
-
}
|
|
519
|
-
export function listUserModelsArchitectureFromJSON(jsonString) {
|
|
520
|
-
return safeParse(jsonString, (x) => ListUserModelsArchitecture$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsArchitecture' from JSON`);
|
|
521
|
-
}
|
|
522
|
-
/** @internal */
|
|
523
|
-
export const ListUserModelsTopProvider$inboundSchema = z.object({
|
|
524
|
-
context_length: z.nullable(z.number()).optional(),
|
|
525
|
-
max_completion_tokens: z.nullable(z.number()).optional(),
|
|
526
|
-
is_moderated: z.boolean(),
|
|
527
|
-
}).transform((v) => {
|
|
528
|
-
return remap$(v, {
|
|
529
|
-
"context_length": "contextLength",
|
|
530
|
-
"max_completion_tokens": "maxCompletionTokens",
|
|
531
|
-
"is_moderated": "isModerated",
|
|
532
|
-
});
|
|
533
|
-
});
|
|
534
|
-
/** @internal */
|
|
535
|
-
export const ListUserModelsTopProvider$outboundSchema = z.object({
|
|
536
|
-
contextLength: z.nullable(z.number()).optional(),
|
|
537
|
-
maxCompletionTokens: z.nullable(z.number()).optional(),
|
|
538
|
-
isModerated: z.boolean(),
|
|
539
|
-
}).transform((v) => {
|
|
540
|
-
return remap$(v, {
|
|
541
|
-
contextLength: "context_length",
|
|
542
|
-
maxCompletionTokens: "max_completion_tokens",
|
|
543
|
-
isModerated: "is_moderated",
|
|
544
|
-
});
|
|
545
|
-
});
|
|
546
|
-
/**
|
|
547
|
-
* @internal
|
|
548
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
549
|
-
*/
|
|
550
|
-
export var ListUserModelsTopProvider$;
|
|
551
|
-
(function (ListUserModelsTopProvider$) {
|
|
552
|
-
/** @deprecated use `ListUserModelsTopProvider$inboundSchema` instead. */
|
|
553
|
-
ListUserModelsTopProvider$.inboundSchema = ListUserModelsTopProvider$inboundSchema;
|
|
554
|
-
/** @deprecated use `ListUserModelsTopProvider$outboundSchema` instead. */
|
|
555
|
-
ListUserModelsTopProvider$.outboundSchema = ListUserModelsTopProvider$outboundSchema;
|
|
556
|
-
})(ListUserModelsTopProvider$ || (ListUserModelsTopProvider$ = {}));
|
|
557
|
-
export function listUserModelsTopProviderToJSON(listUserModelsTopProvider) {
|
|
558
|
-
return JSON.stringify(ListUserModelsTopProvider$outboundSchema.parse(listUserModelsTopProvider));
|
|
559
|
-
}
|
|
560
|
-
export function listUserModelsTopProviderFromJSON(jsonString) {
|
|
561
|
-
return safeParse(jsonString, (x) => ListUserModelsTopProvider$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsTopProvider' from JSON`);
|
|
562
|
-
}
|
|
563
|
-
/** @internal */
|
|
564
|
-
export const ListUserModelsPerRequestLimits$inboundSchema = z.object({
|
|
565
|
-
prompt_tokens: z.any().optional(),
|
|
566
|
-
completion_tokens: z.any().optional(),
|
|
567
|
-
}).transform((v) => {
|
|
568
|
-
return remap$(v, {
|
|
569
|
-
"prompt_tokens": "promptTokens",
|
|
570
|
-
"completion_tokens": "completionTokens",
|
|
571
|
-
});
|
|
572
|
-
});
|
|
573
|
-
/** @internal */
|
|
574
|
-
export const ListUserModelsPerRequestLimits$outboundSchema = z.object({
|
|
575
|
-
promptTokens: z.any().optional(),
|
|
576
|
-
completionTokens: z.any().optional(),
|
|
577
|
-
}).transform((v) => {
|
|
578
|
-
return remap$(v, {
|
|
579
|
-
promptTokens: "prompt_tokens",
|
|
580
|
-
completionTokens: "completion_tokens",
|
|
581
|
-
});
|
|
582
|
-
});
|
|
583
|
-
/**
|
|
584
|
-
* @internal
|
|
585
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
586
|
-
*/
|
|
587
|
-
export var ListUserModelsPerRequestLimits$;
|
|
588
|
-
(function (ListUserModelsPerRequestLimits$) {
|
|
589
|
-
/** @deprecated use `ListUserModelsPerRequestLimits$inboundSchema` instead. */
|
|
590
|
-
ListUserModelsPerRequestLimits$.inboundSchema = ListUserModelsPerRequestLimits$inboundSchema;
|
|
591
|
-
/** @deprecated use `ListUserModelsPerRequestLimits$outboundSchema` instead. */
|
|
592
|
-
ListUserModelsPerRequestLimits$.outboundSchema = ListUserModelsPerRequestLimits$outboundSchema;
|
|
593
|
-
})(ListUserModelsPerRequestLimits$ || (ListUserModelsPerRequestLimits$ = {}));
|
|
594
|
-
export function listUserModelsPerRequestLimitsToJSON(listUserModelsPerRequestLimits) {
|
|
595
|
-
return JSON.stringify(ListUserModelsPerRequestLimits$outboundSchema.parse(listUserModelsPerRequestLimits));
|
|
596
|
-
}
|
|
597
|
-
export function listUserModelsPerRequestLimitsFromJSON(jsonString) {
|
|
598
|
-
return safeParse(jsonString, (x) => ListUserModelsPerRequestLimits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsPerRequestLimits' from JSON`);
|
|
599
|
-
}
|
|
600
|
-
/** @internal */
|
|
601
|
-
export const ListUserModelsSupportedParameter$inboundSchema = z.nativeEnum(ListUserModelsSupportedParameter);
|
|
602
|
-
/** @internal */
|
|
603
|
-
export const ListUserModelsSupportedParameter$outboundSchema = ListUserModelsSupportedParameter$inboundSchema;
|
|
604
|
-
/**
|
|
605
|
-
* @internal
|
|
606
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
607
|
-
*/
|
|
608
|
-
export var ListUserModelsSupportedParameter$;
|
|
609
|
-
(function (ListUserModelsSupportedParameter$) {
|
|
610
|
-
/** @deprecated use `ListUserModelsSupportedParameter$inboundSchema` instead. */
|
|
611
|
-
ListUserModelsSupportedParameter$.inboundSchema = ListUserModelsSupportedParameter$inboundSchema;
|
|
612
|
-
/** @deprecated use `ListUserModelsSupportedParameter$outboundSchema` instead. */
|
|
613
|
-
ListUserModelsSupportedParameter$.outboundSchema = ListUserModelsSupportedParameter$outboundSchema;
|
|
614
|
-
})(ListUserModelsSupportedParameter$ || (ListUserModelsSupportedParameter$ = {}));
|
|
615
|
-
/** @internal */
|
|
616
|
-
export const ListUserModelsDefaultParameters$inboundSchema = z.object({
|
|
617
|
-
temperature: z.nullable(z.number()).optional(),
|
|
618
|
-
top_p: z.nullable(z.number()).optional(),
|
|
619
|
-
frequency_penalty: z.nullable(z.number()).optional(),
|
|
620
|
-
}).transform((v) => {
|
|
621
|
-
return remap$(v, {
|
|
622
|
-
"top_p": "topP",
|
|
623
|
-
"frequency_penalty": "frequencyPenalty",
|
|
624
|
-
});
|
|
625
|
-
});
|
|
626
|
-
/** @internal */
|
|
627
|
-
export const ListUserModelsDefaultParameters$outboundSchema = z.object({
|
|
628
|
-
temperature: z.nullable(z.number()).optional(),
|
|
629
|
-
topP: z.nullable(z.number()).optional(),
|
|
630
|
-
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
631
|
-
}).transform((v) => {
|
|
632
|
-
return remap$(v, {
|
|
633
|
-
topP: "top_p",
|
|
634
|
-
frequencyPenalty: "frequency_penalty",
|
|
635
|
-
});
|
|
636
|
-
});
|
|
637
|
-
/**
|
|
638
|
-
* @internal
|
|
639
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
640
|
-
*/
|
|
641
|
-
export var ListUserModelsDefaultParameters$;
|
|
642
|
-
(function (ListUserModelsDefaultParameters$) {
|
|
643
|
-
/** @deprecated use `ListUserModelsDefaultParameters$inboundSchema` instead. */
|
|
644
|
-
ListUserModelsDefaultParameters$.inboundSchema = ListUserModelsDefaultParameters$inboundSchema;
|
|
645
|
-
/** @deprecated use `ListUserModelsDefaultParameters$outboundSchema` instead. */
|
|
646
|
-
ListUserModelsDefaultParameters$.outboundSchema = ListUserModelsDefaultParameters$outboundSchema;
|
|
647
|
-
})(ListUserModelsDefaultParameters$ || (ListUserModelsDefaultParameters$ = {}));
|
|
648
|
-
export function listUserModelsDefaultParametersToJSON(listUserModelsDefaultParameters) {
|
|
649
|
-
return JSON.stringify(ListUserModelsDefaultParameters$outboundSchema.parse(listUserModelsDefaultParameters));
|
|
650
|
-
}
|
|
651
|
-
export function listUserModelsDefaultParametersFromJSON(jsonString) {
|
|
652
|
-
return safeParse(jsonString, (x) => ListUserModelsDefaultParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsDefaultParameters' from JSON`);
|
|
653
|
-
}
|
|
654
|
-
/** @internal */
|
|
655
|
-
export const ListUserModelsData$inboundSchema = z.object({
|
|
656
|
-
id: z.string(),
|
|
657
|
-
canonical_slug: z.string(),
|
|
658
|
-
hugging_face_id: z.nullable(z.string()).optional(),
|
|
659
|
-
name: z.string(),
|
|
660
|
-
created: z.number(),
|
|
661
|
-
description: z.string().optional(),
|
|
662
|
-
pricing: z.lazy(() => ListUserModelsPricing$inboundSchema),
|
|
663
|
-
context_length: z.nullable(z.number()),
|
|
664
|
-
architecture: z.lazy(() => ListUserModelsArchitecture$inboundSchema),
|
|
665
|
-
top_provider: z.lazy(() => ListUserModelsTopProvider$inboundSchema),
|
|
666
|
-
per_request_limits: z.nullable(z.lazy(() => ListUserModelsPerRequestLimits$inboundSchema)),
|
|
667
|
-
supported_parameters: z.array(ListUserModelsSupportedParameter$inboundSchema),
|
|
668
|
-
default_parameters: z.nullable(z.lazy(() => ListUserModelsDefaultParameters$inboundSchema)),
|
|
669
|
-
}).transform((v) => {
|
|
670
|
-
return remap$(v, {
|
|
671
|
-
"canonical_slug": "canonicalSlug",
|
|
672
|
-
"hugging_face_id": "huggingFaceId",
|
|
673
|
-
"context_length": "contextLength",
|
|
674
|
-
"top_provider": "topProvider",
|
|
675
|
-
"per_request_limits": "perRequestLimits",
|
|
676
|
-
"supported_parameters": "supportedParameters",
|
|
677
|
-
"default_parameters": "defaultParameters",
|
|
678
|
-
});
|
|
679
|
-
});
|
|
680
|
-
/** @internal */
|
|
681
|
-
export const ListUserModelsData$outboundSchema = z.object({
|
|
682
|
-
id: z.string(),
|
|
683
|
-
canonicalSlug: z.string(),
|
|
684
|
-
huggingFaceId: z.nullable(z.string()).optional(),
|
|
685
|
-
name: z.string(),
|
|
686
|
-
created: z.number(),
|
|
687
|
-
description: z.string().optional(),
|
|
688
|
-
pricing: z.lazy(() => ListUserModelsPricing$outboundSchema),
|
|
689
|
-
contextLength: z.nullable(z.number()),
|
|
690
|
-
architecture: z.lazy(() => ListUserModelsArchitecture$outboundSchema),
|
|
691
|
-
topProvider: z.lazy(() => ListUserModelsTopProvider$outboundSchema),
|
|
692
|
-
perRequestLimits: z.nullable(z.lazy(() => ListUserModelsPerRequestLimits$outboundSchema)),
|
|
693
|
-
supportedParameters: z.array(ListUserModelsSupportedParameter$outboundSchema),
|
|
694
|
-
defaultParameters: z.nullable(z.lazy(() => ListUserModelsDefaultParameters$outboundSchema)),
|
|
695
|
-
}).transform((v) => {
|
|
696
|
-
return remap$(v, {
|
|
697
|
-
canonicalSlug: "canonical_slug",
|
|
698
|
-
huggingFaceId: "hugging_face_id",
|
|
699
|
-
contextLength: "context_length",
|
|
700
|
-
topProvider: "top_provider",
|
|
701
|
-
perRequestLimits: "per_request_limits",
|
|
702
|
-
supportedParameters: "supported_parameters",
|
|
703
|
-
defaultParameters: "default_parameters",
|
|
704
|
-
});
|
|
705
|
-
});
|
|
706
|
-
/**
|
|
707
|
-
* @internal
|
|
708
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
709
|
-
*/
|
|
710
|
-
export var ListUserModelsData$;
|
|
711
|
-
(function (ListUserModelsData$) {
|
|
712
|
-
/** @deprecated use `ListUserModelsData$inboundSchema` instead. */
|
|
713
|
-
ListUserModelsData$.inboundSchema = ListUserModelsData$inboundSchema;
|
|
714
|
-
/** @deprecated use `ListUserModelsData$outboundSchema` instead. */
|
|
715
|
-
ListUserModelsData$.outboundSchema = ListUserModelsData$outboundSchema;
|
|
716
|
-
})(ListUserModelsData$ || (ListUserModelsData$ = {}));
|
|
717
|
-
export function listUserModelsDataToJSON(listUserModelsData) {
|
|
718
|
-
return JSON.stringify(ListUserModelsData$outboundSchema.parse(listUserModelsData));
|
|
719
|
-
}
|
|
720
|
-
export function listUserModelsDataFromJSON(jsonString) {
|
|
721
|
-
return safeParse(jsonString, (x) => ListUserModelsData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListUserModelsData' from JSON`);
|
|
722
|
-
}
|
|
723
|
-
/** @internal */
|
|
724
33
|
export const ListUserModelsResponse$inboundSchema = z.object({
|
|
725
|
-
data: z.array(
|
|
34
|
+
data: z.array(models.ModelsList$inboundSchema),
|
|
726
35
|
});
|
|
727
36
|
/** @internal */
|
|
728
37
|
export const ListUserModelsResponse$outboundSchema = z.object({
|
|
729
|
-
data: z.array(
|
|
38
|
+
data: z.array(models.ModelsList$outboundSchema),
|
|
730
39
|
});
|
|
731
40
|
/**
|
|
732
41
|
* @internal
|