litellm-api 0.0.3 → 1.1.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.
- package/README.md +49 -5
- package/dist/components-e9x5e8kj.js +149 -0
- package/dist/components-g21ikhwl.cjs +156 -0
- package/dist/components.cjs +13 -0
- package/dist/components.d.mts +115 -0
- package/dist/components.d.mts.map +1 -0
- package/dist/components.mjs +1 -0
- package/dist/index.cjs +85 -834
- package/dist/index.d.ts +530 -8080
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +52 -834
- package/dist/schemas-bqv9j0en.js +178 -0
- package/dist/schemas-j2b24ts2.cjs +228 -0
- package/dist/schemas.cjs +37 -0
- package/dist/schemas.d.mts +268 -0
- package/dist/schemas.d.mts.map +1 -0
- package/dist/schemas.mjs +1 -0
- package/dist/types.cjs +1 -0
- package/dist/types.d.mts +207 -0
- package/dist/types.d.mts.map +1 -0
- package/dist/types.mjs +1 -0
- package/package.json +50 -17
- package/.turbo/turbo-build.log +0 -14
- package/CHANGELOG.md +0 -13
- package/dist/index.d.cts +0 -8173
- package/dist/index.d.mts +0 -8173
- package/tsconfig.json +0 -19
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
const checkoutResponseSchema = z.object({
|
|
5
|
+
url: z.string().describe("Stripe Checkout URL — redirect the user here")
|
|
6
|
+
});
|
|
7
|
+
const freeTierResponseSchema = z.object({
|
|
8
|
+
ip_hash: z.string(),
|
|
9
|
+
requests_today: z.int(),
|
|
10
|
+
daily_limit: z.int(),
|
|
11
|
+
remaining: z.int()
|
|
12
|
+
});
|
|
13
|
+
const validationErrorSchema = z.object({
|
|
14
|
+
loc: z.array(z.union([
|
|
15
|
+
z.string(),
|
|
16
|
+
z.int()
|
|
17
|
+
])),
|
|
18
|
+
msg: z.string(),
|
|
19
|
+
type: z.string(),
|
|
20
|
+
input: z.unknown().optional(),
|
|
21
|
+
ctx: z.object({}).optional()
|
|
22
|
+
});
|
|
23
|
+
const HTTPValidationErrorSchema = z.object({
|
|
24
|
+
detail: z.array(validationErrorSchema).optional()
|
|
25
|
+
});
|
|
26
|
+
const modelCatalogEntrySchema = z.object({
|
|
27
|
+
id: z.string().describe("Canonical model identifier (e.g. 'gpt-4o')"),
|
|
28
|
+
object: z.string().optional().default("model_catalog.entry"),
|
|
29
|
+
provider: z.union([
|
|
30
|
+
z.string(),
|
|
31
|
+
z.null()
|
|
32
|
+
]).optional().describe("LiteLLM provider key (e.g. 'openai', 'azure')"),
|
|
33
|
+
mode: z.union([
|
|
34
|
+
z.string(),
|
|
35
|
+
z.null()
|
|
36
|
+
]).optional().describe("Model mode: chat, embedding, completion, image_generation, etc."),
|
|
37
|
+
max_input_tokens: z.union([
|
|
38
|
+
z.int(),
|
|
39
|
+
z.null()
|
|
40
|
+
]).optional(),
|
|
41
|
+
max_output_tokens: z.union([
|
|
42
|
+
z.int(),
|
|
43
|
+
z.null()
|
|
44
|
+
]).optional(),
|
|
45
|
+
max_tokens: z.union([
|
|
46
|
+
z.int(),
|
|
47
|
+
z.null()
|
|
48
|
+
]).optional().describe("Legacy combined token limit"),
|
|
49
|
+
input_cost_per_token: z.union([
|
|
50
|
+
z.number(),
|
|
51
|
+
z.null()
|
|
52
|
+
]).optional(),
|
|
53
|
+
output_cost_per_token: z.union([
|
|
54
|
+
z.number(),
|
|
55
|
+
z.null()
|
|
56
|
+
]).optional(),
|
|
57
|
+
cache_read_input_token_cost: z.union([
|
|
58
|
+
z.number(),
|
|
59
|
+
z.null()
|
|
60
|
+
]).optional(),
|
|
61
|
+
input_cost_per_audio_token: z.union([
|
|
62
|
+
z.number(),
|
|
63
|
+
z.null()
|
|
64
|
+
]).optional(),
|
|
65
|
+
output_cost_per_reasoning_token: z.union([
|
|
66
|
+
z.number(),
|
|
67
|
+
z.null()
|
|
68
|
+
]).optional(),
|
|
69
|
+
deprecation_date: z.union([
|
|
70
|
+
z.string(),
|
|
71
|
+
z.null()
|
|
72
|
+
]).optional().describe("ISO date when the model is deprecated (YYYY-MM-DD)"),
|
|
73
|
+
supports_function_calling: z.union([
|
|
74
|
+
z.boolean(),
|
|
75
|
+
z.null()
|
|
76
|
+
]).optional(),
|
|
77
|
+
supports_parallel_function_calling: z.union([
|
|
78
|
+
z.boolean(),
|
|
79
|
+
z.null()
|
|
80
|
+
]).optional(),
|
|
81
|
+
supports_vision: z.union([
|
|
82
|
+
z.boolean(),
|
|
83
|
+
z.null()
|
|
84
|
+
]).optional(),
|
|
85
|
+
supports_audio_input: z.union([
|
|
86
|
+
z.boolean(),
|
|
87
|
+
z.null()
|
|
88
|
+
]).optional(),
|
|
89
|
+
supports_audio_output: z.union([
|
|
90
|
+
z.boolean(),
|
|
91
|
+
z.null()
|
|
92
|
+
]).optional(),
|
|
93
|
+
supports_prompt_caching: z.union([
|
|
94
|
+
z.boolean(),
|
|
95
|
+
z.null()
|
|
96
|
+
]).optional(),
|
|
97
|
+
supports_reasoning: z.union([
|
|
98
|
+
z.boolean(),
|
|
99
|
+
z.null()
|
|
100
|
+
]).optional(),
|
|
101
|
+
supports_response_schema: z.union([
|
|
102
|
+
z.boolean(),
|
|
103
|
+
z.null()
|
|
104
|
+
]).optional(),
|
|
105
|
+
supports_system_messages: z.union([
|
|
106
|
+
z.boolean(),
|
|
107
|
+
z.null()
|
|
108
|
+
]).optional(),
|
|
109
|
+
supports_web_search: z.union([
|
|
110
|
+
z.boolean(),
|
|
111
|
+
z.null()
|
|
112
|
+
]).optional()
|
|
113
|
+
}).catchall(z.unknown()).describe("A single model in the catalog.");
|
|
114
|
+
const modelCatalogListResponseSchema = z.object({
|
|
115
|
+
object: z.string().optional().default("list"),
|
|
116
|
+
data: z.array(modelCatalogEntrySchema),
|
|
117
|
+
total_count: z.int().describe("Total models matching the filters"),
|
|
118
|
+
has_more: z.boolean(),
|
|
119
|
+
page: z.int(),
|
|
120
|
+
page_size: z.int()
|
|
121
|
+
}).describe("Stripe-style list response.");
|
|
122
|
+
const createCheckoutBillingCheckoutPostStatus200Schema = checkoutResponseSchema;
|
|
123
|
+
const createCheckoutBillingCheckoutPostResponseSchema = createCheckoutBillingCheckoutPostStatus200Schema;
|
|
124
|
+
const checkUsageBillingUsageGetStatus200Schema = freeTierResponseSchema;
|
|
125
|
+
const checkUsageBillingUsageGetResponseSchema = checkUsageBillingUsageGetStatus200Schema;
|
|
126
|
+
const listModelCatalogModelCatalogGetQueryProviderSchema = z.union([
|
|
127
|
+
z.string(),
|
|
128
|
+
z.null()
|
|
129
|
+
]).optional().describe("Filter by provider (e.g. 'openai', 'anthropic', 'bedrock'). Case-insensitive.");
|
|
130
|
+
const listModelCatalogModelCatalogGetQueryModeSchema = z.union([
|
|
131
|
+
z.string(),
|
|
132
|
+
z.null()
|
|
133
|
+
]).optional().describe("Filter by mode (e.g. 'chat', 'embedding', 'image_generation').");
|
|
134
|
+
const listModelCatalogModelCatalogGetQueryModelSchema = z.union([
|
|
135
|
+
z.string(),
|
|
136
|
+
z.null()
|
|
137
|
+
]).optional().describe("Filter by model name. Supports substring match or regex (prefix with 're:').");
|
|
138
|
+
const listModelCatalogModelCatalogGetQuerySupportsVisionSchema = z.union([
|
|
139
|
+
z.boolean(),
|
|
140
|
+
z.null()
|
|
141
|
+
]).optional();
|
|
142
|
+
const listModelCatalogModelCatalogGetQuerySupportsFunctionCallingSchema = z.union([
|
|
143
|
+
z.boolean(),
|
|
144
|
+
z.null()
|
|
145
|
+
]).optional();
|
|
146
|
+
const listModelCatalogModelCatalogGetQuerySupportsReasoningSchema = z.union([
|
|
147
|
+
z.boolean(),
|
|
148
|
+
z.null()
|
|
149
|
+
]).optional();
|
|
150
|
+
const listModelCatalogModelCatalogGetQuerySupportsAudioInputSchema = z.union([
|
|
151
|
+
z.boolean(),
|
|
152
|
+
z.null()
|
|
153
|
+
]).optional();
|
|
154
|
+
const listModelCatalogModelCatalogGetQuerySupportsAudioOutputSchema = z.union([
|
|
155
|
+
z.boolean(),
|
|
156
|
+
z.null()
|
|
157
|
+
]).optional();
|
|
158
|
+
const listModelCatalogModelCatalogGetQuerySupportsPromptCachingSchema = z.union([
|
|
159
|
+
z.boolean(),
|
|
160
|
+
z.null()
|
|
161
|
+
]).optional();
|
|
162
|
+
const listModelCatalogModelCatalogGetQuerySupportsResponseSchemaSchema = z.union([
|
|
163
|
+
z.boolean(),
|
|
164
|
+
z.null()
|
|
165
|
+
]).optional();
|
|
166
|
+
const listModelCatalogModelCatalogGetQueryPageSchema = z.int().min(1).optional().default(1).describe("Page number (1-indexed)");
|
|
167
|
+
const listModelCatalogModelCatalogGetQueryPageSizeSchema = z.int().min(1).max(500).optional().default(50).describe("Number of results per page (max 500)");
|
|
168
|
+
const listModelCatalogModelCatalogGetStatus200Schema = modelCatalogListResponseSchema.describe("Stripe-style list response.");
|
|
169
|
+
const listModelCatalogModelCatalogGetStatus422Schema = HTTPValidationErrorSchema;
|
|
170
|
+
const listModelCatalogModelCatalogGetResponseSchema = listModelCatalogModelCatalogGetStatus200Schema;
|
|
171
|
+
const listModelCatalogModelCatalogGetErrorSchema = listModelCatalogModelCatalogGetStatus422Schema;
|
|
172
|
+
const getModelCatalogEntryModelCatalogModelIdGetPathModelIdSchema = z.string();
|
|
173
|
+
const getModelCatalogEntryModelCatalogModelIdGetStatus200Schema = modelCatalogEntrySchema.describe("A single model in the catalog.");
|
|
174
|
+
const getModelCatalogEntryModelCatalogModelIdGetStatus422Schema = HTTPValidationErrorSchema;
|
|
175
|
+
const getModelCatalogEntryModelCatalogModelIdGetResponseSchema = getModelCatalogEntryModelCatalogModelIdGetStatus200Schema;
|
|
176
|
+
const getModelCatalogEntryModelCatalogModelIdGetErrorSchema = getModelCatalogEntryModelCatalogModelIdGetStatus422Schema;
|
|
177
|
+
|
|
178
|
+
export { listModelCatalogModelCatalogGetStatus422Schema as A, modelCatalogEntrySchema as B, modelCatalogListResponseSchema as C, validationErrorSchema as D, HTTPValidationErrorSchema as H, checkUsageBillingUsageGetStatus200Schema as a, checkoutResponseSchema as b, checkUsageBillingUsageGetResponseSchema as c, createCheckoutBillingCheckoutPostResponseSchema as d, createCheckoutBillingCheckoutPostStatus200Schema as e, freeTierResponseSchema as f, getModelCatalogEntryModelCatalogModelIdGetErrorSchema as g, getModelCatalogEntryModelCatalogModelIdGetPathModelIdSchema as h, getModelCatalogEntryModelCatalogModelIdGetResponseSchema as i, getModelCatalogEntryModelCatalogModelIdGetStatus200Schema as j, getModelCatalogEntryModelCatalogModelIdGetStatus422Schema as k, listModelCatalogModelCatalogGetErrorSchema as l, listModelCatalogModelCatalogGetQueryModeSchema as m, listModelCatalogModelCatalogGetQueryModelSchema as n, listModelCatalogModelCatalogGetQueryPageSchema as o, listModelCatalogModelCatalogGetQueryPageSizeSchema as p, listModelCatalogModelCatalogGetQueryProviderSchema as q, listModelCatalogModelCatalogGetQuerySupportsAudioInputSchema as r, listModelCatalogModelCatalogGetQuerySupportsAudioOutputSchema as s, listModelCatalogModelCatalogGetQuerySupportsFunctionCallingSchema as t, listModelCatalogModelCatalogGetQuerySupportsPromptCachingSchema as u, listModelCatalogModelCatalogGetQuerySupportsReasoningSchema as v, listModelCatalogModelCatalogGetQuerySupportsResponseSchemaSchema as w, listModelCatalogModelCatalogGetQuerySupportsVisionSchema as x, listModelCatalogModelCatalogGetResponseSchema as y, listModelCatalogModelCatalogGetStatus200Schema as z };
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
var z = require('zod');
|
|
2
|
+
|
|
3
|
+
function _interopNamespace(e) {
|
|
4
|
+
if (e && e.__esModule) return e;
|
|
5
|
+
var n = Object.create(null);
|
|
6
|
+
if (e) {
|
|
7
|
+
Object.keys(e).forEach(function (k) {
|
|
8
|
+
if (k !== 'default') {
|
|
9
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
10
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return e[k]; }
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
n.default = e;
|
|
18
|
+
return n;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
var z__namespace = /*#__PURE__*/_interopNamespace(z);
|
|
22
|
+
|
|
23
|
+
// @ts-nocheck
|
|
24
|
+
const checkoutResponseSchema = z__namespace.object({
|
|
25
|
+
url: z__namespace.string().describe("Stripe Checkout URL — redirect the user here")
|
|
26
|
+
});
|
|
27
|
+
const freeTierResponseSchema = z__namespace.object({
|
|
28
|
+
ip_hash: z__namespace.string(),
|
|
29
|
+
requests_today: z__namespace.int(),
|
|
30
|
+
daily_limit: z__namespace.int(),
|
|
31
|
+
remaining: z__namespace.int()
|
|
32
|
+
});
|
|
33
|
+
const validationErrorSchema = z__namespace.object({
|
|
34
|
+
loc: z__namespace.array(z__namespace.union([
|
|
35
|
+
z__namespace.string(),
|
|
36
|
+
z__namespace.int()
|
|
37
|
+
])),
|
|
38
|
+
msg: z__namespace.string(),
|
|
39
|
+
type: z__namespace.string(),
|
|
40
|
+
input: z__namespace.unknown().optional(),
|
|
41
|
+
ctx: z__namespace.object({}).optional()
|
|
42
|
+
});
|
|
43
|
+
const HTTPValidationErrorSchema = z__namespace.object({
|
|
44
|
+
detail: z__namespace.array(validationErrorSchema).optional()
|
|
45
|
+
});
|
|
46
|
+
const modelCatalogEntrySchema = z__namespace.object({
|
|
47
|
+
id: z__namespace.string().describe("Canonical model identifier (e.g. 'gpt-4o')"),
|
|
48
|
+
object: z__namespace.string().optional().default("model_catalog.entry"),
|
|
49
|
+
provider: z__namespace.union([
|
|
50
|
+
z__namespace.string(),
|
|
51
|
+
z__namespace.null()
|
|
52
|
+
]).optional().describe("LiteLLM provider key (e.g. 'openai', 'azure')"),
|
|
53
|
+
mode: z__namespace.union([
|
|
54
|
+
z__namespace.string(),
|
|
55
|
+
z__namespace.null()
|
|
56
|
+
]).optional().describe("Model mode: chat, embedding, completion, image_generation, etc."),
|
|
57
|
+
max_input_tokens: z__namespace.union([
|
|
58
|
+
z__namespace.int(),
|
|
59
|
+
z__namespace.null()
|
|
60
|
+
]).optional(),
|
|
61
|
+
max_output_tokens: z__namespace.union([
|
|
62
|
+
z__namespace.int(),
|
|
63
|
+
z__namespace.null()
|
|
64
|
+
]).optional(),
|
|
65
|
+
max_tokens: z__namespace.union([
|
|
66
|
+
z__namespace.int(),
|
|
67
|
+
z__namespace.null()
|
|
68
|
+
]).optional().describe("Legacy combined token limit"),
|
|
69
|
+
input_cost_per_token: z__namespace.union([
|
|
70
|
+
z__namespace.number(),
|
|
71
|
+
z__namespace.null()
|
|
72
|
+
]).optional(),
|
|
73
|
+
output_cost_per_token: z__namespace.union([
|
|
74
|
+
z__namespace.number(),
|
|
75
|
+
z__namespace.null()
|
|
76
|
+
]).optional(),
|
|
77
|
+
cache_read_input_token_cost: z__namespace.union([
|
|
78
|
+
z__namespace.number(),
|
|
79
|
+
z__namespace.null()
|
|
80
|
+
]).optional(),
|
|
81
|
+
input_cost_per_audio_token: z__namespace.union([
|
|
82
|
+
z__namespace.number(),
|
|
83
|
+
z__namespace.null()
|
|
84
|
+
]).optional(),
|
|
85
|
+
output_cost_per_reasoning_token: z__namespace.union([
|
|
86
|
+
z__namespace.number(),
|
|
87
|
+
z__namespace.null()
|
|
88
|
+
]).optional(),
|
|
89
|
+
deprecation_date: z__namespace.union([
|
|
90
|
+
z__namespace.string(),
|
|
91
|
+
z__namespace.null()
|
|
92
|
+
]).optional().describe("ISO date when the model is deprecated (YYYY-MM-DD)"),
|
|
93
|
+
supports_function_calling: z__namespace.union([
|
|
94
|
+
z__namespace.boolean(),
|
|
95
|
+
z__namespace.null()
|
|
96
|
+
]).optional(),
|
|
97
|
+
supports_parallel_function_calling: z__namespace.union([
|
|
98
|
+
z__namespace.boolean(),
|
|
99
|
+
z__namespace.null()
|
|
100
|
+
]).optional(),
|
|
101
|
+
supports_vision: z__namespace.union([
|
|
102
|
+
z__namespace.boolean(),
|
|
103
|
+
z__namespace.null()
|
|
104
|
+
]).optional(),
|
|
105
|
+
supports_audio_input: z__namespace.union([
|
|
106
|
+
z__namespace.boolean(),
|
|
107
|
+
z__namespace.null()
|
|
108
|
+
]).optional(),
|
|
109
|
+
supports_audio_output: z__namespace.union([
|
|
110
|
+
z__namespace.boolean(),
|
|
111
|
+
z__namespace.null()
|
|
112
|
+
]).optional(),
|
|
113
|
+
supports_prompt_caching: z__namespace.union([
|
|
114
|
+
z__namespace.boolean(),
|
|
115
|
+
z__namespace.null()
|
|
116
|
+
]).optional(),
|
|
117
|
+
supports_reasoning: z__namespace.union([
|
|
118
|
+
z__namespace.boolean(),
|
|
119
|
+
z__namespace.null()
|
|
120
|
+
]).optional(),
|
|
121
|
+
supports_response_schema: z__namespace.union([
|
|
122
|
+
z__namespace.boolean(),
|
|
123
|
+
z__namespace.null()
|
|
124
|
+
]).optional(),
|
|
125
|
+
supports_system_messages: z__namespace.union([
|
|
126
|
+
z__namespace.boolean(),
|
|
127
|
+
z__namespace.null()
|
|
128
|
+
]).optional(),
|
|
129
|
+
supports_web_search: z__namespace.union([
|
|
130
|
+
z__namespace.boolean(),
|
|
131
|
+
z__namespace.null()
|
|
132
|
+
]).optional()
|
|
133
|
+
}).catchall(z__namespace.unknown()).describe("A single model in the catalog.");
|
|
134
|
+
const modelCatalogListResponseSchema = z__namespace.object({
|
|
135
|
+
object: z__namespace.string().optional().default("list"),
|
|
136
|
+
data: z__namespace.array(modelCatalogEntrySchema),
|
|
137
|
+
total_count: z__namespace.int().describe("Total models matching the filters"),
|
|
138
|
+
has_more: z__namespace.boolean(),
|
|
139
|
+
page: z__namespace.int(),
|
|
140
|
+
page_size: z__namespace.int()
|
|
141
|
+
}).describe("Stripe-style list response.");
|
|
142
|
+
const createCheckoutBillingCheckoutPostStatus200Schema = checkoutResponseSchema;
|
|
143
|
+
const createCheckoutBillingCheckoutPostResponseSchema = createCheckoutBillingCheckoutPostStatus200Schema;
|
|
144
|
+
const checkUsageBillingUsageGetStatus200Schema = freeTierResponseSchema;
|
|
145
|
+
const checkUsageBillingUsageGetResponseSchema = checkUsageBillingUsageGetStatus200Schema;
|
|
146
|
+
const listModelCatalogModelCatalogGetQueryProviderSchema = z__namespace.union([
|
|
147
|
+
z__namespace.string(),
|
|
148
|
+
z__namespace.null()
|
|
149
|
+
]).optional().describe("Filter by provider (e.g. 'openai', 'anthropic', 'bedrock'). Case-insensitive.");
|
|
150
|
+
const listModelCatalogModelCatalogGetQueryModeSchema = z__namespace.union([
|
|
151
|
+
z__namespace.string(),
|
|
152
|
+
z__namespace.null()
|
|
153
|
+
]).optional().describe("Filter by mode (e.g. 'chat', 'embedding', 'image_generation').");
|
|
154
|
+
const listModelCatalogModelCatalogGetQueryModelSchema = z__namespace.union([
|
|
155
|
+
z__namespace.string(),
|
|
156
|
+
z__namespace.null()
|
|
157
|
+
]).optional().describe("Filter by model name. Supports substring match or regex (prefix with 're:').");
|
|
158
|
+
const listModelCatalogModelCatalogGetQuerySupportsVisionSchema = z__namespace.union([
|
|
159
|
+
z__namespace.boolean(),
|
|
160
|
+
z__namespace.null()
|
|
161
|
+
]).optional();
|
|
162
|
+
const listModelCatalogModelCatalogGetQuerySupportsFunctionCallingSchema = z__namespace.union([
|
|
163
|
+
z__namespace.boolean(),
|
|
164
|
+
z__namespace.null()
|
|
165
|
+
]).optional();
|
|
166
|
+
const listModelCatalogModelCatalogGetQuerySupportsReasoningSchema = z__namespace.union([
|
|
167
|
+
z__namespace.boolean(),
|
|
168
|
+
z__namespace.null()
|
|
169
|
+
]).optional();
|
|
170
|
+
const listModelCatalogModelCatalogGetQuerySupportsAudioInputSchema = z__namespace.union([
|
|
171
|
+
z__namespace.boolean(),
|
|
172
|
+
z__namespace.null()
|
|
173
|
+
]).optional();
|
|
174
|
+
const listModelCatalogModelCatalogGetQuerySupportsAudioOutputSchema = z__namespace.union([
|
|
175
|
+
z__namespace.boolean(),
|
|
176
|
+
z__namespace.null()
|
|
177
|
+
]).optional();
|
|
178
|
+
const listModelCatalogModelCatalogGetQuerySupportsPromptCachingSchema = z__namespace.union([
|
|
179
|
+
z__namespace.boolean(),
|
|
180
|
+
z__namespace.null()
|
|
181
|
+
]).optional();
|
|
182
|
+
const listModelCatalogModelCatalogGetQuerySupportsResponseSchemaSchema = z__namespace.union([
|
|
183
|
+
z__namespace.boolean(),
|
|
184
|
+
z__namespace.null()
|
|
185
|
+
]).optional();
|
|
186
|
+
const listModelCatalogModelCatalogGetQueryPageSchema = z__namespace.int().min(1).optional().default(1).describe("Page number (1-indexed)");
|
|
187
|
+
const listModelCatalogModelCatalogGetQueryPageSizeSchema = z__namespace.int().min(1).max(500).optional().default(50).describe("Number of results per page (max 500)");
|
|
188
|
+
const listModelCatalogModelCatalogGetStatus200Schema = modelCatalogListResponseSchema.describe("Stripe-style list response.");
|
|
189
|
+
const listModelCatalogModelCatalogGetStatus422Schema = HTTPValidationErrorSchema;
|
|
190
|
+
const listModelCatalogModelCatalogGetResponseSchema = listModelCatalogModelCatalogGetStatus200Schema;
|
|
191
|
+
const listModelCatalogModelCatalogGetErrorSchema = listModelCatalogModelCatalogGetStatus422Schema;
|
|
192
|
+
const getModelCatalogEntryModelCatalogModelIdGetPathModelIdSchema = z__namespace.string();
|
|
193
|
+
const getModelCatalogEntryModelCatalogModelIdGetStatus200Schema = modelCatalogEntrySchema.describe("A single model in the catalog.");
|
|
194
|
+
const getModelCatalogEntryModelCatalogModelIdGetStatus422Schema = HTTPValidationErrorSchema;
|
|
195
|
+
const getModelCatalogEntryModelCatalogModelIdGetResponseSchema = getModelCatalogEntryModelCatalogModelIdGetStatus200Schema;
|
|
196
|
+
const getModelCatalogEntryModelCatalogModelIdGetErrorSchema = getModelCatalogEntryModelCatalogModelIdGetStatus422Schema;
|
|
197
|
+
|
|
198
|
+
exports.HTTPValidationErrorSchema = HTTPValidationErrorSchema;
|
|
199
|
+
exports.checkUsageBillingUsageGetResponseSchema = checkUsageBillingUsageGetResponseSchema;
|
|
200
|
+
exports.checkUsageBillingUsageGetStatus200Schema = checkUsageBillingUsageGetStatus200Schema;
|
|
201
|
+
exports.checkoutResponseSchema = checkoutResponseSchema;
|
|
202
|
+
exports.createCheckoutBillingCheckoutPostResponseSchema = createCheckoutBillingCheckoutPostResponseSchema;
|
|
203
|
+
exports.createCheckoutBillingCheckoutPostStatus200Schema = createCheckoutBillingCheckoutPostStatus200Schema;
|
|
204
|
+
exports.freeTierResponseSchema = freeTierResponseSchema;
|
|
205
|
+
exports.getModelCatalogEntryModelCatalogModelIdGetErrorSchema = getModelCatalogEntryModelCatalogModelIdGetErrorSchema;
|
|
206
|
+
exports.getModelCatalogEntryModelCatalogModelIdGetPathModelIdSchema = getModelCatalogEntryModelCatalogModelIdGetPathModelIdSchema;
|
|
207
|
+
exports.getModelCatalogEntryModelCatalogModelIdGetResponseSchema = getModelCatalogEntryModelCatalogModelIdGetResponseSchema;
|
|
208
|
+
exports.getModelCatalogEntryModelCatalogModelIdGetStatus200Schema = getModelCatalogEntryModelCatalogModelIdGetStatus200Schema;
|
|
209
|
+
exports.getModelCatalogEntryModelCatalogModelIdGetStatus422Schema = getModelCatalogEntryModelCatalogModelIdGetStatus422Schema;
|
|
210
|
+
exports.listModelCatalogModelCatalogGetErrorSchema = listModelCatalogModelCatalogGetErrorSchema;
|
|
211
|
+
exports.listModelCatalogModelCatalogGetQueryModeSchema = listModelCatalogModelCatalogGetQueryModeSchema;
|
|
212
|
+
exports.listModelCatalogModelCatalogGetQueryModelSchema = listModelCatalogModelCatalogGetQueryModelSchema;
|
|
213
|
+
exports.listModelCatalogModelCatalogGetQueryPageSchema = listModelCatalogModelCatalogGetQueryPageSchema;
|
|
214
|
+
exports.listModelCatalogModelCatalogGetQueryPageSizeSchema = listModelCatalogModelCatalogGetQueryPageSizeSchema;
|
|
215
|
+
exports.listModelCatalogModelCatalogGetQueryProviderSchema = listModelCatalogModelCatalogGetQueryProviderSchema;
|
|
216
|
+
exports.listModelCatalogModelCatalogGetQuerySupportsAudioInputSchema = listModelCatalogModelCatalogGetQuerySupportsAudioInputSchema;
|
|
217
|
+
exports.listModelCatalogModelCatalogGetQuerySupportsAudioOutputSchema = listModelCatalogModelCatalogGetQuerySupportsAudioOutputSchema;
|
|
218
|
+
exports.listModelCatalogModelCatalogGetQuerySupportsFunctionCallingSchema = listModelCatalogModelCatalogGetQuerySupportsFunctionCallingSchema;
|
|
219
|
+
exports.listModelCatalogModelCatalogGetQuerySupportsPromptCachingSchema = listModelCatalogModelCatalogGetQuerySupportsPromptCachingSchema;
|
|
220
|
+
exports.listModelCatalogModelCatalogGetQuerySupportsReasoningSchema = listModelCatalogModelCatalogGetQuerySupportsReasoningSchema;
|
|
221
|
+
exports.listModelCatalogModelCatalogGetQuerySupportsResponseSchemaSchema = listModelCatalogModelCatalogGetQuerySupportsResponseSchemaSchema;
|
|
222
|
+
exports.listModelCatalogModelCatalogGetQuerySupportsVisionSchema = listModelCatalogModelCatalogGetQuerySupportsVisionSchema;
|
|
223
|
+
exports.listModelCatalogModelCatalogGetResponseSchema = listModelCatalogModelCatalogGetResponseSchema;
|
|
224
|
+
exports.listModelCatalogModelCatalogGetStatus200Schema = listModelCatalogModelCatalogGetStatus200Schema;
|
|
225
|
+
exports.listModelCatalogModelCatalogGetStatus422Schema = listModelCatalogModelCatalogGetStatus422Schema;
|
|
226
|
+
exports.modelCatalogEntrySchema = modelCatalogEntrySchema;
|
|
227
|
+
exports.modelCatalogListResponseSchema = modelCatalogListResponseSchema;
|
|
228
|
+
exports.validationErrorSchema = validationErrorSchema;
|
package/dist/schemas.cjs
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
|
|
3
|
+
var schemas = require('./schemas-j2b24ts2.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
exports.HTTPValidationErrorSchema = schemas.HTTPValidationErrorSchema;
|
|
8
|
+
exports.checkUsageBillingUsageGetResponseSchema = schemas.checkUsageBillingUsageGetResponseSchema;
|
|
9
|
+
exports.checkUsageBillingUsageGetStatus200Schema = schemas.checkUsageBillingUsageGetStatus200Schema;
|
|
10
|
+
exports.checkoutResponseSchema = schemas.checkoutResponseSchema;
|
|
11
|
+
exports.createCheckoutBillingCheckoutPostResponseSchema = schemas.createCheckoutBillingCheckoutPostResponseSchema;
|
|
12
|
+
exports.createCheckoutBillingCheckoutPostStatus200Schema = schemas.createCheckoutBillingCheckoutPostStatus200Schema;
|
|
13
|
+
exports.freeTierResponseSchema = schemas.freeTierResponseSchema;
|
|
14
|
+
exports.getModelCatalogEntryModelCatalogModelIdGetErrorSchema = schemas.getModelCatalogEntryModelCatalogModelIdGetErrorSchema;
|
|
15
|
+
exports.getModelCatalogEntryModelCatalogModelIdGetPathModelIdSchema = schemas.getModelCatalogEntryModelCatalogModelIdGetPathModelIdSchema;
|
|
16
|
+
exports.getModelCatalogEntryModelCatalogModelIdGetResponseSchema = schemas.getModelCatalogEntryModelCatalogModelIdGetResponseSchema;
|
|
17
|
+
exports.getModelCatalogEntryModelCatalogModelIdGetStatus200Schema = schemas.getModelCatalogEntryModelCatalogModelIdGetStatus200Schema;
|
|
18
|
+
exports.getModelCatalogEntryModelCatalogModelIdGetStatus422Schema = schemas.getModelCatalogEntryModelCatalogModelIdGetStatus422Schema;
|
|
19
|
+
exports.listModelCatalogModelCatalogGetErrorSchema = schemas.listModelCatalogModelCatalogGetErrorSchema;
|
|
20
|
+
exports.listModelCatalogModelCatalogGetQueryModeSchema = schemas.listModelCatalogModelCatalogGetQueryModeSchema;
|
|
21
|
+
exports.listModelCatalogModelCatalogGetQueryModelSchema = schemas.listModelCatalogModelCatalogGetQueryModelSchema;
|
|
22
|
+
exports.listModelCatalogModelCatalogGetQueryPageSchema = schemas.listModelCatalogModelCatalogGetQueryPageSchema;
|
|
23
|
+
exports.listModelCatalogModelCatalogGetQueryPageSizeSchema = schemas.listModelCatalogModelCatalogGetQueryPageSizeSchema;
|
|
24
|
+
exports.listModelCatalogModelCatalogGetQueryProviderSchema = schemas.listModelCatalogModelCatalogGetQueryProviderSchema;
|
|
25
|
+
exports.listModelCatalogModelCatalogGetQuerySupportsAudioInputSchema = schemas.listModelCatalogModelCatalogGetQuerySupportsAudioInputSchema;
|
|
26
|
+
exports.listModelCatalogModelCatalogGetQuerySupportsAudioOutputSchema = schemas.listModelCatalogModelCatalogGetQuerySupportsAudioOutputSchema;
|
|
27
|
+
exports.listModelCatalogModelCatalogGetQuerySupportsFunctionCallingSchema = schemas.listModelCatalogModelCatalogGetQuerySupportsFunctionCallingSchema;
|
|
28
|
+
exports.listModelCatalogModelCatalogGetQuerySupportsPromptCachingSchema = schemas.listModelCatalogModelCatalogGetQuerySupportsPromptCachingSchema;
|
|
29
|
+
exports.listModelCatalogModelCatalogGetQuerySupportsReasoningSchema = schemas.listModelCatalogModelCatalogGetQuerySupportsReasoningSchema;
|
|
30
|
+
exports.listModelCatalogModelCatalogGetQuerySupportsResponseSchemaSchema = schemas.listModelCatalogModelCatalogGetQuerySupportsResponseSchemaSchema;
|
|
31
|
+
exports.listModelCatalogModelCatalogGetQuerySupportsVisionSchema = schemas.listModelCatalogModelCatalogGetQuerySupportsVisionSchema;
|
|
32
|
+
exports.listModelCatalogModelCatalogGetResponseSchema = schemas.listModelCatalogModelCatalogGetResponseSchema;
|
|
33
|
+
exports.listModelCatalogModelCatalogGetStatus200Schema = schemas.listModelCatalogModelCatalogGetStatus200Schema;
|
|
34
|
+
exports.listModelCatalogModelCatalogGetStatus422Schema = schemas.listModelCatalogModelCatalogGetStatus422Schema;
|
|
35
|
+
exports.modelCatalogEntrySchema = schemas.modelCatalogEntrySchema;
|
|
36
|
+
exports.modelCatalogListResponseSchema = schemas.modelCatalogListResponseSchema;
|
|
37
|
+
exports.validationErrorSchema = schemas.validationErrorSchema;
|