@apicity/openai 0.6.0 → 0.6.1

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/dist/src/zod.d.ts CHANGED
@@ -3,239 +3,89 @@ export { z };
3
3
  export declare const OpenAiTextPartSchema: z.ZodObject<{
4
4
  type: z.ZodLiteral<"text">;
5
5
  text: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- type: "text";
8
- text: string;
9
- }, {
10
- type: "text";
11
- text: string;
12
- }>;
6
+ }, z.core.$strip>;
13
7
  export declare const OpenAiImageUrlPartSchema: z.ZodObject<{
14
8
  type: z.ZodLiteral<"image_url">;
15
9
  image_url: z.ZodObject<{
16
10
  url: z.ZodString;
17
- detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
18
- }, "strip", z.ZodTypeAny, {
19
- url: string;
20
- detail?: "auto" | "low" | "high" | undefined;
21
- }, {
22
- url: string;
23
- detail?: "auto" | "low" | "high" | undefined;
24
- }>;
25
- }, "strip", z.ZodTypeAny, {
26
- type: "image_url";
27
- image_url: {
28
- url: string;
29
- detail?: "auto" | "low" | "high" | undefined;
30
- };
31
- }, {
32
- type: "image_url";
33
- image_url: {
34
- url: string;
35
- detail?: "auto" | "low" | "high" | undefined;
36
- };
37
- }>;
38
- export declare const OpenAiContentPartSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
11
+ detail: z.ZodOptional<z.ZodEnum<{
12
+ auto: "auto";
13
+ low: "low";
14
+ high: "high";
15
+ }>>;
16
+ }, z.core.$strip>;
17
+ }, z.core.$strip>;
18
+ export declare const OpenAiContentPartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
39
19
  type: z.ZodLiteral<"text">;
40
20
  text: z.ZodString;
41
- }, "strip", z.ZodTypeAny, {
42
- type: "text";
43
- text: string;
44
- }, {
45
- type: "text";
46
- text: string;
47
- }>, z.ZodObject<{
21
+ }, z.core.$strip>, z.ZodObject<{
48
22
  type: z.ZodLiteral<"image_url">;
49
23
  image_url: z.ZodObject<{
50
24
  url: z.ZodString;
51
- detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
52
- }, "strip", z.ZodTypeAny, {
53
- url: string;
54
- detail?: "auto" | "low" | "high" | undefined;
55
- }, {
56
- url: string;
57
- detail?: "auto" | "low" | "high" | undefined;
58
- }>;
59
- }, "strip", z.ZodTypeAny, {
60
- type: "image_url";
61
- image_url: {
62
- url: string;
63
- detail?: "auto" | "low" | "high" | undefined;
64
- };
65
- }, {
66
- type: "image_url";
67
- image_url: {
68
- url: string;
69
- detail?: "auto" | "low" | "high" | undefined;
70
- };
71
- }>]>;
25
+ detail: z.ZodOptional<z.ZodEnum<{
26
+ auto: "auto";
27
+ low: "low";
28
+ high: "high";
29
+ }>>;
30
+ }, z.core.$strip>;
31
+ }, z.core.$strip>], "type">;
72
32
  export declare const OpenAiMessageSchema: z.ZodObject<{
73
- role: z.ZodEnum<["user", "assistant", "system"]>;
74
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
33
+ role: z.ZodEnum<{
34
+ user: "user";
35
+ assistant: "assistant";
36
+ system: "system";
37
+ }>;
38
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
75
39
  type: z.ZodLiteral<"text">;
76
40
  text: z.ZodString;
77
- }, "strip", z.ZodTypeAny, {
78
- type: "text";
79
- text: string;
80
- }, {
81
- type: "text";
82
- text: string;
83
- }>, z.ZodObject<{
41
+ }, z.core.$strip>, z.ZodObject<{
84
42
  type: z.ZodLiteral<"image_url">;
85
43
  image_url: z.ZodObject<{
86
44
  url: z.ZodString;
87
- detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
88
- }, "strip", z.ZodTypeAny, {
89
- url: string;
90
- detail?: "auto" | "low" | "high" | undefined;
91
- }, {
92
- url: string;
93
- detail?: "auto" | "low" | "high" | undefined;
94
- }>;
95
- }, "strip", z.ZodTypeAny, {
96
- type: "image_url";
97
- image_url: {
98
- url: string;
99
- detail?: "auto" | "low" | "high" | undefined;
100
- };
101
- }, {
102
- type: "image_url";
103
- image_url: {
104
- url: string;
105
- detail?: "auto" | "low" | "high" | undefined;
106
- };
107
- }>]>, "many">]>;
108
- }, "strip", z.ZodTypeAny, {
109
- role: "user" | "assistant" | "system";
110
- content: string | ({
111
- type: "text";
112
- text: string;
113
- } | {
114
- type: "image_url";
115
- image_url: {
116
- url: string;
117
- detail?: "auto" | "low" | "high" | undefined;
118
- };
119
- })[];
120
- }, {
121
- role: "user" | "assistant" | "system";
122
- content: string | ({
123
- type: "text";
124
- text: string;
125
- } | {
126
- type: "image_url";
127
- image_url: {
128
- url: string;
129
- detail?: "auto" | "low" | "high" | undefined;
130
- };
131
- })[];
132
- }>;
45
+ detail: z.ZodOptional<z.ZodEnum<{
46
+ auto: "auto";
47
+ low: "low";
48
+ high: "high";
49
+ }>>;
50
+ }, z.core.$strip>;
51
+ }, z.core.$strip>], "type">>]>;
52
+ }, z.core.$strip>;
133
53
  export declare const OpenAiToolFunctionSchema: z.ZodObject<{
134
54
  name: z.ZodString;
135
55
  description: z.ZodOptional<z.ZodString>;
136
56
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
137
- }, "strip", z.ZodTypeAny, {
138
- name: string;
139
- description?: string | undefined;
140
- parameters?: Record<string, unknown> | undefined;
141
- }, {
142
- name: string;
143
- description?: string | undefined;
144
- parameters?: Record<string, unknown> | undefined;
145
- }>;
57
+ }, z.core.$strip>;
146
58
  export declare const OpenAiToolSchema: z.ZodObject<{
147
59
  type: z.ZodLiteral<"function">;
148
60
  function: z.ZodObject<{
149
61
  name: z.ZodString;
150
62
  description: z.ZodOptional<z.ZodString>;
151
63
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
152
- }, "strip", z.ZodTypeAny, {
153
- name: string;
154
- description?: string | undefined;
155
- parameters?: Record<string, unknown> | undefined;
156
- }, {
157
- name: string;
158
- description?: string | undefined;
159
- parameters?: Record<string, unknown> | undefined;
160
- }>;
161
- }, "strip", z.ZodTypeAny, {
162
- function: {
163
- name: string;
164
- description?: string | undefined;
165
- parameters?: Record<string, unknown> | undefined;
166
- };
167
- type: "function";
168
- }, {
169
- function: {
170
- name: string;
171
- description?: string | undefined;
172
- parameters?: Record<string, unknown> | undefined;
173
- };
174
- type: "function";
175
- }>;
64
+ }, z.core.$strip>;
65
+ }, z.core.$strip>;
176
66
  export declare const OpenAiChatRequestSchema: z.ZodObject<{
177
67
  model: z.ZodOptional<z.ZodString>;
178
68
  messages: z.ZodArray<z.ZodObject<{
179
- role: z.ZodEnum<["user", "assistant", "system"]>;
180
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
69
+ role: z.ZodEnum<{
70
+ user: "user";
71
+ assistant: "assistant";
72
+ system: "system";
73
+ }>;
74
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
181
75
  type: z.ZodLiteral<"text">;
182
76
  text: z.ZodString;
183
- }, "strip", z.ZodTypeAny, {
184
- type: "text";
185
- text: string;
186
- }, {
187
- type: "text";
188
- text: string;
189
- }>, z.ZodObject<{
77
+ }, z.core.$strip>, z.ZodObject<{
190
78
  type: z.ZodLiteral<"image_url">;
191
79
  image_url: z.ZodObject<{
192
80
  url: z.ZodString;
193
- detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
194
- }, "strip", z.ZodTypeAny, {
195
- url: string;
196
- detail?: "auto" | "low" | "high" | undefined;
197
- }, {
198
- url: string;
199
- detail?: "auto" | "low" | "high" | undefined;
200
- }>;
201
- }, "strip", z.ZodTypeAny, {
202
- type: "image_url";
203
- image_url: {
204
- url: string;
205
- detail?: "auto" | "low" | "high" | undefined;
206
- };
207
- }, {
208
- type: "image_url";
209
- image_url: {
210
- url: string;
211
- detail?: "auto" | "low" | "high" | undefined;
212
- };
213
- }>]>, "many">]>;
214
- }, "strip", z.ZodTypeAny, {
215
- role: "user" | "assistant" | "system";
216
- content: string | ({
217
- type: "text";
218
- text: string;
219
- } | {
220
- type: "image_url";
221
- image_url: {
222
- url: string;
223
- detail?: "auto" | "low" | "high" | undefined;
224
- };
225
- })[];
226
- }, {
227
- role: "user" | "assistant" | "system";
228
- content: string | ({
229
- type: "text";
230
- text: string;
231
- } | {
232
- type: "image_url";
233
- image_url: {
234
- url: string;
235
- detail?: "auto" | "low" | "high" | undefined;
236
- };
237
- })[];
238
- }>, "many">;
81
+ detail: z.ZodOptional<z.ZodEnum<{
82
+ auto: "auto";
83
+ low: "low";
84
+ high: "high";
85
+ }>>;
86
+ }, z.core.$strip>;
87
+ }, z.core.$strip>], "type">>]>;
88
+ }, z.core.$strip>>;
239
89
  temperature: z.ZodOptional<z.ZodNumber>;
240
90
  max_tokens: z.ZodOptional<z.ZodNumber>;
241
91
  max_completion_tokens: z.ZodOptional<z.ZodNumber>;
@@ -245,3010 +95,938 @@ export declare const OpenAiChatRequestSchema: z.ZodObject<{
245
95
  name: z.ZodString;
246
96
  description: z.ZodOptional<z.ZodString>;
247
97
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
248
- }, "strip", z.ZodTypeAny, {
249
- name: string;
250
- description?: string | undefined;
251
- parameters?: Record<string, unknown> | undefined;
252
- }, {
253
- name: string;
254
- description?: string | undefined;
255
- parameters?: Record<string, unknown> | undefined;
256
- }>;
257
- }, "strip", z.ZodTypeAny, {
258
- function: {
259
- name: string;
260
- description?: string | undefined;
261
- parameters?: Record<string, unknown> | undefined;
262
- };
263
- type: "function";
264
- }, {
265
- function: {
266
- name: string;
267
- description?: string | undefined;
268
- parameters?: Record<string, unknown> | undefined;
269
- };
270
- type: "function";
271
- }>, "many">>;
272
- tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "none"]>, z.ZodObject<{
98
+ }, z.core.$strip>;
99
+ }, z.core.$strip>>>;
100
+ tool_choice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
101
+ auto: "auto";
102
+ none: "none";
103
+ }>, z.ZodObject<{
273
104
  type: z.ZodLiteral<"function">;
274
105
  function: z.ZodObject<{
275
106
  name: z.ZodString;
276
- }, "strip", z.ZodTypeAny, {
277
- name: string;
278
- }, {
279
- name: string;
280
- }>;
281
- }, "strip", z.ZodTypeAny, {
282
- function: {
283
- name: string;
284
- };
285
- type: "function";
286
- }, {
287
- function: {
288
- name: string;
289
- };
290
- type: "function";
291
- }>]>>;
107
+ }, z.core.$strip>;
108
+ }, z.core.$strip>]>>;
292
109
  response_format: z.ZodOptional<z.ZodObject<{
293
- type: z.ZodEnum<["text", "json_object", "json_schema"]>;
110
+ type: z.ZodEnum<{
111
+ text: "text";
112
+ json_object: "json_object";
113
+ json_schema: "json_schema";
114
+ }>;
294
115
  json_schema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
295
- }, "strip", z.ZodTypeAny, {
296
- type: "text" | "json_object" | "json_schema";
297
- json_schema?: Record<string, unknown> | undefined;
298
- }, {
299
- type: "text" | "json_object" | "json_schema";
300
- json_schema?: Record<string, unknown> | undefined;
301
- }>>;
116
+ }, z.core.$strip>>;
302
117
  store: z.ZodOptional<z.ZodBoolean>;
303
118
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
304
- }, "strip", z.ZodTypeAny, {
305
- messages: {
306
- role: "user" | "assistant" | "system";
307
- content: string | ({
308
- type: "text";
309
- text: string;
310
- } | {
311
- type: "image_url";
312
- image_url: {
313
- url: string;
314
- detail?: "auto" | "low" | "high" | undefined;
315
- };
316
- })[];
317
- }[];
318
- model?: string | undefined;
319
- temperature?: number | undefined;
320
- max_tokens?: number | undefined;
321
- max_completion_tokens?: number | undefined;
322
- tools?: {
323
- function: {
324
- name: string;
325
- description?: string | undefined;
326
- parameters?: Record<string, unknown> | undefined;
327
- };
328
- type: "function";
329
- }[] | undefined;
330
- tool_choice?: "auto" | "none" | {
331
- function: {
332
- name: string;
333
- };
334
- type: "function";
335
- } | undefined;
336
- response_format?: {
337
- type: "text" | "json_object" | "json_schema";
338
- json_schema?: Record<string, unknown> | undefined;
339
- } | undefined;
340
- store?: boolean | undefined;
341
- metadata?: Record<string, string> | undefined;
342
- }, {
343
- messages: {
344
- role: "user" | "assistant" | "system";
345
- content: string | ({
346
- type: "text";
347
- text: string;
348
- } | {
349
- type: "image_url";
350
- image_url: {
351
- url: string;
352
- detail?: "auto" | "low" | "high" | undefined;
353
- };
354
- })[];
355
- }[];
356
- model?: string | undefined;
357
- temperature?: number | undefined;
358
- max_tokens?: number | undefined;
359
- max_completion_tokens?: number | undefined;
360
- tools?: {
361
- function: {
362
- name: string;
363
- description?: string | undefined;
364
- parameters?: Record<string, unknown> | undefined;
365
- };
366
- type: "function";
367
- }[] | undefined;
368
- tool_choice?: "auto" | "none" | {
369
- function: {
370
- name: string;
371
- };
372
- type: "function";
373
- } | undefined;
374
- response_format?: {
375
- type: "text" | "json_object" | "json_schema";
376
- json_schema?: Record<string, unknown> | undefined;
377
- } | undefined;
378
- store?: boolean | undefined;
379
- metadata?: Record<string, string> | undefined;
380
- }>;
119
+ }, z.core.$strip>;
381
120
  export declare const OpenAiStoredCompletionUpdateRequestSchema: z.ZodObject<{
382
121
  metadata: z.ZodRecord<z.ZodString, z.ZodString>;
383
- }, "strip", z.ZodTypeAny, {
384
- metadata: Record<string, string>;
385
- }, {
386
- metadata: Record<string, string>;
387
- }>;
122
+ }, z.core.$strip>;
388
123
  export declare const OpenAiEmbeddingRequestSchema: z.ZodObject<{
389
- input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">, z.ZodArray<z.ZodArray<z.ZodNumber, "many">, "many">]>;
124
+ input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodArray<z.ZodNumber>>]>;
390
125
  model: z.ZodString;
391
- encoding_format: z.ZodOptional<z.ZodEnum<["float", "base64"]>>;
126
+ encoding_format: z.ZodOptional<z.ZodEnum<{
127
+ float: "float";
128
+ base64: "base64";
129
+ }>>;
392
130
  dimensions: z.ZodOptional<z.ZodNumber>;
393
131
  user: z.ZodOptional<z.ZodString>;
394
- }, "strip", z.ZodTypeAny, {
395
- model: string;
396
- input: string | string[] | number[] | number[][];
397
- user?: string | undefined;
398
- encoding_format?: "float" | "base64" | undefined;
399
- dimensions?: number | undefined;
400
- }, {
401
- model: string;
402
- input: string | string[] | number[] | number[][];
403
- user?: string | undefined;
404
- encoding_format?: "float" | "base64" | undefined;
405
- dimensions?: number | undefined;
406
- }>;
132
+ }, z.core.$strip>;
407
133
  export declare const OpenAiImageEditRequestSchema: z.ZodObject<{
408
- image: z.ZodUnion<[z.ZodType<Blob, z.ZodTypeDef, Blob>, z.ZodArray<z.ZodType<Blob, z.ZodTypeDef, Blob>, "many">]>;
134
+ image: z.ZodUnion<readonly [z.ZodCustom<Blob, Blob>, z.ZodArray<z.ZodCustom<Blob, Blob>>]>;
409
135
  prompt: z.ZodString;
410
- mask: z.ZodOptional<z.ZodType<Blob, z.ZodTypeDef, Blob>>;
136
+ mask: z.ZodOptional<z.ZodCustom<Blob, Blob>>;
411
137
  model: z.ZodOptional<z.ZodString>;
412
138
  n: z.ZodOptional<z.ZodNumber>;
413
- size: z.ZodOptional<z.ZodEnum<["256x256", "512x512", "1024x1024", "1536x1024", "1024x1536", "auto"]>>;
414
- quality: z.ZodOptional<z.ZodEnum<["standard", "low", "medium", "high", "auto"]>>;
415
- output_format: z.ZodOptional<z.ZodEnum<["png", "jpeg", "webp"]>>;
416
- response_format: z.ZodOptional<z.ZodEnum<["url", "b64_json"]>>;
417
- background: z.ZodOptional<z.ZodEnum<["transparent", "opaque", "auto"]>>;
418
- input_fidelity: z.ZodOptional<z.ZodEnum<["high", "low"]>>;
139
+ size: z.ZodOptional<z.ZodEnum<{
140
+ "256x256": "256x256";
141
+ auto: "auto";
142
+ "512x512": "512x512";
143
+ "1024x1024": "1024x1024";
144
+ "1536x1024": "1536x1024";
145
+ "1024x1536": "1024x1536";
146
+ }>>;
147
+ quality: z.ZodOptional<z.ZodEnum<{
148
+ auto: "auto";
149
+ low: "low";
150
+ high: "high";
151
+ standard: "standard";
152
+ medium: "medium";
153
+ }>>;
154
+ output_format: z.ZodOptional<z.ZodEnum<{
155
+ png: "png";
156
+ jpeg: "jpeg";
157
+ webp: "webp";
158
+ }>>;
159
+ response_format: z.ZodOptional<z.ZodEnum<{
160
+ url: "url";
161
+ b64_json: "b64_json";
162
+ }>>;
163
+ background: z.ZodOptional<z.ZodEnum<{
164
+ auto: "auto";
165
+ transparent: "transparent";
166
+ opaque: "opaque";
167
+ }>>;
168
+ input_fidelity: z.ZodOptional<z.ZodEnum<{
169
+ low: "low";
170
+ high: "high";
171
+ }>>;
419
172
  output_compression: z.ZodOptional<z.ZodNumber>;
420
173
  user: z.ZodOptional<z.ZodString>;
421
- }, "strip", z.ZodTypeAny, {
422
- image: Blob | Blob[];
423
- prompt: string;
424
- user?: string | undefined;
425
- model?: string | undefined;
426
- response_format?: "url" | "b64_json" | undefined;
427
- mask?: Blob | undefined;
428
- n?: number | undefined;
429
- size?: "256x256" | "auto" | "512x512" | "1024x1024" | "1536x1024" | "1024x1536" | undefined;
430
- quality?: "auto" | "low" | "high" | "standard" | "medium" | undefined;
431
- output_format?: "png" | "jpeg" | "webp" | undefined;
432
- background?: "auto" | "transparent" | "opaque" | undefined;
433
- input_fidelity?: "low" | "high" | undefined;
434
- output_compression?: number | undefined;
435
- }, {
436
- image: Blob | Blob[];
437
- prompt: string;
438
- user?: string | undefined;
439
- model?: string | undefined;
440
- response_format?: "url" | "b64_json" | undefined;
441
- mask?: Blob | undefined;
442
- n?: number | undefined;
443
- size?: "256x256" | "auto" | "512x512" | "1024x1024" | "1536x1024" | "1024x1536" | undefined;
444
- quality?: "auto" | "low" | "high" | "standard" | "medium" | undefined;
445
- output_format?: "png" | "jpeg" | "webp" | undefined;
446
- background?: "auto" | "transparent" | "opaque" | undefined;
447
- input_fidelity?: "low" | "high" | undefined;
448
- output_compression?: number | undefined;
449
- }>;
174
+ }, z.core.$strip>;
450
175
  export declare const OpenAiImageGenerationRequestSchema: z.ZodObject<{
451
176
  prompt: z.ZodString;
452
177
  model: z.ZodOptional<z.ZodString>;
453
178
  n: z.ZodOptional<z.ZodNumber>;
454
179
  size: z.ZodOptional<z.ZodString>;
455
180
  quality: z.ZodOptional<z.ZodString>;
456
- response_format: z.ZodOptional<z.ZodEnum<["url", "b64_json"]>>;
457
- style: z.ZodOptional<z.ZodEnum<["vivid", "natural"]>>;
458
- background: z.ZodOptional<z.ZodEnum<["transparent", "opaque", "auto"]>>;
459
- moderation: z.ZodOptional<z.ZodEnum<["low", "auto"]>>;
460
- output_format: z.ZodOptional<z.ZodEnum<["png", "jpeg", "webp"]>>;
181
+ response_format: z.ZodOptional<z.ZodEnum<{
182
+ url: "url";
183
+ b64_json: "b64_json";
184
+ }>>;
185
+ style: z.ZodOptional<z.ZodEnum<{
186
+ vivid: "vivid";
187
+ natural: "natural";
188
+ }>>;
189
+ background: z.ZodOptional<z.ZodEnum<{
190
+ auto: "auto";
191
+ transparent: "transparent";
192
+ opaque: "opaque";
193
+ }>>;
194
+ moderation: z.ZodOptional<z.ZodEnum<{
195
+ auto: "auto";
196
+ low: "low";
197
+ }>>;
198
+ output_format: z.ZodOptional<z.ZodEnum<{
199
+ png: "png";
200
+ jpeg: "jpeg";
201
+ webp: "webp";
202
+ }>>;
461
203
  output_compression: z.ZodOptional<z.ZodNumber>;
462
204
  user: z.ZodOptional<z.ZodString>;
463
- }, "strip", z.ZodTypeAny, {
464
- prompt: string;
465
- user?: string | undefined;
466
- model?: string | undefined;
467
- response_format?: "url" | "b64_json" | undefined;
468
- n?: number | undefined;
469
- size?: string | undefined;
470
- quality?: string | undefined;
471
- output_format?: "png" | "jpeg" | "webp" | undefined;
472
- background?: "auto" | "transparent" | "opaque" | undefined;
473
- output_compression?: number | undefined;
474
- style?: "vivid" | "natural" | undefined;
475
- moderation?: "auto" | "low" | undefined;
476
- }, {
477
- prompt: string;
478
- user?: string | undefined;
479
- model?: string | undefined;
480
- response_format?: "url" | "b64_json" | undefined;
481
- n?: number | undefined;
482
- size?: string | undefined;
483
- quality?: string | undefined;
484
- output_format?: "png" | "jpeg" | "webp" | undefined;
485
- background?: "auto" | "transparent" | "opaque" | undefined;
486
- output_compression?: number | undefined;
487
- style?: "vivid" | "natural" | undefined;
488
- moderation?: "auto" | "low" | undefined;
489
- }>;
205
+ }, z.core.$strip>;
490
206
  export declare const OpenAiImageVariationRequestSchema: z.ZodObject<{
491
- image: z.ZodType<Blob, z.ZodTypeDef, Blob>;
207
+ image: z.ZodCustom<Blob, Blob>;
492
208
  model: z.ZodOptional<z.ZodString>;
493
209
  n: z.ZodOptional<z.ZodNumber>;
494
- response_format: z.ZodOptional<z.ZodEnum<["url", "b64_json"]>>;
495
- size: z.ZodOptional<z.ZodEnum<["1024x1024", "1024x1536", "1536x1024"]>>;
210
+ response_format: z.ZodOptional<z.ZodEnum<{
211
+ url: "url";
212
+ b64_json: "b64_json";
213
+ }>>;
214
+ size: z.ZodOptional<z.ZodEnum<{
215
+ "1024x1024": "1024x1024";
216
+ "1536x1024": "1536x1024";
217
+ "1024x1536": "1024x1536";
218
+ }>>;
496
219
  user: z.ZodOptional<z.ZodString>;
497
- }, "strip", z.ZodTypeAny, {
498
- image: Blob;
499
- user?: string | undefined;
500
- model?: string | undefined;
501
- response_format?: "url" | "b64_json" | undefined;
502
- n?: number | undefined;
503
- size?: "1024x1024" | "1536x1024" | "1024x1536" | undefined;
504
- }, {
505
- image: Blob;
506
- user?: string | undefined;
507
- model?: string | undefined;
508
- response_format?: "url" | "b64_json" | undefined;
509
- n?: number | undefined;
510
- size?: "1024x1024" | "1536x1024" | "1024x1536" | undefined;
511
- }>;
220
+ }, z.core.$strip>;
512
221
  export declare const OpenAiSpeechRequestSchema: z.ZodObject<{
513
222
  model: z.ZodString;
514
223
  input: z.ZodString;
515
- voice: z.ZodEnum<["alloy", "ash", "coral", "echo", "fable", "onyx", "nova", "sage", "shimmer"]>;
516
- response_format: z.ZodOptional<z.ZodEnum<["mp3", "opus", "aac", "flac", "wav", "pcm"]>>;
224
+ voice: z.ZodEnum<{
225
+ alloy: "alloy";
226
+ ash: "ash";
227
+ coral: "coral";
228
+ echo: "echo";
229
+ fable: "fable";
230
+ onyx: "onyx";
231
+ nova: "nova";
232
+ sage: "sage";
233
+ shimmer: "shimmer";
234
+ }>;
235
+ response_format: z.ZodOptional<z.ZodEnum<{
236
+ mp3: "mp3";
237
+ opus: "opus";
238
+ aac: "aac";
239
+ flac: "flac";
240
+ wav: "wav";
241
+ pcm: "pcm";
242
+ }>>;
517
243
  speed: z.ZodOptional<z.ZodNumber>;
518
244
  instructions: z.ZodOptional<z.ZodString>;
519
- }, "strip", z.ZodTypeAny, {
520
- model: string;
521
- input: string;
522
- voice: "alloy" | "ash" | "coral" | "echo" | "fable" | "onyx" | "nova" | "sage" | "shimmer";
523
- response_format?: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm" | undefined;
524
- speed?: number | undefined;
525
- instructions?: string | undefined;
526
- }, {
527
- model: string;
528
- input: string;
529
- voice: "alloy" | "ash" | "coral" | "echo" | "fable" | "onyx" | "nova" | "sage" | "shimmer";
530
- response_format?: "mp3" | "opus" | "aac" | "flac" | "wav" | "pcm" | undefined;
531
- speed?: number | undefined;
532
- instructions?: string | undefined;
533
- }>;
245
+ }, z.core.$strip>;
534
246
  export declare const OpenAiTranscribeRequestSchema: z.ZodObject<{
535
- file: z.ZodType<Blob, z.ZodTypeDef, Blob>;
247
+ file: z.ZodCustom<Blob, Blob>;
536
248
  model: z.ZodString;
537
249
  response_format: z.ZodOptional<z.ZodString>;
538
250
  language: z.ZodOptional<z.ZodString>;
539
251
  prompt: z.ZodOptional<z.ZodString>;
540
252
  temperature: z.ZodOptional<z.ZodNumber>;
541
- }, "strip", z.ZodTypeAny, {
542
- model: string;
543
- file: Blob;
544
- temperature?: number | undefined;
545
- response_format?: string | undefined;
546
- prompt?: string | undefined;
547
- language?: string | undefined;
548
- }, {
549
- model: string;
550
- file: Blob;
551
- temperature?: number | undefined;
552
- response_format?: string | undefined;
553
- prompt?: string | undefined;
554
- language?: string | undefined;
555
- }>;
253
+ }, z.core.$strip>;
556
254
  export declare const OpenAiTranslateRequestSchema: z.ZodObject<{
557
- file: z.ZodType<Blob, z.ZodTypeDef, Blob>;
255
+ file: z.ZodCustom<Blob, Blob>;
558
256
  model: z.ZodString;
559
257
  response_format: z.ZodOptional<z.ZodString>;
560
258
  prompt: z.ZodOptional<z.ZodString>;
561
259
  temperature: z.ZodOptional<z.ZodNumber>;
562
- }, "strip", z.ZodTypeAny, {
563
- model: string;
564
- file: Blob;
565
- temperature?: number | undefined;
566
- response_format?: string | undefined;
567
- prompt?: string | undefined;
568
- }, {
569
- model: string;
570
- file: Blob;
571
- temperature?: number | undefined;
572
- response_format?: string | undefined;
573
- prompt?: string | undefined;
574
- }>;
260
+ }, z.core.$strip>;
575
261
  export declare const OpenAiModerationTextInputSchema: z.ZodObject<{
576
262
  type: z.ZodLiteral<"text">;
577
263
  text: z.ZodString;
578
- }, "strip", z.ZodTypeAny, {
579
- type: "text";
580
- text: string;
581
- }, {
582
- type: "text";
583
- text: string;
584
- }>;
264
+ }, z.core.$strip>;
585
265
  export declare const OpenAiModerationImageUrlInputSchema: z.ZodObject<{
586
266
  type: z.ZodLiteral<"image_url">;
587
267
  image_url: z.ZodObject<{
588
268
  url: z.ZodString;
589
- }, "strip", z.ZodTypeAny, {
590
- url: string;
591
- }, {
592
- url: string;
593
- }>;
594
- }, "strip", z.ZodTypeAny, {
595
- type: "image_url";
596
- image_url: {
597
- url: string;
598
- };
599
- }, {
600
- type: "image_url";
601
- image_url: {
602
- url: string;
603
- };
604
- }>;
605
- export declare const OpenAiModerationMultiModalInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
269
+ }, z.core.$strip>;
270
+ }, z.core.$strip>;
271
+ export declare const OpenAiModerationMultiModalInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
606
272
  type: z.ZodLiteral<"text">;
607
273
  text: z.ZodString;
608
- }, "strip", z.ZodTypeAny, {
609
- type: "text";
610
- text: string;
611
- }, {
612
- type: "text";
613
- text: string;
614
- }>, z.ZodObject<{
274
+ }, z.core.$strip>, z.ZodObject<{
615
275
  type: z.ZodLiteral<"image_url">;
616
276
  image_url: z.ZodObject<{
617
277
  url: z.ZodString;
618
- }, "strip", z.ZodTypeAny, {
619
- url: string;
620
- }, {
621
- url: string;
622
- }>;
623
- }, "strip", z.ZodTypeAny, {
624
- type: "image_url";
625
- image_url: {
626
- url: string;
627
- };
628
- }, {
629
- type: "image_url";
630
- image_url: {
631
- url: string;
632
- };
633
- }>]>;
278
+ }, z.core.$strip>;
279
+ }, z.core.$strip>], "type">;
634
280
  export declare const OpenAiModerationRequestSchema: z.ZodObject<{
635
- input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
281
+ input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
636
282
  type: z.ZodLiteral<"text">;
637
283
  text: z.ZodString;
638
- }, "strip", z.ZodTypeAny, {
639
- type: "text";
640
- text: string;
641
- }, {
642
- type: "text";
643
- text: string;
644
- }>, z.ZodObject<{
284
+ }, z.core.$strip>, z.ZodObject<{
645
285
  type: z.ZodLiteral<"image_url">;
646
286
  image_url: z.ZodObject<{
647
287
  url: z.ZodString;
648
- }, "strip", z.ZodTypeAny, {
649
- url: string;
650
- }, {
651
- url: string;
652
- }>;
653
- }, "strip", z.ZodTypeAny, {
654
- type: "image_url";
655
- image_url: {
656
- url: string;
657
- };
658
- }, {
659
- type: "image_url";
660
- image_url: {
661
- url: string;
662
- };
663
- }>]>, "many">]>;
288
+ }, z.core.$strip>;
289
+ }, z.core.$strip>], "type">>]>;
664
290
  model: z.ZodOptional<z.ZodString>;
665
- }, "strip", z.ZodTypeAny, {
666
- input: string | string[] | ({
667
- type: "text";
668
- text: string;
669
- } | {
670
- type: "image_url";
671
- image_url: {
672
- url: string;
673
- };
674
- })[];
675
- model?: string | undefined;
676
- }, {
677
- input: string | string[] | ({
678
- type: "text";
679
- text: string;
680
- } | {
681
- type: "image_url";
682
- image_url: {
683
- url: string;
684
- };
685
- })[];
686
- model?: string | undefined;
687
- }>;
291
+ }, z.core.$strip>;
688
292
  export declare const OpenAiFileUploadRequestSchema: z.ZodObject<{
689
- file: z.ZodType<Blob, z.ZodTypeDef, Blob>;
690
- purpose: z.ZodEnum<["assistants", "batch", "fine-tune", "vision", "user_data", "evals"]>;
293
+ file: z.ZodCustom<Blob, Blob>;
294
+ purpose: z.ZodEnum<{
295
+ assistants: "assistants";
296
+ batch: "batch";
297
+ "fine-tune": "fine-tune";
298
+ vision: "vision";
299
+ user_data: "user_data";
300
+ evals: "evals";
301
+ }>;
691
302
  expires_after: z.ZodOptional<z.ZodObject<{
692
303
  anchor: z.ZodLiteral<"created_at">;
693
304
  seconds: z.ZodNumber;
694
- }, "strip", z.ZodTypeAny, {
695
- anchor: "created_at";
696
- seconds: number;
697
- }, {
698
- anchor: "created_at";
699
- seconds: number;
700
- }>>;
701
- }, "strip", z.ZodTypeAny, {
702
- file: Blob;
703
- purpose: "assistants" | "batch" | "fine-tune" | "vision" | "user_data" | "evals";
704
- expires_after?: {
705
- anchor: "created_at";
706
- seconds: number;
707
- } | undefined;
708
- }, {
709
- file: Blob;
710
- purpose: "assistants" | "batch" | "fine-tune" | "vision" | "user_data" | "evals";
711
- expires_after?: {
712
- anchor: "created_at";
713
- seconds: number;
714
- } | undefined;
715
- }>;
305
+ }, z.core.$strip>>;
306
+ }, z.core.$strip>;
716
307
  export declare const OpenAiBatchCreateRequestSchema: z.ZodObject<{
717
308
  input_file_id: z.ZodString;
718
309
  endpoint: z.ZodString;
719
310
  completion_window: z.ZodString;
720
311
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
721
- }, "strip", z.ZodTypeAny, {
722
- input_file_id: string;
723
- endpoint: string;
724
- completion_window: string;
725
- metadata?: Record<string, string> | null | undefined;
726
- }, {
727
- input_file_id: string;
728
- endpoint: string;
729
- completion_window: string;
730
- metadata?: Record<string, string> | null | undefined;
731
- }>;
312
+ }, z.core.$strip>;
732
313
  export declare const OpenAiResponseInputTextContentSchema: z.ZodObject<{
733
314
  type: z.ZodLiteral<"input_text">;
734
315
  text: z.ZodString;
735
- }, "strip", z.ZodTypeAny, {
736
- type: "input_text";
737
- text: string;
738
- }, {
739
- type: "input_text";
740
- text: string;
741
- }>;
316
+ }, z.core.$strip>;
742
317
  export declare const OpenAiResponseInputImageContentSchema: z.ZodObject<{
743
318
  type: z.ZodLiteral<"input_image">;
744
319
  image_url: z.ZodOptional<z.ZodString>;
745
320
  file_id: z.ZodOptional<z.ZodString>;
746
- detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
747
- }, "strip", z.ZodTypeAny, {
748
- type: "input_image";
749
- image_url?: string | undefined;
750
- detail?: "auto" | "low" | "high" | undefined;
751
- file_id?: string | undefined;
752
- }, {
753
- type: "input_image";
754
- image_url?: string | undefined;
755
- detail?: "auto" | "low" | "high" | undefined;
756
- file_id?: string | undefined;
757
- }>;
321
+ detail: z.ZodOptional<z.ZodEnum<{
322
+ auto: "auto";
323
+ low: "low";
324
+ high: "high";
325
+ }>>;
326
+ }, z.core.$strip>;
758
327
  export declare const OpenAiResponseInputAudioContentSchema: z.ZodObject<{
759
328
  type: z.ZodLiteral<"input_audio">;
760
329
  data: z.ZodString;
761
- format: z.ZodEnum<["wav", "mp3"]>;
762
- }, "strip", z.ZodTypeAny, {
763
- type: "input_audio";
764
- data: string;
765
- format: "mp3" | "wav";
766
- }, {
767
- type: "input_audio";
768
- data: string;
769
- format: "mp3" | "wav";
770
- }>;
771
- export declare const OpenAiResponseInputContentSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
330
+ format: z.ZodEnum<{
331
+ mp3: "mp3";
332
+ wav: "wav";
333
+ }>;
334
+ }, z.core.$strip>;
335
+ export declare const OpenAiResponseInputContentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
772
336
  type: z.ZodLiteral<"input_text">;
773
337
  text: z.ZodString;
774
- }, "strip", z.ZodTypeAny, {
775
- type: "input_text";
776
- text: string;
777
- }, {
778
- type: "input_text";
779
- text: string;
780
- }>, z.ZodObject<{
338
+ }, z.core.$strip>, z.ZodObject<{
781
339
  type: z.ZodLiteral<"input_image">;
782
340
  image_url: z.ZodOptional<z.ZodString>;
783
341
  file_id: z.ZodOptional<z.ZodString>;
784
- detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
785
- }, "strip", z.ZodTypeAny, {
786
- type: "input_image";
787
- image_url?: string | undefined;
788
- detail?: "auto" | "low" | "high" | undefined;
789
- file_id?: string | undefined;
790
- }, {
791
- type: "input_image";
792
- image_url?: string | undefined;
793
- detail?: "auto" | "low" | "high" | undefined;
794
- file_id?: string | undefined;
795
- }>, z.ZodObject<{
342
+ detail: z.ZodOptional<z.ZodEnum<{
343
+ auto: "auto";
344
+ low: "low";
345
+ high: "high";
346
+ }>>;
347
+ }, z.core.$strip>, z.ZodObject<{
796
348
  type: z.ZodLiteral<"input_audio">;
797
349
  data: z.ZodString;
798
- format: z.ZodEnum<["wav", "mp3"]>;
799
- }, "strip", z.ZodTypeAny, {
800
- type: "input_audio";
801
- data: string;
802
- format: "mp3" | "wav";
803
- }, {
804
- type: "input_audio";
805
- data: string;
806
- format: "mp3" | "wav";
807
- }>]>;
350
+ format: z.ZodEnum<{
351
+ mp3: "mp3";
352
+ wav: "wav";
353
+ }>;
354
+ }, z.core.$strip>], "type">;
808
355
  export declare const OpenAiResponseInputMessageSchema: z.ZodObject<{
809
- role: z.ZodEnum<["user", "assistant", "system", "developer"]>;
810
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
356
+ role: z.ZodEnum<{
357
+ user: "user";
358
+ assistant: "assistant";
359
+ system: "system";
360
+ developer: "developer";
361
+ }>;
362
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
811
363
  type: z.ZodLiteral<"input_text">;
812
364
  text: z.ZodString;
813
- }, "strip", z.ZodTypeAny, {
814
- type: "input_text";
815
- text: string;
816
- }, {
817
- type: "input_text";
818
- text: string;
819
- }>, z.ZodObject<{
365
+ }, z.core.$strip>, z.ZodObject<{
820
366
  type: z.ZodLiteral<"input_image">;
821
367
  image_url: z.ZodOptional<z.ZodString>;
822
368
  file_id: z.ZodOptional<z.ZodString>;
823
- detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
824
- }, "strip", z.ZodTypeAny, {
825
- type: "input_image";
826
- image_url?: string | undefined;
827
- detail?: "auto" | "low" | "high" | undefined;
828
- file_id?: string | undefined;
829
- }, {
830
- type: "input_image";
831
- image_url?: string | undefined;
832
- detail?: "auto" | "low" | "high" | undefined;
833
- file_id?: string | undefined;
834
- }>, z.ZodObject<{
369
+ detail: z.ZodOptional<z.ZodEnum<{
370
+ auto: "auto";
371
+ low: "low";
372
+ high: "high";
373
+ }>>;
374
+ }, z.core.$strip>, z.ZodObject<{
835
375
  type: z.ZodLiteral<"input_audio">;
836
376
  data: z.ZodString;
837
- format: z.ZodEnum<["wav", "mp3"]>;
838
- }, "strip", z.ZodTypeAny, {
839
- type: "input_audio";
840
- data: string;
841
- format: "mp3" | "wav";
842
- }, {
843
- type: "input_audio";
844
- data: string;
845
- format: "mp3" | "wav";
846
- }>]>, "many">]>;
847
- }, "strip", z.ZodTypeAny, {
848
- role: "user" | "assistant" | "system" | "developer";
849
- content: string | ({
850
- type: "input_text";
851
- text: string;
852
- } | {
853
- type: "input_image";
854
- image_url?: string | undefined;
855
- detail?: "auto" | "low" | "high" | undefined;
856
- file_id?: string | undefined;
857
- } | {
858
- type: "input_audio";
859
- data: string;
860
- format: "mp3" | "wav";
861
- })[];
862
- }, {
863
- role: "user" | "assistant" | "system" | "developer";
864
- content: string | ({
865
- type: "input_text";
866
- text: string;
867
- } | {
868
- type: "input_image";
869
- image_url?: string | undefined;
870
- detail?: "auto" | "low" | "high" | undefined;
871
- file_id?: string | undefined;
872
- } | {
873
- type: "input_audio";
874
- data: string;
875
- format: "mp3" | "wav";
876
- })[];
877
- }>;
377
+ format: z.ZodEnum<{
378
+ mp3: "mp3";
379
+ wav: "wav";
380
+ }>;
381
+ }, z.core.$strip>], "type">>]>;
382
+ }, z.core.$strip>;
878
383
  export declare const OpenAiResponseFunctionCallOutputSchema: z.ZodObject<{
879
384
  type: z.ZodLiteral<"function_call_output">;
880
385
  call_id: z.ZodString;
881
386
  output: z.ZodString;
882
- }, "strip", z.ZodTypeAny, {
883
- type: "function_call_output";
884
- call_id: string;
885
- output: string;
886
- }, {
887
- type: "function_call_output";
888
- call_id: string;
889
- output: string;
890
- }>;
387
+ }, z.core.$strip>;
891
388
  export declare const OpenAiResponseItemReferenceSchema: z.ZodObject<{
892
389
  type: z.ZodLiteral<"item_reference">;
893
390
  id: z.ZodString;
894
- }, "strip", z.ZodTypeAny, {
895
- type: "item_reference";
896
- id: string;
897
- }, {
898
- type: "item_reference";
899
- id: string;
900
- }>;
901
- export declare const OpenAiResponseInputItemSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
902
- role: z.ZodEnum<["user", "assistant", "system", "developer"]>;
903
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
391
+ }, z.core.$strip>;
392
+ export declare const OpenAiResponseInputItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
393
+ role: z.ZodEnum<{
394
+ user: "user";
395
+ assistant: "assistant";
396
+ system: "system";
397
+ developer: "developer";
398
+ }>;
399
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
904
400
  type: z.ZodLiteral<"input_text">;
905
401
  text: z.ZodString;
906
- }, "strip", z.ZodTypeAny, {
907
- type: "input_text";
908
- text: string;
909
- }, {
910
- type: "input_text";
911
- text: string;
912
- }>, z.ZodObject<{
402
+ }, z.core.$strip>, z.ZodObject<{
913
403
  type: z.ZodLiteral<"input_image">;
914
404
  image_url: z.ZodOptional<z.ZodString>;
915
405
  file_id: z.ZodOptional<z.ZodString>;
916
- detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
917
- }, "strip", z.ZodTypeAny, {
918
- type: "input_image";
919
- image_url?: string | undefined;
920
- detail?: "auto" | "low" | "high" | undefined;
921
- file_id?: string | undefined;
922
- }, {
923
- type: "input_image";
924
- image_url?: string | undefined;
925
- detail?: "auto" | "low" | "high" | undefined;
926
- file_id?: string | undefined;
927
- }>, z.ZodObject<{
406
+ detail: z.ZodOptional<z.ZodEnum<{
407
+ auto: "auto";
408
+ low: "low";
409
+ high: "high";
410
+ }>>;
411
+ }, z.core.$strip>, z.ZodObject<{
928
412
  type: z.ZodLiteral<"input_audio">;
929
413
  data: z.ZodString;
930
- format: z.ZodEnum<["wav", "mp3"]>;
931
- }, "strip", z.ZodTypeAny, {
932
- type: "input_audio";
933
- data: string;
934
- format: "mp3" | "wav";
935
- }, {
936
- type: "input_audio";
937
- data: string;
938
- format: "mp3" | "wav";
939
- }>]>, "many">]>;
940
- } & {
414
+ format: z.ZodEnum<{
415
+ mp3: "mp3";
416
+ wav: "wav";
417
+ }>;
418
+ }, z.core.$strip>], "type">>]>;
941
419
  type: z.ZodOptional<z.ZodLiteral<"message">>;
942
- }, "strip", z.ZodTypeAny, {
943
- role: "user" | "assistant" | "system" | "developer";
944
- content: string | ({
945
- type: "input_text";
946
- text: string;
947
- } | {
948
- type: "input_image";
949
- image_url?: string | undefined;
950
- detail?: "auto" | "low" | "high" | undefined;
951
- file_id?: string | undefined;
952
- } | {
953
- type: "input_audio";
954
- data: string;
955
- format: "mp3" | "wav";
956
- })[];
957
- type?: "message" | undefined;
958
- }, {
959
- role: "user" | "assistant" | "system" | "developer";
960
- content: string | ({
961
- type: "input_text";
962
- text: string;
963
- } | {
964
- type: "input_image";
965
- image_url?: string | undefined;
966
- detail?: "auto" | "low" | "high" | undefined;
967
- file_id?: string | undefined;
968
- } | {
969
- type: "input_audio";
970
- data: string;
971
- format: "mp3" | "wav";
972
- })[];
973
- type?: "message" | undefined;
974
- }>, z.ZodObject<{
420
+ }, z.core.$strip>, z.ZodObject<{
975
421
  type: z.ZodLiteral<"function_call_output">;
976
422
  call_id: z.ZodString;
977
423
  output: z.ZodString;
978
- }, "strip", z.ZodTypeAny, {
979
- type: "function_call_output";
980
- call_id: string;
981
- output: string;
982
- }, {
983
- type: "function_call_output";
984
- call_id: string;
985
- output: string;
986
- }>, z.ZodObject<{
424
+ }, z.core.$strip>, z.ZodObject<{
987
425
  type: z.ZodLiteral<"item_reference">;
988
426
  id: z.ZodString;
989
- }, "strip", z.ZodTypeAny, {
990
- type: "item_reference";
991
- id: string;
992
- }, {
993
- type: "item_reference";
994
- id: string;
995
- }>]>;
427
+ }, z.core.$strip>], "type">;
996
428
  export declare const OpenAiResponseFunctionToolSchema: z.ZodObject<{
997
429
  type: z.ZodLiteral<"function">;
998
430
  name: z.ZodString;
999
431
  description: z.ZodOptional<z.ZodString>;
1000
432
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1001
433
  strict: z.ZodOptional<z.ZodBoolean>;
1002
- }, "strip", z.ZodTypeAny, {
1003
- type: "function";
1004
- name: string;
1005
- strict?: boolean | undefined;
1006
- description?: string | undefined;
1007
- parameters?: Record<string, unknown> | undefined;
1008
- }, {
1009
- type: "function";
1010
- name: string;
1011
- strict?: boolean | undefined;
1012
- description?: string | undefined;
1013
- parameters?: Record<string, unknown> | undefined;
1014
- }>;
434
+ }, z.core.$strip>;
1015
435
  export declare const OpenAiResponseWebSearchToolSchema: z.ZodObject<{
1016
- type: z.ZodEnum<["web_search_preview", "web_search_preview_2025_03_11"]>;
1017
- search_context_size: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
436
+ type: z.ZodEnum<{
437
+ web_search_preview: "web_search_preview";
438
+ web_search_preview_2025_03_11: "web_search_preview_2025_03_11";
439
+ }>;
440
+ search_context_size: z.ZodOptional<z.ZodEnum<{
441
+ low: "low";
442
+ high: "high";
443
+ medium: "medium";
444
+ }>>;
1018
445
  user_location: z.ZodOptional<z.ZodObject<{
1019
446
  type: z.ZodLiteral<"approximate">;
1020
447
  city: z.ZodOptional<z.ZodString>;
1021
448
  state: z.ZodOptional<z.ZodString>;
1022
449
  country: z.ZodOptional<z.ZodString>;
1023
450
  timezone: z.ZodOptional<z.ZodString>;
1024
- }, "strip", z.ZodTypeAny, {
1025
- type: "approximate";
1026
- city?: string | undefined;
1027
- state?: string | undefined;
1028
- country?: string | undefined;
1029
- timezone?: string | undefined;
1030
- }, {
1031
- type: "approximate";
1032
- city?: string | undefined;
1033
- state?: string | undefined;
1034
- country?: string | undefined;
1035
- timezone?: string | undefined;
1036
- }>>;
1037
- }, "strip", z.ZodTypeAny, {
1038
- type: "web_search_preview" | "web_search_preview_2025_03_11";
1039
- search_context_size?: "low" | "high" | "medium" | undefined;
1040
- user_location?: {
1041
- type: "approximate";
1042
- city?: string | undefined;
1043
- state?: string | undefined;
1044
- country?: string | undefined;
1045
- timezone?: string | undefined;
1046
- } | undefined;
1047
- }, {
1048
- type: "web_search_preview" | "web_search_preview_2025_03_11";
1049
- search_context_size?: "low" | "high" | "medium" | undefined;
1050
- user_location?: {
1051
- type: "approximate";
1052
- city?: string | undefined;
1053
- state?: string | undefined;
1054
- country?: string | undefined;
1055
- timezone?: string | undefined;
1056
- } | undefined;
1057
- }>;
451
+ }, z.core.$strip>>;
452
+ }, z.core.$strip>;
1058
453
  export declare const OpenAiResponseFileSearchToolSchema: z.ZodObject<{
1059
454
  type: z.ZodLiteral<"file_search">;
1060
- vector_store_ids: z.ZodArray<z.ZodString, "many">;
455
+ vector_store_ids: z.ZodArray<z.ZodString>;
1061
456
  max_num_results: z.ZodOptional<z.ZodNumber>;
1062
457
  ranking_options: z.ZodOptional<z.ZodObject<{
1063
458
  ranker: z.ZodOptional<z.ZodString>;
1064
459
  score_threshold: z.ZodOptional<z.ZodNumber>;
1065
- }, "strip", z.ZodTypeAny, {
1066
- ranker?: string | undefined;
1067
- score_threshold?: number | undefined;
1068
- }, {
1069
- ranker?: string | undefined;
1070
- score_threshold?: number | undefined;
1071
- }>>;
1072
- }, "strip", z.ZodTypeAny, {
1073
- type: "file_search";
1074
- vector_store_ids: string[];
1075
- max_num_results?: number | undefined;
1076
- ranking_options?: {
1077
- ranker?: string | undefined;
1078
- score_threshold?: number | undefined;
1079
- } | undefined;
1080
- }, {
1081
- type: "file_search";
1082
- vector_store_ids: string[];
1083
- max_num_results?: number | undefined;
1084
- ranking_options?: {
1085
- ranker?: string | undefined;
1086
- score_threshold?: number | undefined;
1087
- } | undefined;
1088
- }>;
460
+ }, z.core.$strip>>;
461
+ }, z.core.$strip>;
1089
462
  export declare const OpenAiResponseCodeInterpreterToolSchema: z.ZodObject<{
1090
463
  type: z.ZodLiteral<"code_interpreter">;
1091
- }, "strip", z.ZodTypeAny, {
1092
- type: "code_interpreter";
1093
- }, {
1094
- type: "code_interpreter";
1095
- }>;
1096
- export declare const OpenAiResponseToolSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
464
+ }, z.core.$strip>;
465
+ export declare const OpenAiResponseToolSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1097
466
  type: z.ZodLiteral<"function">;
1098
467
  name: z.ZodString;
1099
468
  description: z.ZodOptional<z.ZodString>;
1100
469
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1101
470
  strict: z.ZodOptional<z.ZodBoolean>;
1102
- }, "strip", z.ZodTypeAny, {
1103
- type: "function";
1104
- name: string;
1105
- strict?: boolean | undefined;
1106
- description?: string | undefined;
1107
- parameters?: Record<string, unknown> | undefined;
1108
- }, {
1109
- type: "function";
1110
- name: string;
1111
- strict?: boolean | undefined;
1112
- description?: string | undefined;
1113
- parameters?: Record<string, unknown> | undefined;
1114
- }>, z.ZodObject<{
471
+ }, z.core.$strip>, z.ZodObject<{
1115
472
  type: z.ZodLiteral<"file_search">;
1116
- vector_store_ids: z.ZodArray<z.ZodString, "many">;
473
+ vector_store_ids: z.ZodArray<z.ZodString>;
1117
474
  max_num_results: z.ZodOptional<z.ZodNumber>;
1118
475
  ranking_options: z.ZodOptional<z.ZodObject<{
1119
476
  ranker: z.ZodOptional<z.ZodString>;
1120
477
  score_threshold: z.ZodOptional<z.ZodNumber>;
1121
- }, "strip", z.ZodTypeAny, {
1122
- ranker?: string | undefined;
1123
- score_threshold?: number | undefined;
1124
- }, {
1125
- ranker?: string | undefined;
1126
- score_threshold?: number | undefined;
1127
- }>>;
1128
- }, "strip", z.ZodTypeAny, {
1129
- type: "file_search";
1130
- vector_store_ids: string[];
1131
- max_num_results?: number | undefined;
1132
- ranking_options?: {
1133
- ranker?: string | undefined;
1134
- score_threshold?: number | undefined;
1135
- } | undefined;
1136
- }, {
1137
- type: "file_search";
1138
- vector_store_ids: string[];
1139
- max_num_results?: number | undefined;
1140
- ranking_options?: {
1141
- ranker?: string | undefined;
1142
- score_threshold?: number | undefined;
1143
- } | undefined;
1144
- }>, z.ZodObject<{
478
+ }, z.core.$strip>>;
479
+ }, z.core.$strip>, z.ZodObject<{
1145
480
  type: z.ZodLiteral<"code_interpreter">;
1146
- }, "strip", z.ZodTypeAny, {
1147
- type: "code_interpreter";
1148
- }, {
1149
- type: "code_interpreter";
1150
- }>, z.ZodObject<{
1151
- search_context_size: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
481
+ }, z.core.$strip>, z.ZodObject<{
482
+ search_context_size: z.ZodOptional<z.ZodEnum<{
483
+ low: "low";
484
+ high: "high";
485
+ medium: "medium";
486
+ }>>;
1152
487
  user_location: z.ZodOptional<z.ZodObject<{
1153
488
  type: z.ZodLiteral<"approximate">;
1154
489
  city: z.ZodOptional<z.ZodString>;
1155
490
  state: z.ZodOptional<z.ZodString>;
1156
491
  country: z.ZodOptional<z.ZodString>;
1157
492
  timezone: z.ZodOptional<z.ZodString>;
1158
- }, "strip", z.ZodTypeAny, {
1159
- type: "approximate";
1160
- city?: string | undefined;
1161
- state?: string | undefined;
1162
- country?: string | undefined;
1163
- timezone?: string | undefined;
1164
- }, {
1165
- type: "approximate";
1166
- city?: string | undefined;
1167
- state?: string | undefined;
1168
- country?: string | undefined;
1169
- timezone?: string | undefined;
1170
- }>>;
1171
- } & {
493
+ }, z.core.$strip>>;
1172
494
  type: z.ZodLiteral<"web_search_preview">;
1173
- }, "strip", z.ZodTypeAny, {
1174
- type: "web_search_preview";
1175
- search_context_size?: "low" | "high" | "medium" | undefined;
1176
- user_location?: {
1177
- type: "approximate";
1178
- city?: string | undefined;
1179
- state?: string | undefined;
1180
- country?: string | undefined;
1181
- timezone?: string | undefined;
1182
- } | undefined;
1183
- }, {
1184
- type: "web_search_preview";
1185
- search_context_size?: "low" | "high" | "medium" | undefined;
1186
- user_location?: {
1187
- type: "approximate";
1188
- city?: string | undefined;
1189
- state?: string | undefined;
1190
- country?: string | undefined;
1191
- timezone?: string | undefined;
1192
- } | undefined;
1193
- }>, z.ZodObject<{
1194
- search_context_size: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
495
+ }, z.core.$strip>, z.ZodObject<{
496
+ search_context_size: z.ZodOptional<z.ZodEnum<{
497
+ low: "low";
498
+ high: "high";
499
+ medium: "medium";
500
+ }>>;
1195
501
  user_location: z.ZodOptional<z.ZodObject<{
1196
502
  type: z.ZodLiteral<"approximate">;
1197
503
  city: z.ZodOptional<z.ZodString>;
1198
504
  state: z.ZodOptional<z.ZodString>;
1199
505
  country: z.ZodOptional<z.ZodString>;
1200
506
  timezone: z.ZodOptional<z.ZodString>;
1201
- }, "strip", z.ZodTypeAny, {
1202
- type: "approximate";
1203
- city?: string | undefined;
1204
- state?: string | undefined;
1205
- country?: string | undefined;
1206
- timezone?: string | undefined;
1207
- }, {
1208
- type: "approximate";
1209
- city?: string | undefined;
1210
- state?: string | undefined;
1211
- country?: string | undefined;
1212
- timezone?: string | undefined;
1213
- }>>;
1214
- } & {
507
+ }, z.core.$strip>>;
1215
508
  type: z.ZodLiteral<"web_search_preview_2025_03_11">;
1216
- }, "strip", z.ZodTypeAny, {
1217
- type: "web_search_preview_2025_03_11";
1218
- search_context_size?: "low" | "high" | "medium" | undefined;
1219
- user_location?: {
1220
- type: "approximate";
1221
- city?: string | undefined;
1222
- state?: string | undefined;
1223
- country?: string | undefined;
1224
- timezone?: string | undefined;
1225
- } | undefined;
1226
- }, {
1227
- type: "web_search_preview_2025_03_11";
1228
- search_context_size?: "low" | "high" | "medium" | undefined;
1229
- user_location?: {
1230
- type: "approximate";
1231
- city?: string | undefined;
1232
- state?: string | undefined;
1233
- country?: string | undefined;
1234
- timezone?: string | undefined;
1235
- } | undefined;
1236
- }>]>;
509
+ }, z.core.$strip>], "type">;
1237
510
  export declare const OpenAiResponseTextFormatSchema: z.ZodObject<{
1238
- format: z.ZodUnion<[z.ZodObject<{
511
+ format: z.ZodUnion<readonly [z.ZodObject<{
1239
512
  type: z.ZodLiteral<"text">;
1240
- }, "strip", z.ZodTypeAny, {
1241
- type: "text";
1242
- }, {
1243
- type: "text";
1244
- }>, z.ZodObject<{
513
+ }, z.core.$strip>, z.ZodObject<{
1245
514
  type: z.ZodLiteral<"json_object">;
1246
- }, "strip", z.ZodTypeAny, {
1247
- type: "json_object";
1248
- }, {
1249
- type: "json_object";
1250
- }>, z.ZodObject<{
515
+ }, z.core.$strip>, z.ZodObject<{
1251
516
  type: z.ZodLiteral<"json_schema">;
1252
517
  name: z.ZodString;
1253
518
  schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1254
519
  description: z.ZodOptional<z.ZodString>;
1255
520
  strict: z.ZodOptional<z.ZodBoolean>;
1256
- }, "strip", z.ZodTypeAny, {
1257
- type: "json_schema";
1258
- name: string;
1259
- schema: Record<string, unknown>;
1260
- strict?: boolean | undefined;
1261
- description?: string | undefined;
1262
- }, {
1263
- type: "json_schema";
1264
- name: string;
1265
- schema: Record<string, unknown>;
1266
- strict?: boolean | undefined;
1267
- description?: string | undefined;
1268
- }>]>;
1269
- }, "strip", z.ZodTypeAny, {
1270
- format: {
1271
- type: "text";
1272
- } | {
1273
- type: "json_object";
1274
- } | {
1275
- type: "json_schema";
1276
- name: string;
1277
- schema: Record<string, unknown>;
1278
- strict?: boolean | undefined;
1279
- description?: string | undefined;
1280
- };
1281
- }, {
1282
- format: {
1283
- type: "text";
1284
- } | {
1285
- type: "json_object";
1286
- } | {
1287
- type: "json_schema";
1288
- name: string;
1289
- schema: Record<string, unknown>;
1290
- strict?: boolean | undefined;
1291
- description?: string | undefined;
1292
- };
1293
- }>;
521
+ }, z.core.$strip>]>;
522
+ }, z.core.$strip>;
1294
523
  export declare const OpenAiResponseReasoningSchema: z.ZodObject<{
1295
- effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1296
- summary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["auto", "concise", "detailed"]>>>;
1297
- }, "strip", z.ZodTypeAny, {
1298
- effort?: "low" | "high" | "medium" | undefined;
1299
- summary?: "auto" | "concise" | "detailed" | null | undefined;
1300
- }, {
1301
- effort?: "low" | "high" | "medium" | undefined;
1302
- summary?: "auto" | "concise" | "detailed" | null | undefined;
1303
- }>;
524
+ effort: z.ZodOptional<z.ZodEnum<{
525
+ low: "low";
526
+ high: "high";
527
+ medium: "medium";
528
+ }>>;
529
+ summary: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
530
+ auto: "auto";
531
+ concise: "concise";
532
+ detailed: "detailed";
533
+ }>>>;
534
+ }, z.core.$strip>;
1304
535
  export declare const OpenAiResponseRequestSchema: z.ZodObject<{
1305
536
  model: z.ZodString;
1306
- input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1307
- role: z.ZodEnum<["user", "assistant", "system", "developer"]>;
1308
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
537
+ input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
538
+ role: z.ZodEnum<{
539
+ user: "user";
540
+ assistant: "assistant";
541
+ system: "system";
542
+ developer: "developer";
543
+ }>;
544
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1309
545
  type: z.ZodLiteral<"input_text">;
1310
546
  text: z.ZodString;
1311
- }, "strip", z.ZodTypeAny, {
1312
- type: "input_text";
1313
- text: string;
1314
- }, {
1315
- type: "input_text";
1316
- text: string;
1317
- }>, z.ZodObject<{
547
+ }, z.core.$strip>, z.ZodObject<{
1318
548
  type: z.ZodLiteral<"input_image">;
1319
549
  image_url: z.ZodOptional<z.ZodString>;
1320
550
  file_id: z.ZodOptional<z.ZodString>;
1321
- detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
1322
- }, "strip", z.ZodTypeAny, {
1323
- type: "input_image";
1324
- image_url?: string | undefined;
1325
- detail?: "auto" | "low" | "high" | undefined;
1326
- file_id?: string | undefined;
1327
- }, {
1328
- type: "input_image";
1329
- image_url?: string | undefined;
1330
- detail?: "auto" | "low" | "high" | undefined;
1331
- file_id?: string | undefined;
1332
- }>, z.ZodObject<{
551
+ detail: z.ZodOptional<z.ZodEnum<{
552
+ auto: "auto";
553
+ low: "low";
554
+ high: "high";
555
+ }>>;
556
+ }, z.core.$strip>, z.ZodObject<{
1333
557
  type: z.ZodLiteral<"input_audio">;
1334
558
  data: z.ZodString;
1335
- format: z.ZodEnum<["wav", "mp3"]>;
1336
- }, "strip", z.ZodTypeAny, {
1337
- type: "input_audio";
1338
- data: string;
1339
- format: "mp3" | "wav";
1340
- }, {
1341
- type: "input_audio";
1342
- data: string;
1343
- format: "mp3" | "wav";
1344
- }>]>, "many">]>;
1345
- }, "strip", z.ZodTypeAny, {
1346
- role: "user" | "assistant" | "system" | "developer";
1347
- content: string | ({
1348
- type: "input_text";
1349
- text: string;
1350
- } | {
1351
- type: "input_image";
1352
- image_url?: string | undefined;
1353
- detail?: "auto" | "low" | "high" | undefined;
1354
- file_id?: string | undefined;
1355
- } | {
1356
- type: "input_audio";
1357
- data: string;
1358
- format: "mp3" | "wav";
1359
- })[];
1360
- }, {
1361
- role: "user" | "assistant" | "system" | "developer";
1362
- content: string | ({
1363
- type: "input_text";
1364
- text: string;
1365
- } | {
1366
- type: "input_image";
1367
- image_url?: string | undefined;
1368
- detail?: "auto" | "low" | "high" | undefined;
1369
- file_id?: string | undefined;
1370
- } | {
1371
- type: "input_audio";
1372
- data: string;
1373
- format: "mp3" | "wav";
1374
- })[];
1375
- }>, z.ZodObject<{
559
+ format: z.ZodEnum<{
560
+ mp3: "mp3";
561
+ wav: "wav";
562
+ }>;
563
+ }, z.core.$strip>], "type">>]>;
564
+ }, z.core.$strip>, z.ZodObject<{
1376
565
  type: z.ZodLiteral<"function_call_output">;
1377
566
  call_id: z.ZodString;
1378
567
  output: z.ZodString;
1379
- }, "strip", z.ZodTypeAny, {
1380
- type: "function_call_output";
1381
- call_id: string;
1382
- output: string;
1383
- }, {
1384
- type: "function_call_output";
1385
- call_id: string;
1386
- output: string;
1387
- }>, z.ZodObject<{
568
+ }, z.core.$strip>, z.ZodObject<{
1388
569
  type: z.ZodLiteral<"item_reference">;
1389
570
  id: z.ZodString;
1390
- }, "strip", z.ZodTypeAny, {
1391
- type: "item_reference";
1392
- id: string;
1393
- }, {
1394
- type: "item_reference";
1395
- id: string;
1396
- }>]>, "many">]>;
571
+ }, z.core.$strip>]>>]>;
1397
572
  instructions: z.ZodOptional<z.ZodString>;
1398
573
  temperature: z.ZodOptional<z.ZodNumber>;
1399
574
  max_output_tokens: z.ZodOptional<z.ZodNumber>;
1400
575
  top_p: z.ZodOptional<z.ZodNumber>;
1401
- tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
576
+ tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1402
577
  type: z.ZodLiteral<"function">;
1403
578
  name: z.ZodString;
1404
579
  description: z.ZodOptional<z.ZodString>;
1405
580
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1406
581
  strict: z.ZodOptional<z.ZodBoolean>;
1407
- }, "strip", z.ZodTypeAny, {
1408
- type: "function";
1409
- name: string;
1410
- strict?: boolean | undefined;
1411
- description?: string | undefined;
1412
- parameters?: Record<string, unknown> | undefined;
1413
- }, {
1414
- type: "function";
1415
- name: string;
1416
- strict?: boolean | undefined;
1417
- description?: string | undefined;
1418
- parameters?: Record<string, unknown> | undefined;
1419
- }>, z.ZodObject<{
582
+ }, z.core.$strip>, z.ZodObject<{
1420
583
  type: z.ZodLiteral<"file_search">;
1421
- vector_store_ids: z.ZodArray<z.ZodString, "many">;
584
+ vector_store_ids: z.ZodArray<z.ZodString>;
1422
585
  max_num_results: z.ZodOptional<z.ZodNumber>;
1423
586
  ranking_options: z.ZodOptional<z.ZodObject<{
1424
587
  ranker: z.ZodOptional<z.ZodString>;
1425
588
  score_threshold: z.ZodOptional<z.ZodNumber>;
1426
- }, "strip", z.ZodTypeAny, {
1427
- ranker?: string | undefined;
1428
- score_threshold?: number | undefined;
1429
- }, {
1430
- ranker?: string | undefined;
1431
- score_threshold?: number | undefined;
1432
- }>>;
1433
- }, "strip", z.ZodTypeAny, {
1434
- type: "file_search";
1435
- vector_store_ids: string[];
1436
- max_num_results?: number | undefined;
1437
- ranking_options?: {
1438
- ranker?: string | undefined;
1439
- score_threshold?: number | undefined;
1440
- } | undefined;
1441
- }, {
1442
- type: "file_search";
1443
- vector_store_ids: string[];
1444
- max_num_results?: number | undefined;
1445
- ranking_options?: {
1446
- ranker?: string | undefined;
1447
- score_threshold?: number | undefined;
1448
- } | undefined;
1449
- }>, z.ZodObject<{
589
+ }, z.core.$strip>>;
590
+ }, z.core.$strip>, z.ZodObject<{
1450
591
  type: z.ZodLiteral<"code_interpreter">;
1451
- }, "strip", z.ZodTypeAny, {
1452
- type: "code_interpreter";
1453
- }, {
1454
- type: "code_interpreter";
1455
- }>, z.ZodObject<{
1456
- search_context_size: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
592
+ }, z.core.$strip>, z.ZodObject<{
593
+ search_context_size: z.ZodOptional<z.ZodEnum<{
594
+ low: "low";
595
+ high: "high";
596
+ medium: "medium";
597
+ }>>;
1457
598
  user_location: z.ZodOptional<z.ZodObject<{
1458
599
  type: z.ZodLiteral<"approximate">;
1459
600
  city: z.ZodOptional<z.ZodString>;
1460
601
  state: z.ZodOptional<z.ZodString>;
1461
602
  country: z.ZodOptional<z.ZodString>;
1462
603
  timezone: z.ZodOptional<z.ZodString>;
1463
- }, "strip", z.ZodTypeAny, {
1464
- type: "approximate";
1465
- city?: string | undefined;
1466
- state?: string | undefined;
1467
- country?: string | undefined;
1468
- timezone?: string | undefined;
1469
- }, {
1470
- type: "approximate";
1471
- city?: string | undefined;
1472
- state?: string | undefined;
1473
- country?: string | undefined;
1474
- timezone?: string | undefined;
1475
- }>>;
1476
- } & {
604
+ }, z.core.$strip>>;
1477
605
  type: z.ZodLiteral<"web_search_preview">;
1478
- }, "strip", z.ZodTypeAny, {
1479
- type: "web_search_preview";
1480
- search_context_size?: "low" | "high" | "medium" | undefined;
1481
- user_location?: {
1482
- type: "approximate";
1483
- city?: string | undefined;
1484
- state?: string | undefined;
1485
- country?: string | undefined;
1486
- timezone?: string | undefined;
1487
- } | undefined;
1488
- }, {
1489
- type: "web_search_preview";
1490
- search_context_size?: "low" | "high" | "medium" | undefined;
1491
- user_location?: {
1492
- type: "approximate";
1493
- city?: string | undefined;
1494
- state?: string | undefined;
1495
- country?: string | undefined;
1496
- timezone?: string | undefined;
1497
- } | undefined;
1498
- }>, z.ZodObject<{
1499
- search_context_size: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
606
+ }, z.core.$strip>, z.ZodObject<{
607
+ search_context_size: z.ZodOptional<z.ZodEnum<{
608
+ low: "low";
609
+ high: "high";
610
+ medium: "medium";
611
+ }>>;
1500
612
  user_location: z.ZodOptional<z.ZodObject<{
1501
613
  type: z.ZodLiteral<"approximate">;
1502
614
  city: z.ZodOptional<z.ZodString>;
1503
615
  state: z.ZodOptional<z.ZodString>;
1504
616
  country: z.ZodOptional<z.ZodString>;
1505
617
  timezone: z.ZodOptional<z.ZodString>;
1506
- }, "strip", z.ZodTypeAny, {
1507
- type: "approximate";
1508
- city?: string | undefined;
1509
- state?: string | undefined;
1510
- country?: string | undefined;
1511
- timezone?: string | undefined;
1512
- }, {
1513
- type: "approximate";
1514
- city?: string | undefined;
1515
- state?: string | undefined;
1516
- country?: string | undefined;
1517
- timezone?: string | undefined;
1518
- }>>;
1519
- } & {
618
+ }, z.core.$strip>>;
1520
619
  type: z.ZodLiteral<"web_search_preview_2025_03_11">;
1521
- }, "strip", z.ZodTypeAny, {
1522
- type: "web_search_preview_2025_03_11";
1523
- search_context_size?: "low" | "high" | "medium" | undefined;
1524
- user_location?: {
1525
- type: "approximate";
1526
- city?: string | undefined;
1527
- state?: string | undefined;
1528
- country?: string | undefined;
1529
- timezone?: string | undefined;
1530
- } | undefined;
1531
- }, {
1532
- type: "web_search_preview_2025_03_11";
1533
- search_context_size?: "low" | "high" | "medium" | undefined;
1534
- user_location?: {
1535
- type: "approximate";
1536
- city?: string | undefined;
1537
- state?: string | undefined;
1538
- country?: string | undefined;
1539
- timezone?: string | undefined;
1540
- } | undefined;
1541
- }>]>, "many">>;
1542
- tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
620
+ }, z.core.$strip>], "type">>>;
621
+ tool_choice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
622
+ auto: "auto";
623
+ none: "none";
624
+ required: "required";
625
+ }>, z.ZodObject<{
1543
626
  type: z.ZodString;
1544
627
  name: z.ZodOptional<z.ZodString>;
1545
- }, "strip", z.ZodTypeAny, {
1546
- type: string;
1547
- name?: string | undefined;
1548
- }, {
1549
- type: string;
1550
- name?: string | undefined;
1551
- }>]>>;
628
+ }, z.core.$strip>]>>;
1552
629
  previous_response_id: z.ZodOptional<z.ZodString>;
1553
630
  store: z.ZodOptional<z.ZodBoolean>;
1554
631
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1555
632
  stream: z.ZodOptional<z.ZodBoolean>;
1556
633
  text: z.ZodOptional<z.ZodObject<{
1557
- format: z.ZodUnion<[z.ZodObject<{
634
+ format: z.ZodUnion<readonly [z.ZodObject<{
1558
635
  type: z.ZodLiteral<"text">;
1559
- }, "strip", z.ZodTypeAny, {
1560
- type: "text";
1561
- }, {
1562
- type: "text";
1563
- }>, z.ZodObject<{
636
+ }, z.core.$strip>, z.ZodObject<{
1564
637
  type: z.ZodLiteral<"json_object">;
1565
- }, "strip", z.ZodTypeAny, {
1566
- type: "json_object";
1567
- }, {
1568
- type: "json_object";
1569
- }>, z.ZodObject<{
638
+ }, z.core.$strip>, z.ZodObject<{
1570
639
  type: z.ZodLiteral<"json_schema">;
1571
640
  name: z.ZodString;
1572
641
  schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1573
642
  description: z.ZodOptional<z.ZodString>;
1574
643
  strict: z.ZodOptional<z.ZodBoolean>;
1575
- }, "strip", z.ZodTypeAny, {
1576
- type: "json_schema";
1577
- name: string;
1578
- schema: Record<string, unknown>;
1579
- strict?: boolean | undefined;
1580
- description?: string | undefined;
1581
- }, {
1582
- type: "json_schema";
1583
- name: string;
1584
- schema: Record<string, unknown>;
1585
- strict?: boolean | undefined;
1586
- description?: string | undefined;
1587
- }>]>;
1588
- }, "strip", z.ZodTypeAny, {
1589
- format: {
1590
- type: "text";
1591
- } | {
1592
- type: "json_object";
1593
- } | {
1594
- type: "json_schema";
1595
- name: string;
1596
- schema: Record<string, unknown>;
1597
- strict?: boolean | undefined;
1598
- description?: string | undefined;
1599
- };
1600
- }, {
1601
- format: {
1602
- type: "text";
1603
- } | {
1604
- type: "json_object";
1605
- } | {
1606
- type: "json_schema";
1607
- name: string;
1608
- schema: Record<string, unknown>;
1609
- strict?: boolean | undefined;
1610
- description?: string | undefined;
1611
- };
644
+ }, z.core.$strip>]>;
645
+ }, z.core.$strip>>;
646
+ truncation: z.ZodOptional<z.ZodEnum<{
647
+ auto: "auto";
648
+ disabled: "disabled";
1612
649
  }>>;
1613
- truncation: z.ZodOptional<z.ZodEnum<["auto", "disabled"]>>;
1614
650
  reasoning: z.ZodOptional<z.ZodObject<{
1615
- effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1616
- summary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["auto", "concise", "detailed"]>>>;
1617
- }, "strip", z.ZodTypeAny, {
1618
- effort?: "low" | "high" | "medium" | undefined;
1619
- summary?: "auto" | "concise" | "detailed" | null | undefined;
1620
- }, {
1621
- effort?: "low" | "high" | "medium" | undefined;
1622
- summary?: "auto" | "concise" | "detailed" | null | undefined;
1623
- }>>;
651
+ effort: z.ZodOptional<z.ZodEnum<{
652
+ low: "low";
653
+ high: "high";
654
+ medium: "medium";
655
+ }>>;
656
+ summary: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
657
+ auto: "auto";
658
+ concise: "concise";
659
+ detailed: "detailed";
660
+ }>>>;
661
+ }, z.core.$strip>>;
1624
662
  user: z.ZodOptional<z.ZodString>;
1625
- include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
663
+ include: z.ZodOptional<z.ZodArray<z.ZodString>>;
1626
664
  parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
1627
- }, "strip", z.ZodTypeAny, {
1628
- model: string;
1629
- input: string | ({
1630
- role: "user" | "assistant" | "system" | "developer";
1631
- content: string | ({
1632
- type: "input_text";
1633
- text: string;
1634
- } | {
1635
- type: "input_image";
1636
- image_url?: string | undefined;
1637
- detail?: "auto" | "low" | "high" | undefined;
1638
- file_id?: string | undefined;
1639
- } | {
1640
- type: "input_audio";
1641
- data: string;
1642
- format: "mp3" | "wav";
1643
- })[];
1644
- } | {
1645
- type: "function_call_output";
1646
- call_id: string;
1647
- output: string;
1648
- } | {
1649
- type: "item_reference";
1650
- id: string;
1651
- })[];
1652
- user?: string | undefined;
1653
- text?: {
1654
- format: {
1655
- type: "text";
1656
- } | {
1657
- type: "json_object";
1658
- } | {
1659
- type: "json_schema";
1660
- name: string;
1661
- schema: Record<string, unknown>;
1662
- strict?: boolean | undefined;
1663
- description?: string | undefined;
1664
- };
1665
- } | undefined;
1666
- temperature?: number | undefined;
1667
- tools?: ({
1668
- type: "function";
1669
- name: string;
1670
- strict?: boolean | undefined;
1671
- description?: string | undefined;
1672
- parameters?: Record<string, unknown> | undefined;
1673
- } | {
1674
- type: "file_search";
1675
- vector_store_ids: string[];
1676
- max_num_results?: number | undefined;
1677
- ranking_options?: {
1678
- ranker?: string | undefined;
1679
- score_threshold?: number | undefined;
1680
- } | undefined;
1681
- } | {
1682
- type: "code_interpreter";
1683
- } | {
1684
- type: "web_search_preview";
1685
- search_context_size?: "low" | "high" | "medium" | undefined;
1686
- user_location?: {
1687
- type: "approximate";
1688
- city?: string | undefined;
1689
- state?: string | undefined;
1690
- country?: string | undefined;
1691
- timezone?: string | undefined;
1692
- } | undefined;
1693
- } | {
1694
- type: "web_search_preview_2025_03_11";
1695
- search_context_size?: "low" | "high" | "medium" | undefined;
1696
- user_location?: {
1697
- type: "approximate";
1698
- city?: string | undefined;
1699
- state?: string | undefined;
1700
- country?: string | undefined;
1701
- timezone?: string | undefined;
1702
- } | undefined;
1703
- })[] | undefined;
1704
- tool_choice?: "auto" | "none" | "required" | {
1705
- type: string;
1706
- name?: string | undefined;
1707
- } | undefined;
1708
- store?: boolean | undefined;
1709
- metadata?: Record<string, string> | undefined;
1710
- instructions?: string | undefined;
1711
- max_output_tokens?: number | undefined;
1712
- top_p?: number | undefined;
1713
- previous_response_id?: string | undefined;
1714
- stream?: boolean | undefined;
1715
- truncation?: "auto" | "disabled" | undefined;
1716
- reasoning?: {
1717
- effort?: "low" | "high" | "medium" | undefined;
1718
- summary?: "auto" | "concise" | "detailed" | null | undefined;
1719
- } | undefined;
1720
- include?: string[] | undefined;
1721
- parallel_tool_calls?: boolean | undefined;
1722
- }, {
1723
- model: string;
1724
- input: string | ({
1725
- role: "user" | "assistant" | "system" | "developer";
1726
- content: string | ({
1727
- type: "input_text";
1728
- text: string;
1729
- } | {
1730
- type: "input_image";
1731
- image_url?: string | undefined;
1732
- detail?: "auto" | "low" | "high" | undefined;
1733
- file_id?: string | undefined;
1734
- } | {
1735
- type: "input_audio";
1736
- data: string;
1737
- format: "mp3" | "wav";
1738
- })[];
1739
- } | {
1740
- type: "function_call_output";
1741
- call_id: string;
1742
- output: string;
1743
- } | {
1744
- type: "item_reference";
1745
- id: string;
1746
- })[];
1747
- user?: string | undefined;
1748
- text?: {
1749
- format: {
1750
- type: "text";
1751
- } | {
1752
- type: "json_object";
1753
- } | {
1754
- type: "json_schema";
1755
- name: string;
1756
- schema: Record<string, unknown>;
1757
- strict?: boolean | undefined;
1758
- description?: string | undefined;
1759
- };
1760
- } | undefined;
1761
- temperature?: number | undefined;
1762
- tools?: ({
1763
- type: "function";
1764
- name: string;
1765
- strict?: boolean | undefined;
1766
- description?: string | undefined;
1767
- parameters?: Record<string, unknown> | undefined;
1768
- } | {
1769
- type: "file_search";
1770
- vector_store_ids: string[];
1771
- max_num_results?: number | undefined;
1772
- ranking_options?: {
1773
- ranker?: string | undefined;
1774
- score_threshold?: number | undefined;
1775
- } | undefined;
1776
- } | {
1777
- type: "code_interpreter";
1778
- } | {
1779
- type: "web_search_preview";
1780
- search_context_size?: "low" | "high" | "medium" | undefined;
1781
- user_location?: {
1782
- type: "approximate";
1783
- city?: string | undefined;
1784
- state?: string | undefined;
1785
- country?: string | undefined;
1786
- timezone?: string | undefined;
1787
- } | undefined;
1788
- } | {
1789
- type: "web_search_preview_2025_03_11";
1790
- search_context_size?: "low" | "high" | "medium" | undefined;
1791
- user_location?: {
1792
- type: "approximate";
1793
- city?: string | undefined;
1794
- state?: string | undefined;
1795
- country?: string | undefined;
1796
- timezone?: string | undefined;
1797
- } | undefined;
1798
- })[] | undefined;
1799
- tool_choice?: "auto" | "none" | "required" | {
1800
- type: string;
1801
- name?: string | undefined;
1802
- } | undefined;
1803
- store?: boolean | undefined;
1804
- metadata?: Record<string, string> | undefined;
1805
- instructions?: string | undefined;
1806
- max_output_tokens?: number | undefined;
1807
- top_p?: number | undefined;
1808
- previous_response_id?: string | undefined;
1809
- stream?: boolean | undefined;
1810
- truncation?: "auto" | "disabled" | undefined;
1811
- reasoning?: {
1812
- effort?: "low" | "high" | "medium" | undefined;
1813
- summary?: "auto" | "concise" | "detailed" | null | undefined;
1814
- } | undefined;
1815
- include?: string[] | undefined;
1816
- parallel_tool_calls?: boolean | undefined;
1817
- }>;
665
+ }, z.core.$strip>;
1818
666
  export declare const OpenAiResponseCompactRequestSchema: z.ZodObject<{
1819
667
  model: z.ZodString;
1820
- input: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1821
- role: z.ZodEnum<["user", "assistant", "system", "developer"]>;
1822
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
668
+ input: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
669
+ role: z.ZodEnum<{
670
+ user: "user";
671
+ assistant: "assistant";
672
+ system: "system";
673
+ developer: "developer";
674
+ }>;
675
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1823
676
  type: z.ZodLiteral<"input_text">;
1824
677
  text: z.ZodString;
1825
- }, "strip", z.ZodTypeAny, {
1826
- type: "input_text";
1827
- text: string;
1828
- }, {
1829
- type: "input_text";
1830
- text: string;
1831
- }>, z.ZodObject<{
678
+ }, z.core.$strip>, z.ZodObject<{
1832
679
  type: z.ZodLiteral<"input_image">;
1833
680
  image_url: z.ZodOptional<z.ZodString>;
1834
681
  file_id: z.ZodOptional<z.ZodString>;
1835
- detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
1836
- }, "strip", z.ZodTypeAny, {
1837
- type: "input_image";
1838
- image_url?: string | undefined;
1839
- detail?: "auto" | "low" | "high" | undefined;
1840
- file_id?: string | undefined;
1841
- }, {
1842
- type: "input_image";
1843
- image_url?: string | undefined;
1844
- detail?: "auto" | "low" | "high" | undefined;
1845
- file_id?: string | undefined;
1846
- }>, z.ZodObject<{
682
+ detail: z.ZodOptional<z.ZodEnum<{
683
+ auto: "auto";
684
+ low: "low";
685
+ high: "high";
686
+ }>>;
687
+ }, z.core.$strip>, z.ZodObject<{
1847
688
  type: z.ZodLiteral<"input_audio">;
1848
689
  data: z.ZodString;
1849
- format: z.ZodEnum<["wav", "mp3"]>;
1850
- }, "strip", z.ZodTypeAny, {
1851
- type: "input_audio";
1852
- data: string;
1853
- format: "mp3" | "wav";
1854
- }, {
1855
- type: "input_audio";
1856
- data: string;
1857
- format: "mp3" | "wav";
1858
- }>]>, "many">]>;
1859
- }, "strip", z.ZodTypeAny, {
1860
- role: "user" | "assistant" | "system" | "developer";
1861
- content: string | ({
1862
- type: "input_text";
1863
- text: string;
1864
- } | {
1865
- type: "input_image";
1866
- image_url?: string | undefined;
1867
- detail?: "auto" | "low" | "high" | undefined;
1868
- file_id?: string | undefined;
1869
- } | {
1870
- type: "input_audio";
1871
- data: string;
1872
- format: "mp3" | "wav";
1873
- })[];
1874
- }, {
1875
- role: "user" | "assistant" | "system" | "developer";
1876
- content: string | ({
1877
- type: "input_text";
1878
- text: string;
1879
- } | {
1880
- type: "input_image";
1881
- image_url?: string | undefined;
1882
- detail?: "auto" | "low" | "high" | undefined;
1883
- file_id?: string | undefined;
1884
- } | {
1885
- type: "input_audio";
1886
- data: string;
1887
- format: "mp3" | "wav";
1888
- })[];
1889
- }>, z.ZodObject<{
690
+ format: z.ZodEnum<{
691
+ mp3: "mp3";
692
+ wav: "wav";
693
+ }>;
694
+ }, z.core.$strip>], "type">>]>;
695
+ }, z.core.$strip>, z.ZodObject<{
1890
696
  type: z.ZodLiteral<"function_call_output">;
1891
697
  call_id: z.ZodString;
1892
698
  output: z.ZodString;
1893
- }, "strip", z.ZodTypeAny, {
1894
- type: "function_call_output";
1895
- call_id: string;
1896
- output: string;
1897
- }, {
1898
- type: "function_call_output";
1899
- call_id: string;
1900
- output: string;
1901
- }>, z.ZodObject<{
699
+ }, z.core.$strip>, z.ZodObject<{
1902
700
  type: z.ZodLiteral<"item_reference">;
1903
701
  id: z.ZodString;
1904
- }, "strip", z.ZodTypeAny, {
1905
- type: "item_reference";
1906
- id: string;
1907
- }, {
1908
- type: "item_reference";
1909
- id: string;
1910
- }>]>, "many">]>>>;
702
+ }, z.core.$strip>]>>]>>>;
1911
703
  instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1912
704
  previous_response_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1913
705
  prompt_cache_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1914
- }, "strip", z.ZodTypeAny, {
1915
- model: string;
1916
- input?: string | ({
1917
- role: "user" | "assistant" | "system" | "developer";
1918
- content: string | ({
1919
- type: "input_text";
1920
- text: string;
1921
- } | {
1922
- type: "input_image";
1923
- image_url?: string | undefined;
1924
- detail?: "auto" | "low" | "high" | undefined;
1925
- file_id?: string | undefined;
1926
- } | {
1927
- type: "input_audio";
1928
- data: string;
1929
- format: "mp3" | "wav";
1930
- })[];
1931
- } | {
1932
- type: "function_call_output";
1933
- call_id: string;
1934
- output: string;
1935
- } | {
1936
- type: "item_reference";
1937
- id: string;
1938
- })[] | null | undefined;
1939
- instructions?: string | null | undefined;
1940
- previous_response_id?: string | null | undefined;
1941
- prompt_cache_key?: string | null | undefined;
1942
- }, {
1943
- model: string;
1944
- input?: string | ({
1945
- role: "user" | "assistant" | "system" | "developer";
1946
- content: string | ({
1947
- type: "input_text";
1948
- text: string;
1949
- } | {
1950
- type: "input_image";
1951
- image_url?: string | undefined;
1952
- detail?: "auto" | "low" | "high" | undefined;
1953
- file_id?: string | undefined;
1954
- } | {
1955
- type: "input_audio";
1956
- data: string;
1957
- format: "mp3" | "wav";
1958
- })[];
1959
- } | {
1960
- type: "function_call_output";
1961
- call_id: string;
1962
- output: string;
1963
- } | {
1964
- type: "item_reference";
1965
- id: string;
1966
- })[] | null | undefined;
1967
- instructions?: string | null | undefined;
1968
- previous_response_id?: string | null | undefined;
1969
- prompt_cache_key?: string | null | undefined;
1970
- }>;
706
+ }, z.core.$strip>;
1971
707
  export declare const OpenAiResponseInputTokensRequestSchema: z.ZodObject<{
1972
708
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1973
- input: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1974
- role: z.ZodEnum<["user", "assistant", "system", "developer"]>;
1975
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
709
+ input: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
710
+ role: z.ZodEnum<{
711
+ user: "user";
712
+ assistant: "assistant";
713
+ system: "system";
714
+ developer: "developer";
715
+ }>;
716
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1976
717
  type: z.ZodLiteral<"input_text">;
1977
718
  text: z.ZodString;
1978
- }, "strip", z.ZodTypeAny, {
1979
- type: "input_text";
1980
- text: string;
1981
- }, {
1982
- type: "input_text";
1983
- text: string;
1984
- }>, z.ZodObject<{
719
+ }, z.core.$strip>, z.ZodObject<{
1985
720
  type: z.ZodLiteral<"input_image">;
1986
721
  image_url: z.ZodOptional<z.ZodString>;
1987
722
  file_id: z.ZodOptional<z.ZodString>;
1988
- detail: z.ZodOptional<z.ZodEnum<["auto", "low", "high"]>>;
1989
- }, "strip", z.ZodTypeAny, {
1990
- type: "input_image";
1991
- image_url?: string | undefined;
1992
- detail?: "auto" | "low" | "high" | undefined;
1993
- file_id?: string | undefined;
1994
- }, {
1995
- type: "input_image";
1996
- image_url?: string | undefined;
1997
- detail?: "auto" | "low" | "high" | undefined;
1998
- file_id?: string | undefined;
1999
- }>, z.ZodObject<{
723
+ detail: z.ZodOptional<z.ZodEnum<{
724
+ auto: "auto";
725
+ low: "low";
726
+ high: "high";
727
+ }>>;
728
+ }, z.core.$strip>, z.ZodObject<{
2000
729
  type: z.ZodLiteral<"input_audio">;
2001
730
  data: z.ZodString;
2002
- format: z.ZodEnum<["wav", "mp3"]>;
2003
- }, "strip", z.ZodTypeAny, {
2004
- type: "input_audio";
2005
- data: string;
2006
- format: "mp3" | "wav";
2007
- }, {
2008
- type: "input_audio";
2009
- data: string;
2010
- format: "mp3" | "wav";
2011
- }>]>, "many">]>;
2012
- }, "strip", z.ZodTypeAny, {
2013
- role: "user" | "assistant" | "system" | "developer";
2014
- content: string | ({
2015
- type: "input_text";
2016
- text: string;
2017
- } | {
2018
- type: "input_image";
2019
- image_url?: string | undefined;
2020
- detail?: "auto" | "low" | "high" | undefined;
2021
- file_id?: string | undefined;
2022
- } | {
2023
- type: "input_audio";
2024
- data: string;
2025
- format: "mp3" | "wav";
2026
- })[];
2027
- }, {
2028
- role: "user" | "assistant" | "system" | "developer";
2029
- content: string | ({
2030
- type: "input_text";
2031
- text: string;
2032
- } | {
2033
- type: "input_image";
2034
- image_url?: string | undefined;
2035
- detail?: "auto" | "low" | "high" | undefined;
2036
- file_id?: string | undefined;
2037
- } | {
2038
- type: "input_audio";
2039
- data: string;
2040
- format: "mp3" | "wav";
2041
- })[];
2042
- }>, z.ZodObject<{
731
+ format: z.ZodEnum<{
732
+ mp3: "mp3";
733
+ wav: "wav";
734
+ }>;
735
+ }, z.core.$strip>], "type">>]>;
736
+ }, z.core.$strip>, z.ZodObject<{
2043
737
  type: z.ZodLiteral<"function_call_output">;
2044
738
  call_id: z.ZodString;
2045
739
  output: z.ZodString;
2046
- }, "strip", z.ZodTypeAny, {
2047
- type: "function_call_output";
2048
- call_id: string;
2049
- output: string;
2050
- }, {
2051
- type: "function_call_output";
2052
- call_id: string;
2053
- output: string;
2054
- }>, z.ZodObject<{
740
+ }, z.core.$strip>, z.ZodObject<{
2055
741
  type: z.ZodLiteral<"item_reference">;
2056
742
  id: z.ZodString;
2057
- }, "strip", z.ZodTypeAny, {
2058
- type: "item_reference";
2059
- id: string;
2060
- }, {
2061
- type: "item_reference";
2062
- id: string;
2063
- }>]>, "many">]>>>;
743
+ }, z.core.$strip>]>>]>>>;
2064
744
  instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2065
- conversation: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
745
+ conversation: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
2066
746
  previous_response_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2067
- tools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
747
+ tools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2068
748
  type: z.ZodLiteral<"function">;
2069
749
  name: z.ZodString;
2070
750
  description: z.ZodOptional<z.ZodString>;
2071
751
  parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2072
752
  strict: z.ZodOptional<z.ZodBoolean>;
2073
- }, "strip", z.ZodTypeAny, {
2074
- type: "function";
2075
- name: string;
2076
- strict?: boolean | undefined;
2077
- description?: string | undefined;
2078
- parameters?: Record<string, unknown> | undefined;
2079
- }, {
2080
- type: "function";
2081
- name: string;
2082
- strict?: boolean | undefined;
2083
- description?: string | undefined;
2084
- parameters?: Record<string, unknown> | undefined;
2085
- }>, z.ZodObject<{
753
+ }, z.core.$strip>, z.ZodObject<{
2086
754
  type: z.ZodLiteral<"file_search">;
2087
- vector_store_ids: z.ZodArray<z.ZodString, "many">;
755
+ vector_store_ids: z.ZodArray<z.ZodString>;
2088
756
  max_num_results: z.ZodOptional<z.ZodNumber>;
2089
757
  ranking_options: z.ZodOptional<z.ZodObject<{
2090
758
  ranker: z.ZodOptional<z.ZodString>;
2091
759
  score_threshold: z.ZodOptional<z.ZodNumber>;
2092
- }, "strip", z.ZodTypeAny, {
2093
- ranker?: string | undefined;
2094
- score_threshold?: number | undefined;
2095
- }, {
2096
- ranker?: string | undefined;
2097
- score_threshold?: number | undefined;
2098
- }>>;
2099
- }, "strip", z.ZodTypeAny, {
2100
- type: "file_search";
2101
- vector_store_ids: string[];
2102
- max_num_results?: number | undefined;
2103
- ranking_options?: {
2104
- ranker?: string | undefined;
2105
- score_threshold?: number | undefined;
2106
- } | undefined;
2107
- }, {
2108
- type: "file_search";
2109
- vector_store_ids: string[];
2110
- max_num_results?: number | undefined;
2111
- ranking_options?: {
2112
- ranker?: string | undefined;
2113
- score_threshold?: number | undefined;
2114
- } | undefined;
2115
- }>, z.ZodObject<{
760
+ }, z.core.$strip>>;
761
+ }, z.core.$strip>, z.ZodObject<{
2116
762
  type: z.ZodLiteral<"code_interpreter">;
2117
- }, "strip", z.ZodTypeAny, {
2118
- type: "code_interpreter";
2119
- }, {
2120
- type: "code_interpreter";
2121
- }>, z.ZodObject<{
2122
- search_context_size: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
763
+ }, z.core.$strip>, z.ZodObject<{
764
+ search_context_size: z.ZodOptional<z.ZodEnum<{
765
+ low: "low";
766
+ high: "high";
767
+ medium: "medium";
768
+ }>>;
2123
769
  user_location: z.ZodOptional<z.ZodObject<{
2124
770
  type: z.ZodLiteral<"approximate">;
2125
771
  city: z.ZodOptional<z.ZodString>;
2126
772
  state: z.ZodOptional<z.ZodString>;
2127
773
  country: z.ZodOptional<z.ZodString>;
2128
774
  timezone: z.ZodOptional<z.ZodString>;
2129
- }, "strip", z.ZodTypeAny, {
2130
- type: "approximate";
2131
- city?: string | undefined;
2132
- state?: string | undefined;
2133
- country?: string | undefined;
2134
- timezone?: string | undefined;
2135
- }, {
2136
- type: "approximate";
2137
- city?: string | undefined;
2138
- state?: string | undefined;
2139
- country?: string | undefined;
2140
- timezone?: string | undefined;
2141
- }>>;
2142
- } & {
775
+ }, z.core.$strip>>;
2143
776
  type: z.ZodLiteral<"web_search_preview">;
2144
- }, "strip", z.ZodTypeAny, {
2145
- type: "web_search_preview";
2146
- search_context_size?: "low" | "high" | "medium" | undefined;
2147
- user_location?: {
2148
- type: "approximate";
2149
- city?: string | undefined;
2150
- state?: string | undefined;
2151
- country?: string | undefined;
2152
- timezone?: string | undefined;
2153
- } | undefined;
2154
- }, {
2155
- type: "web_search_preview";
2156
- search_context_size?: "low" | "high" | "medium" | undefined;
2157
- user_location?: {
2158
- type: "approximate";
2159
- city?: string | undefined;
2160
- state?: string | undefined;
2161
- country?: string | undefined;
2162
- timezone?: string | undefined;
2163
- } | undefined;
2164
- }>, z.ZodObject<{
2165
- search_context_size: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
777
+ }, z.core.$strip>, z.ZodObject<{
778
+ search_context_size: z.ZodOptional<z.ZodEnum<{
779
+ low: "low";
780
+ high: "high";
781
+ medium: "medium";
782
+ }>>;
2166
783
  user_location: z.ZodOptional<z.ZodObject<{
2167
784
  type: z.ZodLiteral<"approximate">;
2168
785
  city: z.ZodOptional<z.ZodString>;
2169
786
  state: z.ZodOptional<z.ZodString>;
2170
787
  country: z.ZodOptional<z.ZodString>;
2171
788
  timezone: z.ZodOptional<z.ZodString>;
2172
- }, "strip", z.ZodTypeAny, {
2173
- type: "approximate";
2174
- city?: string | undefined;
2175
- state?: string | undefined;
2176
- country?: string | undefined;
2177
- timezone?: string | undefined;
2178
- }, {
2179
- type: "approximate";
2180
- city?: string | undefined;
2181
- state?: string | undefined;
2182
- country?: string | undefined;
2183
- timezone?: string | undefined;
2184
- }>>;
2185
- } & {
789
+ }, z.core.$strip>>;
2186
790
  type: z.ZodLiteral<"web_search_preview_2025_03_11">;
2187
- }, "strip", z.ZodTypeAny, {
2188
- type: "web_search_preview_2025_03_11";
2189
- search_context_size?: "low" | "high" | "medium" | undefined;
2190
- user_location?: {
2191
- type: "approximate";
2192
- city?: string | undefined;
2193
- state?: string | undefined;
2194
- country?: string | undefined;
2195
- timezone?: string | undefined;
2196
- } | undefined;
2197
- }, {
2198
- type: "web_search_preview_2025_03_11";
2199
- search_context_size?: "low" | "high" | "medium" | undefined;
2200
- user_location?: {
2201
- type: "approximate";
2202
- city?: string | undefined;
2203
- state?: string | undefined;
2204
- country?: string | undefined;
2205
- timezone?: string | undefined;
2206
- } | undefined;
2207
- }>]>, "many">>>;
2208
- tool_choice: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
791
+ }, z.core.$strip>], "type">>>>;
792
+ tool_choice: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
793
+ auto: "auto";
794
+ none: "none";
795
+ required: "required";
796
+ }>, z.ZodObject<{
2209
797
  type: z.ZodString;
2210
798
  name: z.ZodOptional<z.ZodString>;
2211
- }, "strip", z.ZodTypeAny, {
2212
- type: string;
2213
- name?: string | undefined;
2214
- }, {
2215
- type: string;
2216
- name?: string | undefined;
2217
- }>]>>>;
799
+ }, z.core.$strip>]>>>;
2218
800
  parallel_tool_calls: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2219
801
  reasoning: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2220
- effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
2221
- summary: z.ZodOptional<z.ZodNullable<z.ZodEnum<["auto", "concise", "detailed"]>>>;
2222
- }, "strip", z.ZodTypeAny, {
2223
- effort?: "low" | "high" | "medium" | undefined;
2224
- summary?: "auto" | "concise" | "detailed" | null | undefined;
2225
- }, {
2226
- effort?: "low" | "high" | "medium" | undefined;
2227
- summary?: "auto" | "concise" | "detailed" | null | undefined;
2228
- }>>>;
802
+ effort: z.ZodOptional<z.ZodEnum<{
803
+ low: "low";
804
+ high: "high";
805
+ medium: "medium";
806
+ }>>;
807
+ summary: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
808
+ auto: "auto";
809
+ concise: "concise";
810
+ detailed: "detailed";
811
+ }>>>;
812
+ }, z.core.$strip>>>;
2229
813
  text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2230
- format: z.ZodUnion<[z.ZodObject<{
814
+ format: z.ZodUnion<readonly [z.ZodObject<{
2231
815
  type: z.ZodLiteral<"text">;
2232
- }, "strip", z.ZodTypeAny, {
2233
- type: "text";
2234
- }, {
2235
- type: "text";
2236
- }>, z.ZodObject<{
816
+ }, z.core.$strip>, z.ZodObject<{
2237
817
  type: z.ZodLiteral<"json_object">;
2238
- }, "strip", z.ZodTypeAny, {
2239
- type: "json_object";
2240
- }, {
2241
- type: "json_object";
2242
- }>, z.ZodObject<{
818
+ }, z.core.$strip>, z.ZodObject<{
2243
819
  type: z.ZodLiteral<"json_schema">;
2244
820
  name: z.ZodString;
2245
821
  schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2246
822
  description: z.ZodOptional<z.ZodString>;
2247
823
  strict: z.ZodOptional<z.ZodBoolean>;
2248
- }, "strip", z.ZodTypeAny, {
2249
- type: "json_schema";
2250
- name: string;
2251
- schema: Record<string, unknown>;
2252
- strict?: boolean | undefined;
2253
- description?: string | undefined;
2254
- }, {
2255
- type: "json_schema";
2256
- name: string;
2257
- schema: Record<string, unknown>;
2258
- strict?: boolean | undefined;
2259
- description?: string | undefined;
2260
- }>]>;
2261
- }, "strip", z.ZodTypeAny, {
2262
- format: {
2263
- type: "text";
2264
- } | {
2265
- type: "json_object";
2266
- } | {
2267
- type: "json_schema";
2268
- name: string;
2269
- schema: Record<string, unknown>;
2270
- strict?: boolean | undefined;
2271
- description?: string | undefined;
2272
- };
2273
- }, {
2274
- format: {
2275
- type: "text";
2276
- } | {
2277
- type: "json_object";
2278
- } | {
2279
- type: "json_schema";
2280
- name: string;
2281
- schema: Record<string, unknown>;
2282
- strict?: boolean | undefined;
2283
- description?: string | undefined;
2284
- };
2285
- }>>>;
2286
- truncation: z.ZodOptional<z.ZodEnum<["auto", "disabled"]>>;
2287
- }, "strip", z.ZodTypeAny, {
2288
- text?: {
2289
- format: {
2290
- type: "text";
2291
- } | {
2292
- type: "json_object";
2293
- } | {
2294
- type: "json_schema";
2295
- name: string;
2296
- schema: Record<string, unknown>;
2297
- strict?: boolean | undefined;
2298
- description?: string | undefined;
2299
- };
2300
- } | null | undefined;
2301
- model?: string | null | undefined;
2302
- tools?: ({
2303
- type: "function";
2304
- name: string;
2305
- strict?: boolean | undefined;
2306
- description?: string | undefined;
2307
- parameters?: Record<string, unknown> | undefined;
2308
- } | {
2309
- type: "file_search";
2310
- vector_store_ids: string[];
2311
- max_num_results?: number | undefined;
2312
- ranking_options?: {
2313
- ranker?: string | undefined;
2314
- score_threshold?: number | undefined;
2315
- } | undefined;
2316
- } | {
2317
- type: "code_interpreter";
2318
- } | {
2319
- type: "web_search_preview";
2320
- search_context_size?: "low" | "high" | "medium" | undefined;
2321
- user_location?: {
2322
- type: "approximate";
2323
- city?: string | undefined;
2324
- state?: string | undefined;
2325
- country?: string | undefined;
2326
- timezone?: string | undefined;
2327
- } | undefined;
2328
- } | {
2329
- type: "web_search_preview_2025_03_11";
2330
- search_context_size?: "low" | "high" | "medium" | undefined;
2331
- user_location?: {
2332
- type: "approximate";
2333
- city?: string | undefined;
2334
- state?: string | undefined;
2335
- country?: string | undefined;
2336
- timezone?: string | undefined;
2337
- } | undefined;
2338
- })[] | null | undefined;
2339
- tool_choice?: "auto" | "none" | "required" | {
2340
- type: string;
2341
- name?: string | undefined;
2342
- } | null | undefined;
2343
- input?: string | ({
2344
- role: "user" | "assistant" | "system" | "developer";
2345
- content: string | ({
2346
- type: "input_text";
2347
- text: string;
2348
- } | {
2349
- type: "input_image";
2350
- image_url?: string | undefined;
2351
- detail?: "auto" | "low" | "high" | undefined;
2352
- file_id?: string | undefined;
2353
- } | {
2354
- type: "input_audio";
2355
- data: string;
2356
- format: "mp3" | "wav";
2357
- })[];
2358
- } | {
2359
- type: "function_call_output";
2360
- call_id: string;
2361
- output: string;
2362
- } | {
2363
- type: "item_reference";
2364
- id: string;
2365
- })[] | null | undefined;
2366
- instructions?: string | null | undefined;
2367
- previous_response_id?: string | null | undefined;
2368
- truncation?: "auto" | "disabled" | undefined;
2369
- reasoning?: {
2370
- effort?: "low" | "high" | "medium" | undefined;
2371
- summary?: "auto" | "concise" | "detailed" | null | undefined;
2372
- } | null | undefined;
2373
- parallel_tool_calls?: boolean | null | undefined;
2374
- conversation?: string | Record<string, unknown> | null | undefined;
2375
- }, {
2376
- text?: {
2377
- format: {
2378
- type: "text";
2379
- } | {
2380
- type: "json_object";
2381
- } | {
2382
- type: "json_schema";
2383
- name: string;
2384
- schema: Record<string, unknown>;
2385
- strict?: boolean | undefined;
2386
- description?: string | undefined;
2387
- };
2388
- } | null | undefined;
2389
- model?: string | null | undefined;
2390
- tools?: ({
2391
- type: "function";
2392
- name: string;
2393
- strict?: boolean | undefined;
2394
- description?: string | undefined;
2395
- parameters?: Record<string, unknown> | undefined;
2396
- } | {
2397
- type: "file_search";
2398
- vector_store_ids: string[];
2399
- max_num_results?: number | undefined;
2400
- ranking_options?: {
2401
- ranker?: string | undefined;
2402
- score_threshold?: number | undefined;
2403
- } | undefined;
2404
- } | {
2405
- type: "code_interpreter";
2406
- } | {
2407
- type: "web_search_preview";
2408
- search_context_size?: "low" | "high" | "medium" | undefined;
2409
- user_location?: {
2410
- type: "approximate";
2411
- city?: string | undefined;
2412
- state?: string | undefined;
2413
- country?: string | undefined;
2414
- timezone?: string | undefined;
2415
- } | undefined;
2416
- } | {
2417
- type: "web_search_preview_2025_03_11";
2418
- search_context_size?: "low" | "high" | "medium" | undefined;
2419
- user_location?: {
2420
- type: "approximate";
2421
- city?: string | undefined;
2422
- state?: string | undefined;
2423
- country?: string | undefined;
2424
- timezone?: string | undefined;
2425
- } | undefined;
2426
- })[] | null | undefined;
2427
- tool_choice?: "auto" | "none" | "required" | {
2428
- type: string;
2429
- name?: string | undefined;
2430
- } | null | undefined;
2431
- input?: string | ({
2432
- role: "user" | "assistant" | "system" | "developer";
2433
- content: string | ({
2434
- type: "input_text";
2435
- text: string;
2436
- } | {
2437
- type: "input_image";
2438
- image_url?: string | undefined;
2439
- detail?: "auto" | "low" | "high" | undefined;
2440
- file_id?: string | undefined;
2441
- } | {
2442
- type: "input_audio";
2443
- data: string;
2444
- format: "mp3" | "wav";
2445
- })[];
2446
- } | {
2447
- type: "function_call_output";
2448
- call_id: string;
2449
- output: string;
2450
- } | {
2451
- type: "item_reference";
2452
- id: string;
2453
- })[] | null | undefined;
2454
- instructions?: string | null | undefined;
2455
- previous_response_id?: string | null | undefined;
2456
- truncation?: "auto" | "disabled" | undefined;
2457
- reasoning?: {
2458
- effort?: "low" | "high" | "medium" | undefined;
2459
- summary?: "auto" | "concise" | "detailed" | null | undefined;
2460
- } | null | undefined;
2461
- parallel_tool_calls?: boolean | null | undefined;
2462
- conversation?: string | Record<string, unknown> | null | undefined;
2463
- }>;
824
+ }, z.core.$strip>]>;
825
+ }, z.core.$strip>>>;
826
+ truncation: z.ZodOptional<z.ZodEnum<{
827
+ auto: "auto";
828
+ disabled: "disabled";
829
+ }>>;
830
+ }, z.core.$strip>;
2464
831
  export declare const OpenAiFineTuningHyperparametersSchema: z.ZodObject<{
2465
- batch_size: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>>;
2466
- learning_rate_multiplier: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>>;
2467
- n_epochs: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>>;
2468
- }, "strip", z.ZodTypeAny, {
2469
- batch_size?: number | "auto" | null | undefined;
2470
- learning_rate_multiplier?: number | "auto" | null | undefined;
2471
- n_epochs?: number | "auto" | null | undefined;
2472
- }, {
2473
- batch_size?: number | "auto" | null | undefined;
2474
- learning_rate_multiplier?: number | "auto" | null | undefined;
2475
- n_epochs?: number | "auto" | null | undefined;
2476
- }>;
832
+ batch_size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>>;
833
+ learning_rate_multiplier: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>>;
834
+ n_epochs: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>>;
835
+ }, z.core.$strip>;
2477
836
  export declare const OpenAiFineTuningSupervisedMethodSchema: z.ZodObject<{
2478
837
  hyperparameters: z.ZodOptional<z.ZodObject<{
2479
- batch_size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2480
- learning_rate_multiplier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2481
- n_epochs: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2482
- }, "strip", z.ZodTypeAny, {
2483
- batch_size?: number | "auto" | undefined;
2484
- learning_rate_multiplier?: number | "auto" | undefined;
2485
- n_epochs?: number | "auto" | undefined;
2486
- }, {
2487
- batch_size?: number | "auto" | undefined;
2488
- learning_rate_multiplier?: number | "auto" | undefined;
2489
- n_epochs?: number | "auto" | undefined;
2490
- }>>;
2491
- }, "strip", z.ZodTypeAny, {
2492
- hyperparameters?: {
2493
- batch_size?: number | "auto" | undefined;
2494
- learning_rate_multiplier?: number | "auto" | undefined;
2495
- n_epochs?: number | "auto" | undefined;
2496
- } | undefined;
2497
- }, {
2498
- hyperparameters?: {
2499
- batch_size?: number | "auto" | undefined;
2500
- learning_rate_multiplier?: number | "auto" | undefined;
2501
- n_epochs?: number | "auto" | undefined;
2502
- } | undefined;
2503
- }>;
838
+ batch_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
839
+ learning_rate_multiplier: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
840
+ n_epochs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
841
+ }, z.core.$strip>>;
842
+ }, z.core.$strip>;
2504
843
  export declare const OpenAiFineTuningDpoMethodSchema: z.ZodObject<{
2505
844
  hyperparameters: z.ZodOptional<z.ZodObject<{
2506
- batch_size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2507
- beta: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2508
- learning_rate_multiplier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2509
- n_epochs: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2510
- }, "strip", z.ZodTypeAny, {
2511
- batch_size?: number | "auto" | undefined;
2512
- learning_rate_multiplier?: number | "auto" | undefined;
2513
- n_epochs?: number | "auto" | undefined;
2514
- beta?: number | "auto" | undefined;
2515
- }, {
2516
- batch_size?: number | "auto" | undefined;
2517
- learning_rate_multiplier?: number | "auto" | undefined;
2518
- n_epochs?: number | "auto" | undefined;
2519
- beta?: number | "auto" | undefined;
2520
- }>>;
2521
- }, "strip", z.ZodTypeAny, {
2522
- hyperparameters?: {
2523
- batch_size?: number | "auto" | undefined;
2524
- learning_rate_multiplier?: number | "auto" | undefined;
2525
- n_epochs?: number | "auto" | undefined;
2526
- beta?: number | "auto" | undefined;
2527
- } | undefined;
2528
- }, {
2529
- hyperparameters?: {
2530
- batch_size?: number | "auto" | undefined;
2531
- learning_rate_multiplier?: number | "auto" | undefined;
2532
- n_epochs?: number | "auto" | undefined;
2533
- beta?: number | "auto" | undefined;
2534
- } | undefined;
2535
- }>;
845
+ batch_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
846
+ beta: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
847
+ learning_rate_multiplier: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
848
+ n_epochs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
849
+ }, z.core.$strip>>;
850
+ }, z.core.$strip>;
2536
851
  export declare const OpenAiFineTuningReinforcementMethodSchema: z.ZodObject<{
2537
852
  grader: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2538
853
  hyperparameters: z.ZodOptional<z.ZodObject<{
2539
- batch_size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2540
- compute_multiplier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2541
- eval_interval: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2542
- eval_samples: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2543
- learning_rate_multiplier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2544
- n_epochs: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2545
- reasoning_effort: z.ZodOptional<z.ZodEnum<["default", "low", "medium", "high"]>>;
2546
- }, "strip", z.ZodTypeAny, {
2547
- batch_size?: number | "auto" | undefined;
2548
- learning_rate_multiplier?: number | "auto" | undefined;
2549
- n_epochs?: number | "auto" | undefined;
2550
- compute_multiplier?: number | "auto" | undefined;
2551
- eval_interval?: number | "auto" | undefined;
2552
- eval_samples?: number | "auto" | undefined;
2553
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
2554
- }, {
2555
- batch_size?: number | "auto" | undefined;
2556
- learning_rate_multiplier?: number | "auto" | undefined;
2557
- n_epochs?: number | "auto" | undefined;
2558
- compute_multiplier?: number | "auto" | undefined;
2559
- eval_interval?: number | "auto" | undefined;
2560
- eval_samples?: number | "auto" | undefined;
2561
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
2562
- }>>;
2563
- }, "strip", z.ZodTypeAny, {
2564
- grader: Record<string, unknown>;
2565
- hyperparameters?: {
2566
- batch_size?: number | "auto" | undefined;
2567
- learning_rate_multiplier?: number | "auto" | undefined;
2568
- n_epochs?: number | "auto" | undefined;
2569
- compute_multiplier?: number | "auto" | undefined;
2570
- eval_interval?: number | "auto" | undefined;
2571
- eval_samples?: number | "auto" | undefined;
2572
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
2573
- } | undefined;
2574
- }, {
2575
- grader: Record<string, unknown>;
2576
- hyperparameters?: {
2577
- batch_size?: number | "auto" | undefined;
2578
- learning_rate_multiplier?: number | "auto" | undefined;
2579
- n_epochs?: number | "auto" | undefined;
2580
- compute_multiplier?: number | "auto" | undefined;
2581
- eval_interval?: number | "auto" | undefined;
2582
- eval_samples?: number | "auto" | undefined;
2583
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
2584
- } | undefined;
2585
- }>;
854
+ batch_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
855
+ compute_multiplier: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
856
+ eval_interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
857
+ eval_samples: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
858
+ learning_rate_multiplier: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
859
+ n_epochs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
860
+ reasoning_effort: z.ZodOptional<z.ZodEnum<{
861
+ low: "low";
862
+ high: "high";
863
+ default: "default";
864
+ medium: "medium";
865
+ }>>;
866
+ }, z.core.$strip>>;
867
+ }, z.core.$strip>;
2586
868
  export declare const OpenAiFineTuningMethodSchema: z.ZodObject<{
2587
- type: z.ZodEnum<["supervised", "dpo", "reinforcement"]>;
869
+ type: z.ZodEnum<{
870
+ supervised: "supervised";
871
+ dpo: "dpo";
872
+ reinforcement: "reinforcement";
873
+ }>;
2588
874
  supervised: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2589
875
  hyperparameters: z.ZodOptional<z.ZodObject<{
2590
- batch_size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2591
- learning_rate_multiplier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2592
- n_epochs: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2593
- }, "strip", z.ZodTypeAny, {
2594
- batch_size?: number | "auto" | undefined;
2595
- learning_rate_multiplier?: number | "auto" | undefined;
2596
- n_epochs?: number | "auto" | undefined;
2597
- }, {
2598
- batch_size?: number | "auto" | undefined;
2599
- learning_rate_multiplier?: number | "auto" | undefined;
2600
- n_epochs?: number | "auto" | undefined;
2601
- }>>;
2602
- }, "strip", z.ZodTypeAny, {
2603
- hyperparameters?: {
2604
- batch_size?: number | "auto" | undefined;
2605
- learning_rate_multiplier?: number | "auto" | undefined;
2606
- n_epochs?: number | "auto" | undefined;
2607
- } | undefined;
2608
- }, {
2609
- hyperparameters?: {
2610
- batch_size?: number | "auto" | undefined;
2611
- learning_rate_multiplier?: number | "auto" | undefined;
2612
- n_epochs?: number | "auto" | undefined;
2613
- } | undefined;
2614
- }>>>;
876
+ batch_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
877
+ learning_rate_multiplier: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
878
+ n_epochs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
879
+ }, z.core.$strip>>;
880
+ }, z.core.$strip>>>;
2615
881
  dpo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2616
882
  hyperparameters: z.ZodOptional<z.ZodObject<{
2617
- batch_size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2618
- beta: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2619
- learning_rate_multiplier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2620
- n_epochs: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2621
- }, "strip", z.ZodTypeAny, {
2622
- batch_size?: number | "auto" | undefined;
2623
- learning_rate_multiplier?: number | "auto" | undefined;
2624
- n_epochs?: number | "auto" | undefined;
2625
- beta?: number | "auto" | undefined;
2626
- }, {
2627
- batch_size?: number | "auto" | undefined;
2628
- learning_rate_multiplier?: number | "auto" | undefined;
2629
- n_epochs?: number | "auto" | undefined;
2630
- beta?: number | "auto" | undefined;
2631
- }>>;
2632
- }, "strip", z.ZodTypeAny, {
2633
- hyperparameters?: {
2634
- batch_size?: number | "auto" | undefined;
2635
- learning_rate_multiplier?: number | "auto" | undefined;
2636
- n_epochs?: number | "auto" | undefined;
2637
- beta?: number | "auto" | undefined;
2638
- } | undefined;
2639
- }, {
2640
- hyperparameters?: {
2641
- batch_size?: number | "auto" | undefined;
2642
- learning_rate_multiplier?: number | "auto" | undefined;
2643
- n_epochs?: number | "auto" | undefined;
2644
- beta?: number | "auto" | undefined;
2645
- } | undefined;
2646
- }>>>;
883
+ batch_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
884
+ beta: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
885
+ learning_rate_multiplier: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
886
+ n_epochs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
887
+ }, z.core.$strip>>;
888
+ }, z.core.$strip>>>;
2647
889
  reinforcement: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2648
890
  grader: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2649
891
  hyperparameters: z.ZodOptional<z.ZodObject<{
2650
- batch_size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2651
- compute_multiplier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2652
- eval_interval: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2653
- eval_samples: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2654
- learning_rate_multiplier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2655
- n_epochs: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2656
- reasoning_effort: z.ZodOptional<z.ZodEnum<["default", "low", "medium", "high"]>>;
2657
- }, "strip", z.ZodTypeAny, {
2658
- batch_size?: number | "auto" | undefined;
2659
- learning_rate_multiplier?: number | "auto" | undefined;
2660
- n_epochs?: number | "auto" | undefined;
2661
- compute_multiplier?: number | "auto" | undefined;
2662
- eval_interval?: number | "auto" | undefined;
2663
- eval_samples?: number | "auto" | undefined;
2664
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
2665
- }, {
2666
- batch_size?: number | "auto" | undefined;
2667
- learning_rate_multiplier?: number | "auto" | undefined;
2668
- n_epochs?: number | "auto" | undefined;
2669
- compute_multiplier?: number | "auto" | undefined;
2670
- eval_interval?: number | "auto" | undefined;
2671
- eval_samples?: number | "auto" | undefined;
2672
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
2673
- }>>;
2674
- }, "strip", z.ZodTypeAny, {
2675
- grader: Record<string, unknown>;
2676
- hyperparameters?: {
2677
- batch_size?: number | "auto" | undefined;
2678
- learning_rate_multiplier?: number | "auto" | undefined;
2679
- n_epochs?: number | "auto" | undefined;
2680
- compute_multiplier?: number | "auto" | undefined;
2681
- eval_interval?: number | "auto" | undefined;
2682
- eval_samples?: number | "auto" | undefined;
2683
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
2684
- } | undefined;
2685
- }, {
2686
- grader: Record<string, unknown>;
2687
- hyperparameters?: {
2688
- batch_size?: number | "auto" | undefined;
2689
- learning_rate_multiplier?: number | "auto" | undefined;
2690
- n_epochs?: number | "auto" | undefined;
2691
- compute_multiplier?: number | "auto" | undefined;
2692
- eval_interval?: number | "auto" | undefined;
2693
- eval_samples?: number | "auto" | undefined;
2694
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
2695
- } | undefined;
2696
- }>>>;
2697
- }, "strip", z.ZodTypeAny, {
2698
- type: "supervised" | "dpo" | "reinforcement";
2699
- supervised?: {
2700
- hyperparameters?: {
2701
- batch_size?: number | "auto" | undefined;
2702
- learning_rate_multiplier?: number | "auto" | undefined;
2703
- n_epochs?: number | "auto" | undefined;
2704
- } | undefined;
2705
- } | null | undefined;
2706
- dpo?: {
2707
- hyperparameters?: {
2708
- batch_size?: number | "auto" | undefined;
2709
- learning_rate_multiplier?: number | "auto" | undefined;
2710
- n_epochs?: number | "auto" | undefined;
2711
- beta?: number | "auto" | undefined;
2712
- } | undefined;
2713
- } | null | undefined;
2714
- reinforcement?: {
2715
- grader: Record<string, unknown>;
2716
- hyperparameters?: {
2717
- batch_size?: number | "auto" | undefined;
2718
- learning_rate_multiplier?: number | "auto" | undefined;
2719
- n_epochs?: number | "auto" | undefined;
2720
- compute_multiplier?: number | "auto" | undefined;
2721
- eval_interval?: number | "auto" | undefined;
2722
- eval_samples?: number | "auto" | undefined;
2723
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
2724
- } | undefined;
2725
- } | null | undefined;
2726
- }, {
2727
- type: "supervised" | "dpo" | "reinforcement";
2728
- supervised?: {
2729
- hyperparameters?: {
2730
- batch_size?: number | "auto" | undefined;
2731
- learning_rate_multiplier?: number | "auto" | undefined;
2732
- n_epochs?: number | "auto" | undefined;
2733
- } | undefined;
2734
- } | null | undefined;
2735
- dpo?: {
2736
- hyperparameters?: {
2737
- batch_size?: number | "auto" | undefined;
2738
- learning_rate_multiplier?: number | "auto" | undefined;
2739
- n_epochs?: number | "auto" | undefined;
2740
- beta?: number | "auto" | undefined;
2741
- } | undefined;
2742
- } | null | undefined;
2743
- reinforcement?: {
2744
- grader: Record<string, unknown>;
2745
- hyperparameters?: {
2746
- batch_size?: number | "auto" | undefined;
2747
- learning_rate_multiplier?: number | "auto" | undefined;
2748
- n_epochs?: number | "auto" | undefined;
2749
- compute_multiplier?: number | "auto" | undefined;
2750
- eval_interval?: number | "auto" | undefined;
2751
- eval_samples?: number | "auto" | undefined;
2752
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
2753
- } | undefined;
2754
- } | null | undefined;
2755
- }>;
892
+ batch_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
893
+ compute_multiplier: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
894
+ eval_interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
895
+ eval_samples: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
896
+ learning_rate_multiplier: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
897
+ n_epochs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
898
+ reasoning_effort: z.ZodOptional<z.ZodEnum<{
899
+ low: "low";
900
+ high: "high";
901
+ default: "default";
902
+ medium: "medium";
903
+ }>>;
904
+ }, z.core.$strip>>;
905
+ }, z.core.$strip>>>;
906
+ }, z.core.$strip>;
2756
907
  export declare const OpenAiFineTuningWandbConfigSchema: z.ZodObject<{
2757
908
  project: z.ZodString;
2758
909
  entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2759
910
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2760
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2761
- }, "strip", z.ZodTypeAny, {
2762
- project: string;
2763
- name?: string | null | undefined;
2764
- entity?: string | null | undefined;
2765
- tags?: string[] | undefined;
2766
- }, {
2767
- project: string;
2768
- name?: string | null | undefined;
2769
- entity?: string | null | undefined;
2770
- tags?: string[] | undefined;
2771
- }>;
911
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
912
+ }, z.core.$strip>;
2772
913
  export declare const OpenAiFineTuningIntegrationSchema: z.ZodObject<{
2773
914
  type: z.ZodLiteral<"wandb">;
2774
915
  wandb: z.ZodObject<{
2775
916
  project: z.ZodString;
2776
917
  entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2777
918
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2778
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2779
- }, "strip", z.ZodTypeAny, {
2780
- project: string;
2781
- name?: string | null | undefined;
2782
- entity?: string | null | undefined;
2783
- tags?: string[] | undefined;
2784
- }, {
2785
- project: string;
2786
- name?: string | null | undefined;
2787
- entity?: string | null | undefined;
2788
- tags?: string[] | undefined;
2789
- }>;
2790
- }, "strip", z.ZodTypeAny, {
2791
- type: "wandb";
2792
- wandb: {
2793
- project: string;
2794
- name?: string | null | undefined;
2795
- entity?: string | null | undefined;
2796
- tags?: string[] | undefined;
2797
- };
2798
- }, {
2799
- type: "wandb";
2800
- wandb: {
2801
- project: string;
2802
- name?: string | null | undefined;
2803
- entity?: string | null | undefined;
2804
- tags?: string[] | undefined;
2805
- };
2806
- }>;
919
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
920
+ }, z.core.$strip>;
921
+ }, z.core.$strip>;
2807
922
  export declare const OpenAiFineTuningJobCreateRequestSchema: z.ZodObject<{
2808
923
  model: z.ZodString;
2809
924
  training_file: z.ZodString;
2810
925
  hyperparameters: z.ZodOptional<z.ZodObject<{
2811
- batch_size: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>>;
2812
- learning_rate_multiplier: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>>;
2813
- n_epochs: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>>;
2814
- }, "strip", z.ZodTypeAny, {
2815
- batch_size?: number | "auto" | null | undefined;
2816
- learning_rate_multiplier?: number | "auto" | null | undefined;
2817
- n_epochs?: number | "auto" | null | undefined;
2818
- }, {
2819
- batch_size?: number | "auto" | null | undefined;
2820
- learning_rate_multiplier?: number | "auto" | null | undefined;
2821
- n_epochs?: number | "auto" | null | undefined;
2822
- }>>;
926
+ batch_size: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>>;
927
+ learning_rate_multiplier: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>>;
928
+ n_epochs: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>>;
929
+ }, z.core.$strip>>;
2823
930
  integrations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2824
931
  type: z.ZodLiteral<"wandb">;
2825
932
  wandb: z.ZodObject<{
2826
933
  project: z.ZodString;
2827
934
  entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2828
935
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2829
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2830
- }, "strip", z.ZodTypeAny, {
2831
- project: string;
2832
- name?: string | null | undefined;
2833
- entity?: string | null | undefined;
2834
- tags?: string[] | undefined;
2835
- }, {
2836
- project: string;
2837
- name?: string | null | undefined;
2838
- entity?: string | null | undefined;
2839
- tags?: string[] | undefined;
2840
- }>;
2841
- }, "strip", z.ZodTypeAny, {
2842
- type: "wandb";
2843
- wandb: {
2844
- project: string;
2845
- name?: string | null | undefined;
2846
- entity?: string | null | undefined;
2847
- tags?: string[] | undefined;
2848
- };
2849
- }, {
2850
- type: "wandb";
2851
- wandb: {
2852
- project: string;
2853
- name?: string | null | undefined;
2854
- entity?: string | null | undefined;
2855
- tags?: string[] | undefined;
2856
- };
2857
- }>, "many">>>;
936
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
937
+ }, z.core.$strip>;
938
+ }, z.core.$strip>>>>;
2858
939
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2859
940
  method: z.ZodOptional<z.ZodObject<{
2860
- type: z.ZodEnum<["supervised", "dpo", "reinforcement"]>;
941
+ type: z.ZodEnum<{
942
+ supervised: "supervised";
943
+ dpo: "dpo";
944
+ reinforcement: "reinforcement";
945
+ }>;
2861
946
  supervised: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2862
947
  hyperparameters: z.ZodOptional<z.ZodObject<{
2863
- batch_size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2864
- learning_rate_multiplier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2865
- n_epochs: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2866
- }, "strip", z.ZodTypeAny, {
2867
- batch_size?: number | "auto" | undefined;
2868
- learning_rate_multiplier?: number | "auto" | undefined;
2869
- n_epochs?: number | "auto" | undefined;
2870
- }, {
2871
- batch_size?: number | "auto" | undefined;
2872
- learning_rate_multiplier?: number | "auto" | undefined;
2873
- n_epochs?: number | "auto" | undefined;
2874
- }>>;
2875
- }, "strip", z.ZodTypeAny, {
2876
- hyperparameters?: {
2877
- batch_size?: number | "auto" | undefined;
2878
- learning_rate_multiplier?: number | "auto" | undefined;
2879
- n_epochs?: number | "auto" | undefined;
2880
- } | undefined;
2881
- }, {
2882
- hyperparameters?: {
2883
- batch_size?: number | "auto" | undefined;
2884
- learning_rate_multiplier?: number | "auto" | undefined;
2885
- n_epochs?: number | "auto" | undefined;
2886
- } | undefined;
2887
- }>>>;
948
+ batch_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
949
+ learning_rate_multiplier: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
950
+ n_epochs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
951
+ }, z.core.$strip>>;
952
+ }, z.core.$strip>>>;
2888
953
  dpo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2889
954
  hyperparameters: z.ZodOptional<z.ZodObject<{
2890
- batch_size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2891
- beta: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2892
- learning_rate_multiplier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2893
- n_epochs: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2894
- }, "strip", z.ZodTypeAny, {
2895
- batch_size?: number | "auto" | undefined;
2896
- learning_rate_multiplier?: number | "auto" | undefined;
2897
- n_epochs?: number | "auto" | undefined;
2898
- beta?: number | "auto" | undefined;
2899
- }, {
2900
- batch_size?: number | "auto" | undefined;
2901
- learning_rate_multiplier?: number | "auto" | undefined;
2902
- n_epochs?: number | "auto" | undefined;
2903
- beta?: number | "auto" | undefined;
2904
- }>>;
2905
- }, "strip", z.ZodTypeAny, {
2906
- hyperparameters?: {
2907
- batch_size?: number | "auto" | undefined;
2908
- learning_rate_multiplier?: number | "auto" | undefined;
2909
- n_epochs?: number | "auto" | undefined;
2910
- beta?: number | "auto" | undefined;
2911
- } | undefined;
2912
- }, {
2913
- hyperparameters?: {
2914
- batch_size?: number | "auto" | undefined;
2915
- learning_rate_multiplier?: number | "auto" | undefined;
2916
- n_epochs?: number | "auto" | undefined;
2917
- beta?: number | "auto" | undefined;
2918
- } | undefined;
2919
- }>>>;
955
+ batch_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
956
+ beta: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
957
+ learning_rate_multiplier: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
958
+ n_epochs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
959
+ }, z.core.$strip>>;
960
+ }, z.core.$strip>>>;
2920
961
  reinforcement: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2921
962
  grader: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2922
963
  hyperparameters: z.ZodOptional<z.ZodObject<{
2923
- batch_size: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2924
- compute_multiplier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2925
- eval_interval: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2926
- eval_samples: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2927
- learning_rate_multiplier: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2928
- n_epochs: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodNumber]>>;
2929
- reasoning_effort: z.ZodOptional<z.ZodEnum<["default", "low", "medium", "high"]>>;
2930
- }, "strip", z.ZodTypeAny, {
2931
- batch_size?: number | "auto" | undefined;
2932
- learning_rate_multiplier?: number | "auto" | undefined;
2933
- n_epochs?: number | "auto" | undefined;
2934
- compute_multiplier?: number | "auto" | undefined;
2935
- eval_interval?: number | "auto" | undefined;
2936
- eval_samples?: number | "auto" | undefined;
2937
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
2938
- }, {
2939
- batch_size?: number | "auto" | undefined;
2940
- learning_rate_multiplier?: number | "auto" | undefined;
2941
- n_epochs?: number | "auto" | undefined;
2942
- compute_multiplier?: number | "auto" | undefined;
2943
- eval_interval?: number | "auto" | undefined;
2944
- eval_samples?: number | "auto" | undefined;
2945
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
2946
- }>>;
2947
- }, "strip", z.ZodTypeAny, {
2948
- grader: Record<string, unknown>;
2949
- hyperparameters?: {
2950
- batch_size?: number | "auto" | undefined;
2951
- learning_rate_multiplier?: number | "auto" | undefined;
2952
- n_epochs?: number | "auto" | undefined;
2953
- compute_multiplier?: number | "auto" | undefined;
2954
- eval_interval?: number | "auto" | undefined;
2955
- eval_samples?: number | "auto" | undefined;
2956
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
2957
- } | undefined;
2958
- }, {
2959
- grader: Record<string, unknown>;
2960
- hyperparameters?: {
2961
- batch_size?: number | "auto" | undefined;
2962
- learning_rate_multiplier?: number | "auto" | undefined;
2963
- n_epochs?: number | "auto" | undefined;
2964
- compute_multiplier?: number | "auto" | undefined;
2965
- eval_interval?: number | "auto" | undefined;
2966
- eval_samples?: number | "auto" | undefined;
2967
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
2968
- } | undefined;
2969
- }>>>;
2970
- }, "strip", z.ZodTypeAny, {
2971
- type: "supervised" | "dpo" | "reinforcement";
2972
- supervised?: {
2973
- hyperparameters?: {
2974
- batch_size?: number | "auto" | undefined;
2975
- learning_rate_multiplier?: number | "auto" | undefined;
2976
- n_epochs?: number | "auto" | undefined;
2977
- } | undefined;
2978
- } | null | undefined;
2979
- dpo?: {
2980
- hyperparameters?: {
2981
- batch_size?: number | "auto" | undefined;
2982
- learning_rate_multiplier?: number | "auto" | undefined;
2983
- n_epochs?: number | "auto" | undefined;
2984
- beta?: number | "auto" | undefined;
2985
- } | undefined;
2986
- } | null | undefined;
2987
- reinforcement?: {
2988
- grader: Record<string, unknown>;
2989
- hyperparameters?: {
2990
- batch_size?: number | "auto" | undefined;
2991
- learning_rate_multiplier?: number | "auto" | undefined;
2992
- n_epochs?: number | "auto" | undefined;
2993
- compute_multiplier?: number | "auto" | undefined;
2994
- eval_interval?: number | "auto" | undefined;
2995
- eval_samples?: number | "auto" | undefined;
2996
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
2997
- } | undefined;
2998
- } | null | undefined;
2999
- }, {
3000
- type: "supervised" | "dpo" | "reinforcement";
3001
- supervised?: {
3002
- hyperparameters?: {
3003
- batch_size?: number | "auto" | undefined;
3004
- learning_rate_multiplier?: number | "auto" | undefined;
3005
- n_epochs?: number | "auto" | undefined;
3006
- } | undefined;
3007
- } | null | undefined;
3008
- dpo?: {
3009
- hyperparameters?: {
3010
- batch_size?: number | "auto" | undefined;
3011
- learning_rate_multiplier?: number | "auto" | undefined;
3012
- n_epochs?: number | "auto" | undefined;
3013
- beta?: number | "auto" | undefined;
3014
- } | undefined;
3015
- } | null | undefined;
3016
- reinforcement?: {
3017
- grader: Record<string, unknown>;
3018
- hyperparameters?: {
3019
- batch_size?: number | "auto" | undefined;
3020
- learning_rate_multiplier?: number | "auto" | undefined;
3021
- n_epochs?: number | "auto" | undefined;
3022
- compute_multiplier?: number | "auto" | undefined;
3023
- eval_interval?: number | "auto" | undefined;
3024
- eval_samples?: number | "auto" | undefined;
3025
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
3026
- } | undefined;
3027
- } | null | undefined;
3028
- }>>;
964
+ batch_size: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
965
+ compute_multiplier: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
966
+ eval_interval: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
967
+ eval_samples: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
968
+ learning_rate_multiplier: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
969
+ n_epochs: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodNumber]>>;
970
+ reasoning_effort: z.ZodOptional<z.ZodEnum<{
971
+ low: "low";
972
+ high: "high";
973
+ default: "default";
974
+ medium: "medium";
975
+ }>>;
976
+ }, z.core.$strip>>;
977
+ }, z.core.$strip>>>;
978
+ }, z.core.$strip>>;
3029
979
  seed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3030
980
  suffix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3031
981
  validation_file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3032
- }, "strip", z.ZodTypeAny, {
3033
- model: string;
3034
- training_file: string;
3035
- metadata?: Record<string, string> | null | undefined;
3036
- hyperparameters?: {
3037
- batch_size?: number | "auto" | null | undefined;
3038
- learning_rate_multiplier?: number | "auto" | null | undefined;
3039
- n_epochs?: number | "auto" | null | undefined;
3040
- } | undefined;
3041
- integrations?: {
3042
- type: "wandb";
3043
- wandb: {
3044
- project: string;
3045
- name?: string | null | undefined;
3046
- entity?: string | null | undefined;
3047
- tags?: string[] | undefined;
3048
- };
3049
- }[] | null | undefined;
3050
- method?: {
3051
- type: "supervised" | "dpo" | "reinforcement";
3052
- supervised?: {
3053
- hyperparameters?: {
3054
- batch_size?: number | "auto" | undefined;
3055
- learning_rate_multiplier?: number | "auto" | undefined;
3056
- n_epochs?: number | "auto" | undefined;
3057
- } | undefined;
3058
- } | null | undefined;
3059
- dpo?: {
3060
- hyperparameters?: {
3061
- batch_size?: number | "auto" | undefined;
3062
- learning_rate_multiplier?: number | "auto" | undefined;
3063
- n_epochs?: number | "auto" | undefined;
3064
- beta?: number | "auto" | undefined;
3065
- } | undefined;
3066
- } | null | undefined;
3067
- reinforcement?: {
3068
- grader: Record<string, unknown>;
3069
- hyperparameters?: {
3070
- batch_size?: number | "auto" | undefined;
3071
- learning_rate_multiplier?: number | "auto" | undefined;
3072
- n_epochs?: number | "auto" | undefined;
3073
- compute_multiplier?: number | "auto" | undefined;
3074
- eval_interval?: number | "auto" | undefined;
3075
- eval_samples?: number | "auto" | undefined;
3076
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
3077
- } | undefined;
3078
- } | null | undefined;
3079
- } | undefined;
3080
- seed?: number | null | undefined;
3081
- suffix?: string | null | undefined;
3082
- validation_file?: string | null | undefined;
3083
- }, {
3084
- model: string;
3085
- training_file: string;
3086
- metadata?: Record<string, string> | null | undefined;
3087
- hyperparameters?: {
3088
- batch_size?: number | "auto" | null | undefined;
3089
- learning_rate_multiplier?: number | "auto" | null | undefined;
3090
- n_epochs?: number | "auto" | null | undefined;
3091
- } | undefined;
3092
- integrations?: {
3093
- type: "wandb";
3094
- wandb: {
3095
- project: string;
3096
- name?: string | null | undefined;
3097
- entity?: string | null | undefined;
3098
- tags?: string[] | undefined;
3099
- };
3100
- }[] | null | undefined;
3101
- method?: {
3102
- type: "supervised" | "dpo" | "reinforcement";
3103
- supervised?: {
3104
- hyperparameters?: {
3105
- batch_size?: number | "auto" | undefined;
3106
- learning_rate_multiplier?: number | "auto" | undefined;
3107
- n_epochs?: number | "auto" | undefined;
3108
- } | undefined;
3109
- } | null | undefined;
3110
- dpo?: {
3111
- hyperparameters?: {
3112
- batch_size?: number | "auto" | undefined;
3113
- learning_rate_multiplier?: number | "auto" | undefined;
3114
- n_epochs?: number | "auto" | undefined;
3115
- beta?: number | "auto" | undefined;
3116
- } | undefined;
3117
- } | null | undefined;
3118
- reinforcement?: {
3119
- grader: Record<string, unknown>;
3120
- hyperparameters?: {
3121
- batch_size?: number | "auto" | undefined;
3122
- learning_rate_multiplier?: number | "auto" | undefined;
3123
- n_epochs?: number | "auto" | undefined;
3124
- compute_multiplier?: number | "auto" | undefined;
3125
- eval_interval?: number | "auto" | undefined;
3126
- eval_samples?: number | "auto" | undefined;
3127
- reasoning_effort?: "low" | "high" | "medium" | "default" | undefined;
3128
- } | undefined;
3129
- } | null | undefined;
3130
- } | undefined;
3131
- seed?: number | null | undefined;
3132
- suffix?: string | null | undefined;
3133
- validation_file?: string | null | undefined;
3134
- }>;
982
+ }, z.core.$strip>;
3135
983
  export declare const OpenAiCheckpointPermissionCreateRequestSchema: z.ZodObject<{
3136
- project_ids: z.ZodArray<z.ZodString, "many">;
3137
- }, "strip", z.ZodTypeAny, {
3138
- project_ids: string[];
3139
- }, {
3140
- project_ids: string[];
3141
- }>;
984
+ project_ids: z.ZodArray<z.ZodString>;
985
+ }, z.core.$strip>;
3142
986
  export declare const OpenAiOrganizationUsageQuerySchema: z.ZodObject<{
3143
987
  start_time: z.ZodNumber;
3144
988
  end_time: z.ZodOptional<z.ZodNumber>;
3145
- bucket_width: z.ZodOptional<z.ZodEnum<["1m", "1h", "1d"]>>;
3146
- project_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3147
- user_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3148
- api_key_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3149
- models: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3150
- group_by: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
989
+ bucket_width: z.ZodOptional<z.ZodEnum<{
990
+ "1m": "1m";
991
+ "1h": "1h";
992
+ "1d": "1d";
993
+ }>>;
994
+ project_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
995
+ user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
996
+ api_key_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
997
+ models: z.ZodOptional<z.ZodArray<z.ZodString>>;
998
+ group_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
3151
999
  limit: z.ZodOptional<z.ZodNumber>;
3152
1000
  page: z.ZodOptional<z.ZodString>;
3153
1001
  batch: z.ZodOptional<z.ZodBoolean>;
3154
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3155
- sources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3156
- }, "strip", z.ZodTypeAny, {
3157
- start_time: number;
3158
- batch?: boolean | undefined;
3159
- project_ids?: string[] | undefined;
3160
- end_time?: number | undefined;
3161
- bucket_width?: "1m" | "1h" | "1d" | undefined;
3162
- user_ids?: string[] | undefined;
3163
- api_key_ids?: string[] | undefined;
3164
- models?: string[] | undefined;
3165
- group_by?: string[] | undefined;
3166
- limit?: number | undefined;
3167
- page?: string | undefined;
3168
- sizes?: string[] | undefined;
3169
- sources?: string[] | undefined;
3170
- }, {
3171
- start_time: number;
3172
- batch?: boolean | undefined;
3173
- project_ids?: string[] | undefined;
3174
- end_time?: number | undefined;
3175
- bucket_width?: "1m" | "1h" | "1d" | undefined;
3176
- user_ids?: string[] | undefined;
3177
- api_key_ids?: string[] | undefined;
3178
- models?: string[] | undefined;
3179
- group_by?: string[] | undefined;
3180
- limit?: number | undefined;
3181
- page?: string | undefined;
3182
- sizes?: string[] | undefined;
3183
- sources?: string[] | undefined;
3184
- }>;
1002
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString>>;
1003
+ sources: z.ZodOptional<z.ZodArray<z.ZodString>>;
1004
+ }, z.core.$strip>;
3185
1005
  export declare const OpenAiOrganizationCostsQuerySchema: z.ZodObject<{
3186
1006
  start_time: z.ZodNumber;
3187
1007
  end_time: z.ZodOptional<z.ZodNumber>;
3188
1008
  bucket_width: z.ZodOptional<z.ZodLiteral<"1d">>;
3189
- project_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3190
- group_by: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1009
+ project_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
1010
+ group_by: z.ZodOptional<z.ZodArray<z.ZodString>>;
3191
1011
  limit: z.ZodOptional<z.ZodNumber>;
3192
1012
  page: z.ZodOptional<z.ZodString>;
3193
- }, "strip", z.ZodTypeAny, {
3194
- start_time: number;
3195
- project_ids?: string[] | undefined;
3196
- end_time?: number | undefined;
3197
- bucket_width?: "1d" | undefined;
3198
- group_by?: string[] | undefined;
3199
- limit?: number | undefined;
3200
- page?: string | undefined;
3201
- }, {
3202
- start_time: number;
3203
- project_ids?: string[] | undefined;
3204
- end_time?: number | undefined;
3205
- bucket_width?: "1d" | undefined;
3206
- group_by?: string[] | undefined;
3207
- limit?: number | undefined;
3208
- page?: string | undefined;
3209
- }>;
1013
+ }, z.core.$strip>;
3210
1014
  export declare const OpenAiOrganizationProjectListQuerySchema: z.ZodObject<{
3211
1015
  after: z.ZodOptional<z.ZodString>;
3212
1016
  include_archived: z.ZodOptional<z.ZodBoolean>;
3213
1017
  limit: z.ZodOptional<z.ZodNumber>;
3214
- }, "strip", z.ZodTypeAny, {
3215
- limit?: number | undefined;
3216
- after?: string | undefined;
3217
- include_archived?: boolean | undefined;
3218
- }, {
3219
- limit?: number | undefined;
3220
- after?: string | undefined;
3221
- include_archived?: boolean | undefined;
3222
- }>;
1018
+ }, z.core.$strip>;
3223
1019
  export declare const OpenAiOrganizationProjectRateLimitListQuerySchema: z.ZodObject<{
3224
1020
  after: z.ZodOptional<z.ZodString>;
3225
1021
  before: z.ZodOptional<z.ZodString>;
3226
1022
  limit: z.ZodOptional<z.ZodNumber>;
3227
- }, "strip", z.ZodTypeAny, {
3228
- limit?: number | undefined;
3229
- after?: string | undefined;
3230
- before?: string | undefined;
3231
- }, {
3232
- limit?: number | undefined;
3233
- after?: string | undefined;
3234
- before?: string | undefined;
3235
- }>;
1023
+ }, z.core.$strip>;
3236
1024
  export declare const OpenAiOptionsSchema: z.ZodObject<{
3237
1025
  apiKey: z.ZodString;
3238
1026
  baseURL: z.ZodOptional<z.ZodString>;
3239
1027
  timeout: z.ZodOptional<z.ZodNumber>;
3240
- fetch: z.ZodOptional<z.ZodType<(input: RequestInfo | URL, init?: RequestInit) => Promise<Response>, z.ZodTypeDef, (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>>>;
3241
- }, "strip", z.ZodTypeAny, {
3242
- apiKey: string;
3243
- baseURL?: string | undefined;
3244
- timeout?: number | undefined;
3245
- fetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined;
3246
- }, {
3247
- apiKey: string;
3248
- baseURL?: string | undefined;
3249
- timeout?: number | undefined;
3250
- fetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined;
3251
- }>;
1028
+ fetch: z.ZodOptional<z.ZodCustom<(input: RequestInfo | URL, init?: RequestInit) => Promise<Response>, (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>>>;
1029
+ }, z.core.$strip>;
3252
1030
  export type OpenAiTextPart = z.infer<typeof OpenAiTextPartSchema>;
3253
1031
  export type OpenAiImageUrlPart = z.infer<typeof OpenAiImageUrlPartSchema>;
3254
1032
  export type OpenAiContentPart = z.infer<typeof OpenAiContentPartSchema>;
@@ -3256,31 +1034,43 @@ export type OpenAiMessage = z.infer<typeof OpenAiMessageSchema>;
3256
1034
  export type OpenAiToolFunction = z.infer<typeof OpenAiToolFunctionSchema>;
3257
1035
  export type OpenAiTool = z.infer<typeof OpenAiToolSchema>;
3258
1036
  export type OpenAiChatRequest = z.input<typeof OpenAiChatRequestSchema>;
1037
+ export type OpenAiChatRequestInput = OpenAiChatRequest;
3259
1038
  export type OpenAiChatParsedRequest = z.output<typeof OpenAiChatRequestSchema>;
3260
1039
  export type OpenAiStoredCompletionUpdateRequest = z.input<typeof OpenAiStoredCompletionUpdateRequestSchema>;
1040
+ export type OpenAiStoredCompletionUpdateRequestInput = OpenAiStoredCompletionUpdateRequest;
3261
1041
  export type OpenAiStoredCompletionUpdateParsedRequest = z.output<typeof OpenAiStoredCompletionUpdateRequestSchema>;
3262
1042
  export type OpenAiEmbeddingRequest = z.input<typeof OpenAiEmbeddingRequestSchema>;
1043
+ export type OpenAiEmbeddingRequestInput = OpenAiEmbeddingRequest;
3263
1044
  export type OpenAiEmbeddingParsedRequest = z.output<typeof OpenAiEmbeddingRequestSchema>;
3264
1045
  export type OpenAiImageEditRequest = z.input<typeof OpenAiImageEditRequestSchema>;
1046
+ export type OpenAiImageEditRequestInput = OpenAiImageEditRequest;
3265
1047
  export type OpenAiImageEditParsedRequest = z.output<typeof OpenAiImageEditRequestSchema>;
3266
1048
  export type OpenAiImageGenerationRequest = z.input<typeof OpenAiImageGenerationRequestSchema>;
1049
+ export type OpenAiImageGenerationRequestInput = OpenAiImageGenerationRequest;
3267
1050
  export type OpenAiImageGenerationParsedRequest = z.output<typeof OpenAiImageGenerationRequestSchema>;
3268
1051
  export type OpenAiImageVariationRequest = z.input<typeof OpenAiImageVariationRequestSchema>;
1052
+ export type OpenAiImageVariationRequestInput = OpenAiImageVariationRequest;
3269
1053
  export type OpenAiImageVariationParsedRequest = z.output<typeof OpenAiImageVariationRequestSchema>;
3270
1054
  export type OpenAiSpeechRequest = z.input<typeof OpenAiSpeechRequestSchema>;
1055
+ export type OpenAiSpeechRequestInput = OpenAiSpeechRequest;
3271
1056
  export type OpenAiSpeechParsedRequest = z.output<typeof OpenAiSpeechRequestSchema>;
3272
1057
  export type OpenAiTranscribeRequest = z.input<typeof OpenAiTranscribeRequestSchema>;
1058
+ export type OpenAiTranscribeRequestInput = OpenAiTranscribeRequest;
3273
1059
  export type OpenAiTranscribeParsedRequest = z.output<typeof OpenAiTranscribeRequestSchema>;
3274
1060
  export type OpenAiTranslateRequest = z.input<typeof OpenAiTranslateRequestSchema>;
1061
+ export type OpenAiTranslateRequestInput = OpenAiTranslateRequest;
3275
1062
  export type OpenAiTranslateParsedRequest = z.output<typeof OpenAiTranslateRequestSchema>;
3276
1063
  export type OpenAiModerationTextInput = z.infer<typeof OpenAiModerationTextInputSchema>;
3277
1064
  export type OpenAiModerationImageUrlInput = z.infer<typeof OpenAiModerationImageUrlInputSchema>;
3278
1065
  export type OpenAiModerationMultiModalInput = z.infer<typeof OpenAiModerationMultiModalInputSchema>;
3279
1066
  export type OpenAiModerationRequest = z.input<typeof OpenAiModerationRequestSchema>;
1067
+ export type OpenAiModerationRequestInput = OpenAiModerationRequest;
3280
1068
  export type OpenAiModerationParsedRequest = z.output<typeof OpenAiModerationRequestSchema>;
3281
1069
  export type OpenAiFileUploadRequest = z.input<typeof OpenAiFileUploadRequestSchema>;
1070
+ export type OpenAiFileUploadRequestInput = OpenAiFileUploadRequest;
3282
1071
  export type OpenAiFileUploadParsedRequest = z.output<typeof OpenAiFileUploadRequestSchema>;
3283
1072
  export type OpenAiBatchCreateRequest = z.input<typeof OpenAiBatchCreateRequestSchema>;
1073
+ export type OpenAiBatchCreateRequestInput = OpenAiBatchCreateRequest;
3284
1074
  export type OpenAiBatchCreateParsedRequest = z.output<typeof OpenAiBatchCreateRequestSchema>;
3285
1075
  export type OpenAiResponseInputTextContent = z.infer<typeof OpenAiResponseInputTextContentSchema>;
3286
1076
  export type OpenAiResponseInputImageContent = z.infer<typeof OpenAiResponseInputImageContentSchema>;
@@ -3298,10 +1088,13 @@ export type OpenAiResponseTool = z.infer<typeof OpenAiResponseToolSchema>;
3298
1088
  export type OpenAiResponseTextFormat = z.infer<typeof OpenAiResponseTextFormatSchema>;
3299
1089
  export type OpenAiResponseReasoning = z.infer<typeof OpenAiResponseReasoningSchema>;
3300
1090
  export type OpenAiResponseRequest = z.input<typeof OpenAiResponseRequestSchema>;
1091
+ export type OpenAiResponseRequestInput = OpenAiResponseRequest;
3301
1092
  export type OpenAiResponseParsedRequest = z.output<typeof OpenAiResponseRequestSchema>;
3302
1093
  export type OpenAiResponseCompactRequest = z.input<typeof OpenAiResponseCompactRequestSchema>;
1094
+ export type OpenAiResponseCompactRequestInput = OpenAiResponseCompactRequest;
3303
1095
  export type OpenAiResponseCompactParsedRequest = z.output<typeof OpenAiResponseCompactRequestSchema>;
3304
1096
  export type OpenAiResponseInputTokensRequest = z.input<typeof OpenAiResponseInputTokensRequestSchema>;
1097
+ export type OpenAiResponseInputTokensRequestInput = OpenAiResponseInputTokensRequest;
3305
1098
  export type OpenAiResponseInputTokensParsedRequest = z.output<typeof OpenAiResponseInputTokensRequestSchema>;
3306
1099
  export type OpenAiFineTuningHyperparameters = z.infer<typeof OpenAiFineTuningHyperparametersSchema>;
3307
1100
  export type OpenAiFineTuningSupervisedHyperparameters = z.infer<typeof OpenAiFineTuningSupervisedMethodSchema>["hyperparameters"];
@@ -3314,8 +1107,10 @@ export type OpenAiFineTuningMethod = z.infer<typeof OpenAiFineTuningMethodSchema
3314
1107
  export type OpenAiFineTuningWandbConfig = z.infer<typeof OpenAiFineTuningWandbConfigSchema>;
3315
1108
  export type OpenAiFineTuningIntegration = z.infer<typeof OpenAiFineTuningIntegrationSchema>;
3316
1109
  export type OpenAiFineTuningJobCreateRequest = z.input<typeof OpenAiFineTuningJobCreateRequestSchema>;
1110
+ export type OpenAiFineTuningJobCreateRequestInput = OpenAiFineTuningJobCreateRequest;
3317
1111
  export type OpenAiFineTuningJobCreateParsedRequest = z.output<typeof OpenAiFineTuningJobCreateRequestSchema>;
3318
1112
  export type OpenAiCheckpointPermissionCreateRequest = z.input<typeof OpenAiCheckpointPermissionCreateRequestSchema>;
1113
+ export type OpenAiCheckpointPermissionCreateRequestInput = OpenAiCheckpointPermissionCreateRequest;
3319
1114
  export type OpenAiCheckpointPermissionCreateParsedRequest = z.output<typeof OpenAiCheckpointPermissionCreateRequestSchema>;
3320
1115
  export type OpenAiOrganizationUsageQuery = z.infer<typeof OpenAiOrganizationUsageQuerySchema>;
3321
1116
  export type OpenAiOrganizationCostsQuery = z.infer<typeof OpenAiOrganizationCostsQuerySchema>;