@orq-ai/node 3.8.0-rc.32 → 3.8.0-rc.34
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 +19 -3
- package/README.md +165 -91
- package/bin/mcp-server.js +218 -1588
- package/bin/mcp-server.js.map +32 -38
- package/docs/sdks/knowledge/README.md +1 -1
- package/docs/sdks/orq/README.md +0 -138
- package/funcs/knowledgeCreateChunks.d.ts +1 -1
- package/funcs/knowledgeCreateChunks.d.ts.map +1 -1
- package/funcs/knowledgeCreateChunks.js +1 -1
- package/funcs/knowledgeCreateChunks.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +1 -5
- package/mcp-server/server.js.map +1 -1
- package/models/operations/createchunk.d.ts +28 -28
- package/models/operations/createchunk.d.ts.map +1 -1
- package/models/operations/createchunk.js +33 -35
- package/models/operations/createchunk.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/deploymentgetconfig.d.ts +15 -15
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +18 -18
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +0 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/sdk/knowledge.d.ts +1 -1
- package/sdk/knowledge.d.ts.map +1 -1
- package/sdk/sdk.d.ts +1 -16
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -21
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/knowledgeCreateChunks.ts +4 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -5
- package/src/models/operations/createchunk.ts +44 -54
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/deploymentgetconfig.ts +24 -30
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +0 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/src/sdk/knowledge.ts +1 -1
- package/src/sdk/sdk.ts +1 -37
- package/funcs/getV2ModelsLitellmModels.d.ts +0 -17
- package/funcs/getV2ModelsLitellmModels.d.ts.map +0 -1
- package/funcs/getV2ModelsLitellmModels.js +0 -105
- package/funcs/getV2ModelsLitellmModels.js.map +0 -1
- package/funcs/postV2ModelsLitellmImport.d.ts +0 -17
- package/funcs/postV2ModelsLitellmImport.d.ts.map +0 -1
- package/funcs/postV2ModelsLitellmImport.js +0 -117
- package/funcs/postV2ModelsLitellmImport.js.map +0 -1
- package/mcp-server/tools/getV2ModelsLitellmModels.d.ts +0 -3
- package/mcp-server/tools/getV2ModelsLitellmModels.d.ts.map +0 -1
- package/mcp-server/tools/getV2ModelsLitellmModels.js +0 -26
- package/mcp-server/tools/getV2ModelsLitellmModels.js.map +0 -1
- package/mcp-server/tools/postV2ModelsLitellmImport.d.ts +0 -9
- package/mcp-server/tools/postV2ModelsLitellmImport.d.ts.map +0 -1
- package/mcp-server/tools/postV2ModelsLitellmImport.js +0 -65
- package/mcp-server/tools/postV2ModelsLitellmImport.js.map +0 -1
- package/models/operations/getv2modelslitellmmodels.d.ts +0 -185
- package/models/operations/getv2modelslitellmmodels.d.ts.map +0 -1
- package/models/operations/getv2modelslitellmmodels.js +0 -349
- package/models/operations/getv2modelslitellmmodels.js.map +0 -1
- package/models/operations/postv2modelslitellmimport.d.ts +0 -1333
- package/models/operations/postv2modelslitellmimport.d.ts.map +0 -1
- package/models/operations/postv2modelslitellmimport.js +0 -1400
- package/models/operations/postv2modelslitellmimport.js.map +0 -1
- package/src/funcs/getV2ModelsLitellmModels.ts +0 -143
- package/src/funcs/postV2ModelsLitellmImport.ts +0 -167
- package/src/mcp-server/tools/getV2ModelsLitellmModels.ts +0 -30
- package/src/mcp-server/tools/postV2ModelsLitellmImport.ts +0 -38
- package/src/models/operations/getv2modelslitellmmodels.ts +0 -530
- package/src/models/operations/postv2modelslitellmimport.ts +0 -2408
|
@@ -1,530 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type GetV2ModelsLitellmModelsLitellmParams = {
|
|
12
|
-
useInPassThrough: boolean;
|
|
13
|
-
useLitellmProxy: boolean;
|
|
14
|
-
mergeReasoningContentInChoices: boolean;
|
|
15
|
-
model: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export type GetV2ModelsLitellmModelsModelInfo = {
|
|
19
|
-
id: string | null;
|
|
20
|
-
dbModel: boolean | null;
|
|
21
|
-
key: string | null;
|
|
22
|
-
maxTokens?: number | null | undefined;
|
|
23
|
-
maxInputTokens?: number | null | undefined;
|
|
24
|
-
maxOutputTokens?: number | null | undefined;
|
|
25
|
-
inputCostPerToken?: number | null | undefined;
|
|
26
|
-
cacheCreationInputTokenCost?: number | null | undefined;
|
|
27
|
-
cacheReadInputTokenCost?: number | null | undefined;
|
|
28
|
-
inputCostPerCharacter?: number | null | undefined;
|
|
29
|
-
inputCostPerTokenAbove128kTokens?: number | null | undefined;
|
|
30
|
-
inputCostPerTokenAbove200kTokens?: number | null | undefined;
|
|
31
|
-
inputCostPerQuery?: number | null | undefined;
|
|
32
|
-
inputCostPerSecond?: number | null | undefined;
|
|
33
|
-
inputCostPerAudioToken?: number | null | undefined;
|
|
34
|
-
inputCostPerTokenBatches?: number | null | undefined;
|
|
35
|
-
outputCostPerTokenBatches?: number | null | undefined;
|
|
36
|
-
outputCostPerToken?: number | null | undefined;
|
|
37
|
-
outputCostPerAudioToken?: number | null | undefined;
|
|
38
|
-
outputCostPerCharacter?: number | null | undefined;
|
|
39
|
-
outputCostPerReasoningToken?: number | null | undefined;
|
|
40
|
-
outputCostPerTokenAbove128kTokens?: number | null | undefined;
|
|
41
|
-
outputCostPerCharacterAbove128kTokens?: number | null | undefined;
|
|
42
|
-
outputCostPerTokenAbove200kTokens?: number | null | undefined;
|
|
43
|
-
outputCostPerSecond?: number | null | undefined;
|
|
44
|
-
outputCostPerImage?: number | null | undefined;
|
|
45
|
-
outputVectorSize?: number | null | undefined;
|
|
46
|
-
litellmProvider: string | null;
|
|
47
|
-
mode: string | null;
|
|
48
|
-
supportsSystemMessages?: boolean | null | undefined;
|
|
49
|
-
supportsResponseSchema?: boolean | null | undefined;
|
|
50
|
-
supportsVision?: boolean | null | undefined;
|
|
51
|
-
supportsFunctionCalling?: boolean | null | undefined;
|
|
52
|
-
supportsToolChoice?: boolean | null | undefined;
|
|
53
|
-
supportsAssistantPrefill?: boolean | null | undefined;
|
|
54
|
-
supportsPromptCaching?: boolean | null | undefined;
|
|
55
|
-
supportsAudioInput?: boolean | null | undefined;
|
|
56
|
-
supportsAudioOutput?: boolean | null | undefined;
|
|
57
|
-
supportsPdfInput?: boolean | null | undefined;
|
|
58
|
-
supportsEmbeddingImageInput?: boolean | null | undefined;
|
|
59
|
-
supportsNativeStreaming?: boolean | null | undefined;
|
|
60
|
-
supportsWebSearch?: boolean | null | undefined;
|
|
61
|
-
supportsUrlContext?: boolean | null | undefined;
|
|
62
|
-
supportsReasoning?: boolean | null | undefined;
|
|
63
|
-
supportsComputerUse?: boolean | null | undefined;
|
|
64
|
-
searchContextCostPerQuery?: number | null | undefined;
|
|
65
|
-
tpm?: number | null | undefined;
|
|
66
|
-
rpm?: number | null | undefined;
|
|
67
|
-
supportedOpenaiParams?: Array<string> | null | undefined;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export type ResponseBody = {
|
|
71
|
-
modelName: string;
|
|
72
|
-
litellmParams: GetV2ModelsLitellmModelsLitellmParams;
|
|
73
|
-
modelInfo: GetV2ModelsLitellmModelsModelInfo;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
/** @internal */
|
|
77
|
-
export const GetV2ModelsLitellmModelsLitellmParams$inboundSchema: z.ZodType<
|
|
78
|
-
GetV2ModelsLitellmModelsLitellmParams,
|
|
79
|
-
z.ZodTypeDef,
|
|
80
|
-
unknown
|
|
81
|
-
> = z.object({
|
|
82
|
-
use_in_pass_through: z.boolean(),
|
|
83
|
-
use_litellm_proxy: z.boolean(),
|
|
84
|
-
merge_reasoning_content_in_choices: z.boolean(),
|
|
85
|
-
model: z.string(),
|
|
86
|
-
}).transform((v) => {
|
|
87
|
-
return remap$(v, {
|
|
88
|
-
"use_in_pass_through": "useInPassThrough",
|
|
89
|
-
"use_litellm_proxy": "useLitellmProxy",
|
|
90
|
-
"merge_reasoning_content_in_choices": "mergeReasoningContentInChoices",
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
/** @internal */
|
|
95
|
-
export type GetV2ModelsLitellmModelsLitellmParams$Outbound = {
|
|
96
|
-
use_in_pass_through: boolean;
|
|
97
|
-
use_litellm_proxy: boolean;
|
|
98
|
-
merge_reasoning_content_in_choices: boolean;
|
|
99
|
-
model: string;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
/** @internal */
|
|
103
|
-
export const GetV2ModelsLitellmModelsLitellmParams$outboundSchema: z.ZodType<
|
|
104
|
-
GetV2ModelsLitellmModelsLitellmParams$Outbound,
|
|
105
|
-
z.ZodTypeDef,
|
|
106
|
-
GetV2ModelsLitellmModelsLitellmParams
|
|
107
|
-
> = z.object({
|
|
108
|
-
useInPassThrough: z.boolean(),
|
|
109
|
-
useLitellmProxy: z.boolean(),
|
|
110
|
-
mergeReasoningContentInChoices: z.boolean(),
|
|
111
|
-
model: z.string(),
|
|
112
|
-
}).transform((v) => {
|
|
113
|
-
return remap$(v, {
|
|
114
|
-
useInPassThrough: "use_in_pass_through",
|
|
115
|
-
useLitellmProxy: "use_litellm_proxy",
|
|
116
|
-
mergeReasoningContentInChoices: "merge_reasoning_content_in_choices",
|
|
117
|
-
});
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* @internal
|
|
122
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
123
|
-
*/
|
|
124
|
-
export namespace GetV2ModelsLitellmModelsLitellmParams$ {
|
|
125
|
-
/** @deprecated use `GetV2ModelsLitellmModelsLitellmParams$inboundSchema` instead. */
|
|
126
|
-
export const inboundSchema =
|
|
127
|
-
GetV2ModelsLitellmModelsLitellmParams$inboundSchema;
|
|
128
|
-
/** @deprecated use `GetV2ModelsLitellmModelsLitellmParams$outboundSchema` instead. */
|
|
129
|
-
export const outboundSchema =
|
|
130
|
-
GetV2ModelsLitellmModelsLitellmParams$outboundSchema;
|
|
131
|
-
/** @deprecated use `GetV2ModelsLitellmModelsLitellmParams$Outbound` instead. */
|
|
132
|
-
export type Outbound = GetV2ModelsLitellmModelsLitellmParams$Outbound;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export function getV2ModelsLitellmModelsLitellmParamsToJSON(
|
|
136
|
-
getV2ModelsLitellmModelsLitellmParams: GetV2ModelsLitellmModelsLitellmParams,
|
|
137
|
-
): string {
|
|
138
|
-
return JSON.stringify(
|
|
139
|
-
GetV2ModelsLitellmModelsLitellmParams$outboundSchema.parse(
|
|
140
|
-
getV2ModelsLitellmModelsLitellmParams,
|
|
141
|
-
),
|
|
142
|
-
);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export function getV2ModelsLitellmModelsLitellmParamsFromJSON(
|
|
146
|
-
jsonString: string,
|
|
147
|
-
): SafeParseResult<GetV2ModelsLitellmModelsLitellmParams, SDKValidationError> {
|
|
148
|
-
return safeParse(
|
|
149
|
-
jsonString,
|
|
150
|
-
(x) =>
|
|
151
|
-
GetV2ModelsLitellmModelsLitellmParams$inboundSchema.parse(JSON.parse(x)),
|
|
152
|
-
`Failed to parse 'GetV2ModelsLitellmModelsLitellmParams' from JSON`,
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/** @internal */
|
|
157
|
-
export const GetV2ModelsLitellmModelsModelInfo$inboundSchema: z.ZodType<
|
|
158
|
-
GetV2ModelsLitellmModelsModelInfo,
|
|
159
|
-
z.ZodTypeDef,
|
|
160
|
-
unknown
|
|
161
|
-
> = z.object({
|
|
162
|
-
id: z.nullable(z.string()),
|
|
163
|
-
db_model: z.nullable(z.boolean()),
|
|
164
|
-
key: z.nullable(z.string()),
|
|
165
|
-
max_tokens: z.nullable(z.number()).optional(),
|
|
166
|
-
max_input_tokens: z.nullable(z.number()).optional(),
|
|
167
|
-
max_output_tokens: z.nullable(z.number()).optional(),
|
|
168
|
-
input_cost_per_token: z.nullable(z.number()).optional(),
|
|
169
|
-
cache_creation_input_token_cost: z.nullable(z.number()).optional(),
|
|
170
|
-
cache_read_input_token_cost: z.nullable(z.number()).optional(),
|
|
171
|
-
input_cost_per_character: z.nullable(z.number()).optional(),
|
|
172
|
-
input_cost_per_token_above_128k_tokens: z.nullable(z.number()).optional(),
|
|
173
|
-
input_cost_per_token_above_200k_tokens: z.nullable(z.number()).optional(),
|
|
174
|
-
input_cost_per_query: z.nullable(z.number()).optional(),
|
|
175
|
-
input_cost_per_second: z.nullable(z.number()).optional(),
|
|
176
|
-
input_cost_per_audio_token: z.nullable(z.number()).optional(),
|
|
177
|
-
input_cost_per_token_batches: z.nullable(z.number()).optional(),
|
|
178
|
-
output_cost_per_token_batches: z.nullable(z.number()).optional(),
|
|
179
|
-
output_cost_per_token: z.nullable(z.number()).optional(),
|
|
180
|
-
output_cost_per_audio_token: z.nullable(z.number()).optional(),
|
|
181
|
-
output_cost_per_character: z.nullable(z.number()).optional(),
|
|
182
|
-
output_cost_per_reasoning_token: z.nullable(z.number()).optional(),
|
|
183
|
-
output_cost_per_token_above_128k_tokens: z.nullable(z.number()).optional(),
|
|
184
|
-
output_cost_per_character_above_128k_tokens: z.nullable(z.number())
|
|
185
|
-
.optional(),
|
|
186
|
-
output_cost_per_token_above_200k_tokens: z.nullable(z.number()).optional(),
|
|
187
|
-
output_cost_per_second: z.nullable(z.number()).optional(),
|
|
188
|
-
output_cost_per_image: z.nullable(z.number()).optional(),
|
|
189
|
-
output_vector_size: z.nullable(z.number()).optional(),
|
|
190
|
-
litellm_provider: z.nullable(z.string()),
|
|
191
|
-
mode: z.nullable(z.string()),
|
|
192
|
-
supports_system_messages: z.nullable(z.boolean()).optional(),
|
|
193
|
-
supports_response_schema: z.nullable(z.boolean()).optional(),
|
|
194
|
-
supports_vision: z.nullable(z.boolean()).optional(),
|
|
195
|
-
supports_function_calling: z.nullable(z.boolean()).optional(),
|
|
196
|
-
supports_tool_choice: z.nullable(z.boolean()).optional(),
|
|
197
|
-
supports_assistant_prefill: z.nullable(z.boolean()).optional(),
|
|
198
|
-
supports_prompt_caching: z.nullable(z.boolean()).optional(),
|
|
199
|
-
supports_audio_input: z.nullable(z.boolean()).optional(),
|
|
200
|
-
supports_audio_output: z.nullable(z.boolean()).optional(),
|
|
201
|
-
supports_pdf_input: z.nullable(z.boolean()).optional(),
|
|
202
|
-
supports_embedding_image_input: z.nullable(z.boolean()).optional(),
|
|
203
|
-
supports_native_streaming: z.nullable(z.boolean()).optional(),
|
|
204
|
-
supports_web_search: z.nullable(z.boolean()).optional(),
|
|
205
|
-
supports_url_context: z.nullable(z.boolean()).optional(),
|
|
206
|
-
supports_reasoning: z.nullable(z.boolean()).optional(),
|
|
207
|
-
supports_computer_use: z.nullable(z.boolean()).optional(),
|
|
208
|
-
search_context_cost_per_query: z.nullable(z.number()).optional(),
|
|
209
|
-
tpm: z.nullable(z.number()).optional(),
|
|
210
|
-
rpm: z.nullable(z.number()).optional(),
|
|
211
|
-
supported_openai_params: z.nullable(z.array(z.string())).optional(),
|
|
212
|
-
}).transform((v) => {
|
|
213
|
-
return remap$(v, {
|
|
214
|
-
"db_model": "dbModel",
|
|
215
|
-
"max_tokens": "maxTokens",
|
|
216
|
-
"max_input_tokens": "maxInputTokens",
|
|
217
|
-
"max_output_tokens": "maxOutputTokens",
|
|
218
|
-
"input_cost_per_token": "inputCostPerToken",
|
|
219
|
-
"cache_creation_input_token_cost": "cacheCreationInputTokenCost",
|
|
220
|
-
"cache_read_input_token_cost": "cacheReadInputTokenCost",
|
|
221
|
-
"input_cost_per_character": "inputCostPerCharacter",
|
|
222
|
-
"input_cost_per_token_above_128k_tokens":
|
|
223
|
-
"inputCostPerTokenAbove128kTokens",
|
|
224
|
-
"input_cost_per_token_above_200k_tokens":
|
|
225
|
-
"inputCostPerTokenAbove200kTokens",
|
|
226
|
-
"input_cost_per_query": "inputCostPerQuery",
|
|
227
|
-
"input_cost_per_second": "inputCostPerSecond",
|
|
228
|
-
"input_cost_per_audio_token": "inputCostPerAudioToken",
|
|
229
|
-
"input_cost_per_token_batches": "inputCostPerTokenBatches",
|
|
230
|
-
"output_cost_per_token_batches": "outputCostPerTokenBatches",
|
|
231
|
-
"output_cost_per_token": "outputCostPerToken",
|
|
232
|
-
"output_cost_per_audio_token": "outputCostPerAudioToken",
|
|
233
|
-
"output_cost_per_character": "outputCostPerCharacter",
|
|
234
|
-
"output_cost_per_reasoning_token": "outputCostPerReasoningToken",
|
|
235
|
-
"output_cost_per_token_above_128k_tokens":
|
|
236
|
-
"outputCostPerTokenAbove128kTokens",
|
|
237
|
-
"output_cost_per_character_above_128k_tokens":
|
|
238
|
-
"outputCostPerCharacterAbove128kTokens",
|
|
239
|
-
"output_cost_per_token_above_200k_tokens":
|
|
240
|
-
"outputCostPerTokenAbove200kTokens",
|
|
241
|
-
"output_cost_per_second": "outputCostPerSecond",
|
|
242
|
-
"output_cost_per_image": "outputCostPerImage",
|
|
243
|
-
"output_vector_size": "outputVectorSize",
|
|
244
|
-
"litellm_provider": "litellmProvider",
|
|
245
|
-
"supports_system_messages": "supportsSystemMessages",
|
|
246
|
-
"supports_response_schema": "supportsResponseSchema",
|
|
247
|
-
"supports_vision": "supportsVision",
|
|
248
|
-
"supports_function_calling": "supportsFunctionCalling",
|
|
249
|
-
"supports_tool_choice": "supportsToolChoice",
|
|
250
|
-
"supports_assistant_prefill": "supportsAssistantPrefill",
|
|
251
|
-
"supports_prompt_caching": "supportsPromptCaching",
|
|
252
|
-
"supports_audio_input": "supportsAudioInput",
|
|
253
|
-
"supports_audio_output": "supportsAudioOutput",
|
|
254
|
-
"supports_pdf_input": "supportsPdfInput",
|
|
255
|
-
"supports_embedding_image_input": "supportsEmbeddingImageInput",
|
|
256
|
-
"supports_native_streaming": "supportsNativeStreaming",
|
|
257
|
-
"supports_web_search": "supportsWebSearch",
|
|
258
|
-
"supports_url_context": "supportsUrlContext",
|
|
259
|
-
"supports_reasoning": "supportsReasoning",
|
|
260
|
-
"supports_computer_use": "supportsComputerUse",
|
|
261
|
-
"search_context_cost_per_query": "searchContextCostPerQuery",
|
|
262
|
-
"supported_openai_params": "supportedOpenaiParams",
|
|
263
|
-
});
|
|
264
|
-
});
|
|
265
|
-
|
|
266
|
-
/** @internal */
|
|
267
|
-
export type GetV2ModelsLitellmModelsModelInfo$Outbound = {
|
|
268
|
-
id: string | null;
|
|
269
|
-
db_model: boolean | null;
|
|
270
|
-
key: string | null;
|
|
271
|
-
max_tokens?: number | null | undefined;
|
|
272
|
-
max_input_tokens?: number | null | undefined;
|
|
273
|
-
max_output_tokens?: number | null | undefined;
|
|
274
|
-
input_cost_per_token?: number | null | undefined;
|
|
275
|
-
cache_creation_input_token_cost?: number | null | undefined;
|
|
276
|
-
cache_read_input_token_cost?: number | null | undefined;
|
|
277
|
-
input_cost_per_character?: number | null | undefined;
|
|
278
|
-
input_cost_per_token_above_128k_tokens?: number | null | undefined;
|
|
279
|
-
input_cost_per_token_above_200k_tokens?: number | null | undefined;
|
|
280
|
-
input_cost_per_query?: number | null | undefined;
|
|
281
|
-
input_cost_per_second?: number | null | undefined;
|
|
282
|
-
input_cost_per_audio_token?: number | null | undefined;
|
|
283
|
-
input_cost_per_token_batches?: number | null | undefined;
|
|
284
|
-
output_cost_per_token_batches?: number | null | undefined;
|
|
285
|
-
output_cost_per_token?: number | null | undefined;
|
|
286
|
-
output_cost_per_audio_token?: number | null | undefined;
|
|
287
|
-
output_cost_per_character?: number | null | undefined;
|
|
288
|
-
output_cost_per_reasoning_token?: number | null | undefined;
|
|
289
|
-
output_cost_per_token_above_128k_tokens?: number | null | undefined;
|
|
290
|
-
output_cost_per_character_above_128k_tokens?: number | null | undefined;
|
|
291
|
-
output_cost_per_token_above_200k_tokens?: number | null | undefined;
|
|
292
|
-
output_cost_per_second?: number | null | undefined;
|
|
293
|
-
output_cost_per_image?: number | null | undefined;
|
|
294
|
-
output_vector_size?: number | null | undefined;
|
|
295
|
-
litellm_provider: string | null;
|
|
296
|
-
mode: string | null;
|
|
297
|
-
supports_system_messages?: boolean | null | undefined;
|
|
298
|
-
supports_response_schema?: boolean | null | undefined;
|
|
299
|
-
supports_vision?: boolean | null | undefined;
|
|
300
|
-
supports_function_calling?: boolean | null | undefined;
|
|
301
|
-
supports_tool_choice?: boolean | null | undefined;
|
|
302
|
-
supports_assistant_prefill?: boolean | null | undefined;
|
|
303
|
-
supports_prompt_caching?: boolean | null | undefined;
|
|
304
|
-
supports_audio_input?: boolean | null | undefined;
|
|
305
|
-
supports_audio_output?: boolean | null | undefined;
|
|
306
|
-
supports_pdf_input?: boolean | null | undefined;
|
|
307
|
-
supports_embedding_image_input?: boolean | null | undefined;
|
|
308
|
-
supports_native_streaming?: boolean | null | undefined;
|
|
309
|
-
supports_web_search?: boolean | null | undefined;
|
|
310
|
-
supports_url_context?: boolean | null | undefined;
|
|
311
|
-
supports_reasoning?: boolean | null | undefined;
|
|
312
|
-
supports_computer_use?: boolean | null | undefined;
|
|
313
|
-
search_context_cost_per_query?: number | null | undefined;
|
|
314
|
-
tpm?: number | null | undefined;
|
|
315
|
-
rpm?: number | null | undefined;
|
|
316
|
-
supported_openai_params?: Array<string> | null | undefined;
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
/** @internal */
|
|
320
|
-
export const GetV2ModelsLitellmModelsModelInfo$outboundSchema: z.ZodType<
|
|
321
|
-
GetV2ModelsLitellmModelsModelInfo$Outbound,
|
|
322
|
-
z.ZodTypeDef,
|
|
323
|
-
GetV2ModelsLitellmModelsModelInfo
|
|
324
|
-
> = z.object({
|
|
325
|
-
id: z.nullable(z.string()),
|
|
326
|
-
dbModel: z.nullable(z.boolean()),
|
|
327
|
-
key: z.nullable(z.string()),
|
|
328
|
-
maxTokens: z.nullable(z.number()).optional(),
|
|
329
|
-
maxInputTokens: z.nullable(z.number()).optional(),
|
|
330
|
-
maxOutputTokens: z.nullable(z.number()).optional(),
|
|
331
|
-
inputCostPerToken: z.nullable(z.number()).optional(),
|
|
332
|
-
cacheCreationInputTokenCost: z.nullable(z.number()).optional(),
|
|
333
|
-
cacheReadInputTokenCost: z.nullable(z.number()).optional(),
|
|
334
|
-
inputCostPerCharacter: z.nullable(z.number()).optional(),
|
|
335
|
-
inputCostPerTokenAbove128kTokens: z.nullable(z.number()).optional(),
|
|
336
|
-
inputCostPerTokenAbove200kTokens: z.nullable(z.number()).optional(),
|
|
337
|
-
inputCostPerQuery: z.nullable(z.number()).optional(),
|
|
338
|
-
inputCostPerSecond: z.nullable(z.number()).optional(),
|
|
339
|
-
inputCostPerAudioToken: z.nullable(z.number()).optional(),
|
|
340
|
-
inputCostPerTokenBatches: z.nullable(z.number()).optional(),
|
|
341
|
-
outputCostPerTokenBatches: z.nullable(z.number()).optional(),
|
|
342
|
-
outputCostPerToken: z.nullable(z.number()).optional(),
|
|
343
|
-
outputCostPerAudioToken: z.nullable(z.number()).optional(),
|
|
344
|
-
outputCostPerCharacter: z.nullable(z.number()).optional(),
|
|
345
|
-
outputCostPerReasoningToken: z.nullable(z.number()).optional(),
|
|
346
|
-
outputCostPerTokenAbove128kTokens: z.nullable(z.number()).optional(),
|
|
347
|
-
outputCostPerCharacterAbove128kTokens: z.nullable(z.number()).optional(),
|
|
348
|
-
outputCostPerTokenAbove200kTokens: z.nullable(z.number()).optional(),
|
|
349
|
-
outputCostPerSecond: z.nullable(z.number()).optional(),
|
|
350
|
-
outputCostPerImage: z.nullable(z.number()).optional(),
|
|
351
|
-
outputVectorSize: z.nullable(z.number()).optional(),
|
|
352
|
-
litellmProvider: z.nullable(z.string()),
|
|
353
|
-
mode: z.nullable(z.string()),
|
|
354
|
-
supportsSystemMessages: z.nullable(z.boolean()).optional(),
|
|
355
|
-
supportsResponseSchema: z.nullable(z.boolean()).optional(),
|
|
356
|
-
supportsVision: z.nullable(z.boolean()).optional(),
|
|
357
|
-
supportsFunctionCalling: z.nullable(z.boolean()).optional(),
|
|
358
|
-
supportsToolChoice: z.nullable(z.boolean()).optional(),
|
|
359
|
-
supportsAssistantPrefill: z.nullable(z.boolean()).optional(),
|
|
360
|
-
supportsPromptCaching: z.nullable(z.boolean()).optional(),
|
|
361
|
-
supportsAudioInput: z.nullable(z.boolean()).optional(),
|
|
362
|
-
supportsAudioOutput: z.nullable(z.boolean()).optional(),
|
|
363
|
-
supportsPdfInput: z.nullable(z.boolean()).optional(),
|
|
364
|
-
supportsEmbeddingImageInput: z.nullable(z.boolean()).optional(),
|
|
365
|
-
supportsNativeStreaming: z.nullable(z.boolean()).optional(),
|
|
366
|
-
supportsWebSearch: z.nullable(z.boolean()).optional(),
|
|
367
|
-
supportsUrlContext: z.nullable(z.boolean()).optional(),
|
|
368
|
-
supportsReasoning: z.nullable(z.boolean()).optional(),
|
|
369
|
-
supportsComputerUse: z.nullable(z.boolean()).optional(),
|
|
370
|
-
searchContextCostPerQuery: z.nullable(z.number()).optional(),
|
|
371
|
-
tpm: z.nullable(z.number()).optional(),
|
|
372
|
-
rpm: z.nullable(z.number()).optional(),
|
|
373
|
-
supportedOpenaiParams: z.nullable(z.array(z.string())).optional(),
|
|
374
|
-
}).transform((v) => {
|
|
375
|
-
return remap$(v, {
|
|
376
|
-
dbModel: "db_model",
|
|
377
|
-
maxTokens: "max_tokens",
|
|
378
|
-
maxInputTokens: "max_input_tokens",
|
|
379
|
-
maxOutputTokens: "max_output_tokens",
|
|
380
|
-
inputCostPerToken: "input_cost_per_token",
|
|
381
|
-
cacheCreationInputTokenCost: "cache_creation_input_token_cost",
|
|
382
|
-
cacheReadInputTokenCost: "cache_read_input_token_cost",
|
|
383
|
-
inputCostPerCharacter: "input_cost_per_character",
|
|
384
|
-
inputCostPerTokenAbove128kTokens: "input_cost_per_token_above_128k_tokens",
|
|
385
|
-
inputCostPerTokenAbove200kTokens: "input_cost_per_token_above_200k_tokens",
|
|
386
|
-
inputCostPerQuery: "input_cost_per_query",
|
|
387
|
-
inputCostPerSecond: "input_cost_per_second",
|
|
388
|
-
inputCostPerAudioToken: "input_cost_per_audio_token",
|
|
389
|
-
inputCostPerTokenBatches: "input_cost_per_token_batches",
|
|
390
|
-
outputCostPerTokenBatches: "output_cost_per_token_batches",
|
|
391
|
-
outputCostPerToken: "output_cost_per_token",
|
|
392
|
-
outputCostPerAudioToken: "output_cost_per_audio_token",
|
|
393
|
-
outputCostPerCharacter: "output_cost_per_character",
|
|
394
|
-
outputCostPerReasoningToken: "output_cost_per_reasoning_token",
|
|
395
|
-
outputCostPerTokenAbove128kTokens:
|
|
396
|
-
"output_cost_per_token_above_128k_tokens",
|
|
397
|
-
outputCostPerCharacterAbove128kTokens:
|
|
398
|
-
"output_cost_per_character_above_128k_tokens",
|
|
399
|
-
outputCostPerTokenAbove200kTokens:
|
|
400
|
-
"output_cost_per_token_above_200k_tokens",
|
|
401
|
-
outputCostPerSecond: "output_cost_per_second",
|
|
402
|
-
outputCostPerImage: "output_cost_per_image",
|
|
403
|
-
outputVectorSize: "output_vector_size",
|
|
404
|
-
litellmProvider: "litellm_provider",
|
|
405
|
-
supportsSystemMessages: "supports_system_messages",
|
|
406
|
-
supportsResponseSchema: "supports_response_schema",
|
|
407
|
-
supportsVision: "supports_vision",
|
|
408
|
-
supportsFunctionCalling: "supports_function_calling",
|
|
409
|
-
supportsToolChoice: "supports_tool_choice",
|
|
410
|
-
supportsAssistantPrefill: "supports_assistant_prefill",
|
|
411
|
-
supportsPromptCaching: "supports_prompt_caching",
|
|
412
|
-
supportsAudioInput: "supports_audio_input",
|
|
413
|
-
supportsAudioOutput: "supports_audio_output",
|
|
414
|
-
supportsPdfInput: "supports_pdf_input",
|
|
415
|
-
supportsEmbeddingImageInput: "supports_embedding_image_input",
|
|
416
|
-
supportsNativeStreaming: "supports_native_streaming",
|
|
417
|
-
supportsWebSearch: "supports_web_search",
|
|
418
|
-
supportsUrlContext: "supports_url_context",
|
|
419
|
-
supportsReasoning: "supports_reasoning",
|
|
420
|
-
supportsComputerUse: "supports_computer_use",
|
|
421
|
-
searchContextCostPerQuery: "search_context_cost_per_query",
|
|
422
|
-
supportedOpenaiParams: "supported_openai_params",
|
|
423
|
-
});
|
|
424
|
-
});
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* @internal
|
|
428
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
429
|
-
*/
|
|
430
|
-
export namespace GetV2ModelsLitellmModelsModelInfo$ {
|
|
431
|
-
/** @deprecated use `GetV2ModelsLitellmModelsModelInfo$inboundSchema` instead. */
|
|
432
|
-
export const inboundSchema = GetV2ModelsLitellmModelsModelInfo$inboundSchema;
|
|
433
|
-
/** @deprecated use `GetV2ModelsLitellmModelsModelInfo$outboundSchema` instead. */
|
|
434
|
-
export const outboundSchema =
|
|
435
|
-
GetV2ModelsLitellmModelsModelInfo$outboundSchema;
|
|
436
|
-
/** @deprecated use `GetV2ModelsLitellmModelsModelInfo$Outbound` instead. */
|
|
437
|
-
export type Outbound = GetV2ModelsLitellmModelsModelInfo$Outbound;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
export function getV2ModelsLitellmModelsModelInfoToJSON(
|
|
441
|
-
getV2ModelsLitellmModelsModelInfo: GetV2ModelsLitellmModelsModelInfo,
|
|
442
|
-
): string {
|
|
443
|
-
return JSON.stringify(
|
|
444
|
-
GetV2ModelsLitellmModelsModelInfo$outboundSchema.parse(
|
|
445
|
-
getV2ModelsLitellmModelsModelInfo,
|
|
446
|
-
),
|
|
447
|
-
);
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
export function getV2ModelsLitellmModelsModelInfoFromJSON(
|
|
451
|
-
jsonString: string,
|
|
452
|
-
): SafeParseResult<GetV2ModelsLitellmModelsModelInfo, SDKValidationError> {
|
|
453
|
-
return safeParse(
|
|
454
|
-
jsonString,
|
|
455
|
-
(x) => GetV2ModelsLitellmModelsModelInfo$inboundSchema.parse(JSON.parse(x)),
|
|
456
|
-
`Failed to parse 'GetV2ModelsLitellmModelsModelInfo' from JSON`,
|
|
457
|
-
);
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
/** @internal */
|
|
461
|
-
export const ResponseBody$inboundSchema: z.ZodType<
|
|
462
|
-
ResponseBody,
|
|
463
|
-
z.ZodTypeDef,
|
|
464
|
-
unknown
|
|
465
|
-
> = z.object({
|
|
466
|
-
model_name: z.string(),
|
|
467
|
-
litellm_params: z.lazy(() =>
|
|
468
|
-
GetV2ModelsLitellmModelsLitellmParams$inboundSchema
|
|
469
|
-
),
|
|
470
|
-
model_info: z.lazy(() => GetV2ModelsLitellmModelsModelInfo$inboundSchema),
|
|
471
|
-
}).transform((v) => {
|
|
472
|
-
return remap$(v, {
|
|
473
|
-
"model_name": "modelName",
|
|
474
|
-
"litellm_params": "litellmParams",
|
|
475
|
-
"model_info": "modelInfo",
|
|
476
|
-
});
|
|
477
|
-
});
|
|
478
|
-
|
|
479
|
-
/** @internal */
|
|
480
|
-
export type ResponseBody$Outbound = {
|
|
481
|
-
model_name: string;
|
|
482
|
-
litellm_params: GetV2ModelsLitellmModelsLitellmParams$Outbound;
|
|
483
|
-
model_info: GetV2ModelsLitellmModelsModelInfo$Outbound;
|
|
484
|
-
};
|
|
485
|
-
|
|
486
|
-
/** @internal */
|
|
487
|
-
export const ResponseBody$outboundSchema: z.ZodType<
|
|
488
|
-
ResponseBody$Outbound,
|
|
489
|
-
z.ZodTypeDef,
|
|
490
|
-
ResponseBody
|
|
491
|
-
> = z.object({
|
|
492
|
-
modelName: z.string(),
|
|
493
|
-
litellmParams: z.lazy(() =>
|
|
494
|
-
GetV2ModelsLitellmModelsLitellmParams$outboundSchema
|
|
495
|
-
),
|
|
496
|
-
modelInfo: z.lazy(() => GetV2ModelsLitellmModelsModelInfo$outboundSchema),
|
|
497
|
-
}).transform((v) => {
|
|
498
|
-
return remap$(v, {
|
|
499
|
-
modelName: "model_name",
|
|
500
|
-
litellmParams: "litellm_params",
|
|
501
|
-
modelInfo: "model_info",
|
|
502
|
-
});
|
|
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 namespace ResponseBody$ {
|
|
510
|
-
/** @deprecated use `ResponseBody$inboundSchema` instead. */
|
|
511
|
-
export const inboundSchema = ResponseBody$inboundSchema;
|
|
512
|
-
/** @deprecated use `ResponseBody$outboundSchema` instead. */
|
|
513
|
-
export const outboundSchema = ResponseBody$outboundSchema;
|
|
514
|
-
/** @deprecated use `ResponseBody$Outbound` instead. */
|
|
515
|
-
export type Outbound = ResponseBody$Outbound;
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
export function responseBodyToJSON(responseBody: ResponseBody): string {
|
|
519
|
-
return JSON.stringify(ResponseBody$outboundSchema.parse(responseBody));
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
export function responseBodyFromJSON(
|
|
523
|
-
jsonString: string,
|
|
524
|
-
): SafeParseResult<ResponseBody, SDKValidationError> {
|
|
525
|
-
return safeParse(
|
|
526
|
-
jsonString,
|
|
527
|
-
(x) => ResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
528
|
-
`Failed to parse 'ResponseBody' from JSON`,
|
|
529
|
-
);
|
|
530
|
-
}
|