@apicity/openai 0.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3210 @@
1
+ import { z } from "zod";
2
+ export { z };
3
+ export declare const OpenAiTextPartSchema: z.ZodObject<{
4
+ type: z.ZodLiteral<"text">;
5
+ text: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ type: "text";
8
+ text: string;
9
+ }, {
10
+ type: "text";
11
+ text: string;
12
+ }>;
13
+ export declare const OpenAiImageUrlPartSchema: z.ZodObject<{
14
+ type: z.ZodLiteral<"image_url">;
15
+ image_url: z.ZodObject<{
16
+ 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<{
39
+ type: z.ZodLiteral<"text">;
40
+ text: z.ZodString;
41
+ }, "strip", z.ZodTypeAny, {
42
+ type: "text";
43
+ text: string;
44
+ }, {
45
+ type: "text";
46
+ text: string;
47
+ }>, z.ZodObject<{
48
+ type: z.ZodLiteral<"image_url">;
49
+ image_url: z.ZodObject<{
50
+ 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
+ }>]>;
72
+ 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<{
75
+ type: z.ZodLiteral<"text">;
76
+ text: z.ZodString;
77
+ }, "strip", z.ZodTypeAny, {
78
+ type: "text";
79
+ text: string;
80
+ }, {
81
+ type: "text";
82
+ text: string;
83
+ }>, z.ZodObject<{
84
+ type: z.ZodLiteral<"image_url">;
85
+ image_url: z.ZodObject<{
86
+ 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
+ }>;
133
+ export declare const OpenAiToolFunctionSchema: z.ZodObject<{
134
+ name: z.ZodString;
135
+ description: z.ZodOptional<z.ZodString>;
136
+ 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
+ }>;
146
+ export declare const OpenAiToolSchema: z.ZodObject<{
147
+ type: z.ZodLiteral<"function">;
148
+ function: z.ZodObject<{
149
+ name: z.ZodString;
150
+ description: z.ZodOptional<z.ZodString>;
151
+ 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
+ }>;
176
+ export declare const OpenAiChatRequestSchema: z.ZodObject<{
177
+ model: z.ZodOptional<z.ZodString>;
178
+ 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<{
181
+ type: z.ZodLiteral<"text">;
182
+ text: z.ZodString;
183
+ }, "strip", z.ZodTypeAny, {
184
+ type: "text";
185
+ text: string;
186
+ }, {
187
+ type: "text";
188
+ text: string;
189
+ }>, z.ZodObject<{
190
+ type: z.ZodLiteral<"image_url">;
191
+ image_url: z.ZodObject<{
192
+ 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">;
239
+ temperature: z.ZodOptional<z.ZodNumber>;
240
+ max_tokens: z.ZodOptional<z.ZodNumber>;
241
+ max_completion_tokens: z.ZodOptional<z.ZodNumber>;
242
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
243
+ type: z.ZodLiteral<"function">;
244
+ function: z.ZodObject<{
245
+ name: z.ZodString;
246
+ description: z.ZodOptional<z.ZodString>;
247
+ 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<{
273
+ type: z.ZodLiteral<"function">;
274
+ function: z.ZodObject<{
275
+ 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
+ }>]>>;
292
+ response_format: z.ZodOptional<z.ZodObject<{
293
+ type: z.ZodEnum<["text", "json_object", "json_schema"]>;
294
+ 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
+ }>>;
302
+ store: z.ZodOptional<z.ZodBoolean>;
303
+ 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
+ }>;
381
+ export declare const OpenAiStoredCompletionUpdateRequestSchema: z.ZodObject<{
382
+ metadata: z.ZodRecord<z.ZodString, z.ZodString>;
383
+ }, "strip", z.ZodTypeAny, {
384
+ metadata: Record<string, string>;
385
+ }, {
386
+ metadata: Record<string, string>;
387
+ }>;
388
+ 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">]>;
390
+ model: z.ZodString;
391
+ encoding_format: z.ZodOptional<z.ZodEnum<["float", "base64"]>>;
392
+ dimensions: z.ZodOptional<z.ZodNumber>;
393
+ 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
+ }>;
407
+ 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">]>;
409
+ prompt: z.ZodString;
410
+ mask: z.ZodOptional<z.ZodType<Blob, z.ZodTypeDef, Blob>>;
411
+ model: z.ZodOptional<z.ZodString>;
412
+ 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"]>>;
419
+ output_compression: z.ZodOptional<z.ZodNumber>;
420
+ 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
+ }>;
450
+ export declare const OpenAiImageGenerationRequestSchema: z.ZodObject<{
451
+ prompt: z.ZodString;
452
+ model: z.ZodOptional<z.ZodString>;
453
+ n: z.ZodOptional<z.ZodNumber>;
454
+ size: z.ZodOptional<z.ZodString>;
455
+ 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"]>>;
461
+ output_compression: z.ZodOptional<z.ZodNumber>;
462
+ 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
+ }>;
490
+ export declare const OpenAiImageVariationRequestSchema: z.ZodObject<{
491
+ image: z.ZodType<Blob, z.ZodTypeDef, Blob>;
492
+ model: z.ZodOptional<z.ZodString>;
493
+ n: z.ZodOptional<z.ZodNumber>;
494
+ response_format: z.ZodOptional<z.ZodEnum<["url", "b64_json"]>>;
495
+ size: z.ZodOptional<z.ZodEnum<["1024x1024", "1024x1536", "1536x1024"]>>;
496
+ 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
+ }>;
512
+ export declare const OpenAiSpeechRequestSchema: z.ZodObject<{
513
+ model: z.ZodString;
514
+ 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"]>>;
517
+ speed: z.ZodOptional<z.ZodNumber>;
518
+ 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
+ }>;
534
+ export declare const OpenAiTranscribeRequestSchema: z.ZodObject<{
535
+ file: z.ZodType<Blob, z.ZodTypeDef, Blob>;
536
+ model: z.ZodString;
537
+ response_format: z.ZodOptional<z.ZodString>;
538
+ language: z.ZodOptional<z.ZodString>;
539
+ prompt: z.ZodOptional<z.ZodString>;
540
+ 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
+ }>;
556
+ export declare const OpenAiTranslateRequestSchema: z.ZodObject<{
557
+ file: z.ZodType<Blob, z.ZodTypeDef, Blob>;
558
+ model: z.ZodString;
559
+ response_format: z.ZodOptional<z.ZodString>;
560
+ prompt: z.ZodOptional<z.ZodString>;
561
+ 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
+ }>;
575
+ export declare const OpenAiModerationTextInputSchema: z.ZodObject<{
576
+ type: z.ZodLiteral<"text">;
577
+ text: z.ZodString;
578
+ }, "strip", z.ZodTypeAny, {
579
+ type: "text";
580
+ text: string;
581
+ }, {
582
+ type: "text";
583
+ text: string;
584
+ }>;
585
+ export declare const OpenAiModerationImageUrlInputSchema: z.ZodObject<{
586
+ type: z.ZodLiteral<"image_url">;
587
+ image_url: z.ZodObject<{
588
+ 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<{
606
+ type: z.ZodLiteral<"text">;
607
+ text: z.ZodString;
608
+ }, "strip", z.ZodTypeAny, {
609
+ type: "text";
610
+ text: string;
611
+ }, {
612
+ type: "text";
613
+ text: string;
614
+ }>, z.ZodObject<{
615
+ type: z.ZodLiteral<"image_url">;
616
+ image_url: z.ZodObject<{
617
+ 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
+ }>]>;
634
+ export declare const OpenAiModerationRequestSchema: z.ZodObject<{
635
+ input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
636
+ type: z.ZodLiteral<"text">;
637
+ text: z.ZodString;
638
+ }, "strip", z.ZodTypeAny, {
639
+ type: "text";
640
+ text: string;
641
+ }, {
642
+ type: "text";
643
+ text: string;
644
+ }>, z.ZodObject<{
645
+ type: z.ZodLiteral<"image_url">;
646
+ image_url: z.ZodObject<{
647
+ 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">]>;
664
+ 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
+ }>;
688
+ 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"]>;
691
+ expires_after: z.ZodOptional<z.ZodObject<{
692
+ anchor: z.ZodLiteral<"created_at">;
693
+ 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
+ }>;
716
+ export declare const OpenAiBatchCreateRequestSchema: z.ZodObject<{
717
+ input_file_id: z.ZodString;
718
+ endpoint: z.ZodString;
719
+ completion_window: z.ZodString;
720
+ 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
+ }>;
732
+ export declare const OpenAiResponseInputTextContentSchema: z.ZodObject<{
733
+ type: z.ZodLiteral<"input_text">;
734
+ text: z.ZodString;
735
+ }, "strip", z.ZodTypeAny, {
736
+ type: "input_text";
737
+ text: string;
738
+ }, {
739
+ type: "input_text";
740
+ text: string;
741
+ }>;
742
+ export declare const OpenAiResponseInputImageContentSchema: z.ZodObject<{
743
+ type: z.ZodLiteral<"input_image">;
744
+ image_url: z.ZodOptional<z.ZodString>;
745
+ 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
+ }>;
758
+ export declare const OpenAiResponseInputAudioContentSchema: z.ZodObject<{
759
+ type: z.ZodLiteral<"input_audio">;
760
+ 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<{
772
+ type: z.ZodLiteral<"input_text">;
773
+ 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<{
781
+ type: z.ZodLiteral<"input_image">;
782
+ image_url: z.ZodOptional<z.ZodString>;
783
+ 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<{
796
+ type: z.ZodLiteral<"input_audio">;
797
+ 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
+ }>]>;
808
+ 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<{
811
+ type: z.ZodLiteral<"input_text">;
812
+ 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<{
820
+ type: z.ZodLiteral<"input_image">;
821
+ image_url: z.ZodOptional<z.ZodString>;
822
+ 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<{
835
+ type: z.ZodLiteral<"input_audio">;
836
+ 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
+ }>;
878
+ export declare const OpenAiResponseFunctionCallOutputSchema: z.ZodObject<{
879
+ type: z.ZodLiteral<"function_call_output">;
880
+ call_id: z.ZodString;
881
+ 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
+ }>;
891
+ export declare const OpenAiResponseItemReferenceSchema: z.ZodObject<{
892
+ type: z.ZodLiteral<"item_reference">;
893
+ 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<{
904
+ type: z.ZodLiteral<"input_text">;
905
+ 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<{
913
+ type: z.ZodLiteral<"input_image">;
914
+ image_url: z.ZodOptional<z.ZodString>;
915
+ 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<{
928
+ type: z.ZodLiteral<"input_audio">;
929
+ 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
+ } & {
941
+ 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<{
975
+ type: z.ZodLiteral<"function_call_output">;
976
+ call_id: z.ZodString;
977
+ 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<{
987
+ type: z.ZodLiteral<"item_reference">;
988
+ id: z.ZodString;
989
+ }, "strip", z.ZodTypeAny, {
990
+ type: "item_reference";
991
+ id: string;
992
+ }, {
993
+ type: "item_reference";
994
+ id: string;
995
+ }>]>;
996
+ export declare const OpenAiResponseFunctionToolSchema: z.ZodObject<{
997
+ type: z.ZodLiteral<"function">;
998
+ name: z.ZodString;
999
+ description: z.ZodOptional<z.ZodString>;
1000
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1001
+ 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
+ }>;
1015
+ 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"]>>;
1018
+ user_location: z.ZodOptional<z.ZodObject<{
1019
+ type: z.ZodLiteral<"approximate">;
1020
+ city: z.ZodOptional<z.ZodString>;
1021
+ state: z.ZodOptional<z.ZodString>;
1022
+ country: z.ZodOptional<z.ZodString>;
1023
+ 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
+ }>;
1058
+ export declare const OpenAiResponseFileSearchToolSchema: z.ZodObject<{
1059
+ type: z.ZodLiteral<"file_search">;
1060
+ vector_store_ids: z.ZodArray<z.ZodString, "many">;
1061
+ max_num_results: z.ZodOptional<z.ZodNumber>;
1062
+ ranking_options: z.ZodOptional<z.ZodObject<{
1063
+ ranker: z.ZodOptional<z.ZodString>;
1064
+ 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
+ }>;
1089
+ export declare const OpenAiResponseCodeInterpreterToolSchema: z.ZodObject<{
1090
+ 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<{
1097
+ type: z.ZodLiteral<"function">;
1098
+ name: z.ZodString;
1099
+ description: z.ZodOptional<z.ZodString>;
1100
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1101
+ 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<{
1115
+ type: z.ZodLiteral<"file_search">;
1116
+ vector_store_ids: z.ZodArray<z.ZodString, "many">;
1117
+ max_num_results: z.ZodOptional<z.ZodNumber>;
1118
+ ranking_options: z.ZodOptional<z.ZodObject<{
1119
+ ranker: z.ZodOptional<z.ZodString>;
1120
+ 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<{
1145
+ 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"]>>;
1152
+ user_location: z.ZodOptional<z.ZodObject<{
1153
+ type: z.ZodLiteral<"approximate">;
1154
+ city: z.ZodOptional<z.ZodString>;
1155
+ state: z.ZodOptional<z.ZodString>;
1156
+ country: z.ZodOptional<z.ZodString>;
1157
+ 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
+ } & {
1172
+ 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"]>>;
1195
+ user_location: z.ZodOptional<z.ZodObject<{
1196
+ type: z.ZodLiteral<"approximate">;
1197
+ city: z.ZodOptional<z.ZodString>;
1198
+ state: z.ZodOptional<z.ZodString>;
1199
+ country: z.ZodOptional<z.ZodString>;
1200
+ 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
+ } & {
1215
+ 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
+ }>]>;
1237
+ export declare const OpenAiResponseTextFormatSchema: z.ZodObject<{
1238
+ format: z.ZodUnion<[z.ZodObject<{
1239
+ type: z.ZodLiteral<"text">;
1240
+ }, "strip", z.ZodTypeAny, {
1241
+ type: "text";
1242
+ }, {
1243
+ type: "text";
1244
+ }>, z.ZodObject<{
1245
+ type: z.ZodLiteral<"json_object">;
1246
+ }, "strip", z.ZodTypeAny, {
1247
+ type: "json_object";
1248
+ }, {
1249
+ type: "json_object";
1250
+ }>, z.ZodObject<{
1251
+ type: z.ZodLiteral<"json_schema">;
1252
+ name: z.ZodString;
1253
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1254
+ description: z.ZodOptional<z.ZodString>;
1255
+ 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
+ }>;
1294
+ 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
+ }>;
1304
+ export declare const OpenAiResponseRequestSchema: z.ZodObject<{
1305
+ 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<{
1309
+ type: z.ZodLiteral<"input_text">;
1310
+ 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<{
1318
+ type: z.ZodLiteral<"input_image">;
1319
+ image_url: z.ZodOptional<z.ZodString>;
1320
+ 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<{
1333
+ type: z.ZodLiteral<"input_audio">;
1334
+ 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<{
1376
+ type: z.ZodLiteral<"function_call_output">;
1377
+ call_id: z.ZodString;
1378
+ 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<{
1388
+ type: z.ZodLiteral<"item_reference">;
1389
+ id: z.ZodString;
1390
+ }, "strip", z.ZodTypeAny, {
1391
+ type: "item_reference";
1392
+ id: string;
1393
+ }, {
1394
+ type: "item_reference";
1395
+ id: string;
1396
+ }>]>, "many">]>;
1397
+ instructions: z.ZodOptional<z.ZodString>;
1398
+ temperature: z.ZodOptional<z.ZodNumber>;
1399
+ max_output_tokens: z.ZodOptional<z.ZodNumber>;
1400
+ top_p: z.ZodOptional<z.ZodNumber>;
1401
+ tools: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1402
+ type: z.ZodLiteral<"function">;
1403
+ name: z.ZodString;
1404
+ description: z.ZodOptional<z.ZodString>;
1405
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1406
+ 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<{
1420
+ type: z.ZodLiteral<"file_search">;
1421
+ vector_store_ids: z.ZodArray<z.ZodString, "many">;
1422
+ max_num_results: z.ZodOptional<z.ZodNumber>;
1423
+ ranking_options: z.ZodOptional<z.ZodObject<{
1424
+ ranker: z.ZodOptional<z.ZodString>;
1425
+ 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<{
1450
+ 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"]>>;
1457
+ user_location: z.ZodOptional<z.ZodObject<{
1458
+ type: z.ZodLiteral<"approximate">;
1459
+ city: z.ZodOptional<z.ZodString>;
1460
+ state: z.ZodOptional<z.ZodString>;
1461
+ country: z.ZodOptional<z.ZodString>;
1462
+ 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
+ } & {
1477
+ 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"]>>;
1500
+ user_location: z.ZodOptional<z.ZodObject<{
1501
+ type: z.ZodLiteral<"approximate">;
1502
+ city: z.ZodOptional<z.ZodString>;
1503
+ state: z.ZodOptional<z.ZodString>;
1504
+ country: z.ZodOptional<z.ZodString>;
1505
+ 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
+ } & {
1520
+ 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<{
1543
+ type: z.ZodString;
1544
+ 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
+ }>]>>;
1552
+ previous_response_id: z.ZodOptional<z.ZodString>;
1553
+ store: z.ZodOptional<z.ZodBoolean>;
1554
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1555
+ stream: z.ZodOptional<z.ZodBoolean>;
1556
+ text: z.ZodOptional<z.ZodObject<{
1557
+ format: z.ZodUnion<[z.ZodObject<{
1558
+ type: z.ZodLiteral<"text">;
1559
+ }, "strip", z.ZodTypeAny, {
1560
+ type: "text";
1561
+ }, {
1562
+ type: "text";
1563
+ }>, z.ZodObject<{
1564
+ type: z.ZodLiteral<"json_object">;
1565
+ }, "strip", z.ZodTypeAny, {
1566
+ type: "json_object";
1567
+ }, {
1568
+ type: "json_object";
1569
+ }>, z.ZodObject<{
1570
+ type: z.ZodLiteral<"json_schema">;
1571
+ name: z.ZodString;
1572
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1573
+ description: z.ZodOptional<z.ZodString>;
1574
+ 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
+ };
1612
+ }>>;
1613
+ truncation: z.ZodOptional<z.ZodEnum<["auto", "disabled"]>>;
1614
+ 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
+ }>>;
1624
+ user: z.ZodOptional<z.ZodString>;
1625
+ include: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1626
+ 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
+ }>;
1818
+ export declare const OpenAiResponseCompactRequestSchema: z.ZodObject<{
1819
+ 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<{
1823
+ type: z.ZodLiteral<"input_text">;
1824
+ 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<{
1832
+ type: z.ZodLiteral<"input_image">;
1833
+ image_url: z.ZodOptional<z.ZodString>;
1834
+ 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<{
1847
+ type: z.ZodLiteral<"input_audio">;
1848
+ 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<{
1890
+ type: z.ZodLiteral<"function_call_output">;
1891
+ call_id: z.ZodString;
1892
+ 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<{
1902
+ type: z.ZodLiteral<"item_reference">;
1903
+ id: z.ZodString;
1904
+ }, "strip", z.ZodTypeAny, {
1905
+ type: "item_reference";
1906
+ id: string;
1907
+ }, {
1908
+ type: "item_reference";
1909
+ id: string;
1910
+ }>]>, "many">]>>>;
1911
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1912
+ previous_response_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1913
+ 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
+ }>;
1971
+ export declare const OpenAiResponseInputTokensRequestSchema: z.ZodObject<{
1972
+ 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<{
1976
+ type: z.ZodLiteral<"input_text">;
1977
+ 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<{
1985
+ type: z.ZodLiteral<"input_image">;
1986
+ image_url: z.ZodOptional<z.ZodString>;
1987
+ 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<{
2000
+ type: z.ZodLiteral<"input_audio">;
2001
+ 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<{
2043
+ type: z.ZodLiteral<"function_call_output">;
2044
+ call_id: z.ZodString;
2045
+ 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<{
2055
+ type: z.ZodLiteral<"item_reference">;
2056
+ id: z.ZodString;
2057
+ }, "strip", z.ZodTypeAny, {
2058
+ type: "item_reference";
2059
+ id: string;
2060
+ }, {
2061
+ type: "item_reference";
2062
+ id: string;
2063
+ }>]>, "many">]>>>;
2064
+ instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2065
+ conversation: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
2066
+ previous_response_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2067
+ tools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2068
+ type: z.ZodLiteral<"function">;
2069
+ name: z.ZodString;
2070
+ description: z.ZodOptional<z.ZodString>;
2071
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2072
+ 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<{
2086
+ type: z.ZodLiteral<"file_search">;
2087
+ vector_store_ids: z.ZodArray<z.ZodString, "many">;
2088
+ max_num_results: z.ZodOptional<z.ZodNumber>;
2089
+ ranking_options: z.ZodOptional<z.ZodObject<{
2090
+ ranker: z.ZodOptional<z.ZodString>;
2091
+ 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<{
2116
+ 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"]>>;
2123
+ user_location: z.ZodOptional<z.ZodObject<{
2124
+ type: z.ZodLiteral<"approximate">;
2125
+ city: z.ZodOptional<z.ZodString>;
2126
+ state: z.ZodOptional<z.ZodString>;
2127
+ country: z.ZodOptional<z.ZodString>;
2128
+ 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
+ } & {
2143
+ 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"]>>;
2166
+ user_location: z.ZodOptional<z.ZodObject<{
2167
+ type: z.ZodLiteral<"approximate">;
2168
+ city: z.ZodOptional<z.ZodString>;
2169
+ state: z.ZodOptional<z.ZodString>;
2170
+ country: z.ZodOptional<z.ZodString>;
2171
+ 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
+ } & {
2186
+ 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<{
2209
+ type: z.ZodString;
2210
+ 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
+ }>]>>>;
2218
+ parallel_tool_calls: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2219
+ 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
+ }>>>;
2229
+ text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2230
+ format: z.ZodUnion<[z.ZodObject<{
2231
+ type: z.ZodLiteral<"text">;
2232
+ }, "strip", z.ZodTypeAny, {
2233
+ type: "text";
2234
+ }, {
2235
+ type: "text";
2236
+ }>, z.ZodObject<{
2237
+ type: z.ZodLiteral<"json_object">;
2238
+ }, "strip", z.ZodTypeAny, {
2239
+ type: "json_object";
2240
+ }, {
2241
+ type: "json_object";
2242
+ }>, z.ZodObject<{
2243
+ type: z.ZodLiteral<"json_schema">;
2244
+ name: z.ZodString;
2245
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2246
+ description: z.ZodOptional<z.ZodString>;
2247
+ 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
+ }>;
2464
+ 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
+ }>;
2477
+ export declare const OpenAiFineTuningSupervisedMethodSchema: z.ZodObject<{
2478
+ 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
+ }>;
2504
+ export declare const OpenAiFineTuningDpoMethodSchema: z.ZodObject<{
2505
+ 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
+ }>;
2536
+ export declare const OpenAiFineTuningReinforcementMethodSchema: z.ZodObject<{
2537
+ grader: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2538
+ 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
+ }>;
2586
+ export declare const OpenAiFineTuningMethodSchema: z.ZodObject<{
2587
+ type: z.ZodEnum<["supervised", "dpo", "reinforcement"]>;
2588
+ supervised: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2589
+ 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
+ }>>>;
2615
+ dpo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2616
+ 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
+ }>>>;
2647
+ reinforcement: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2648
+ grader: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2649
+ 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
+ }>;
2756
+ export declare const OpenAiFineTuningWandbConfigSchema: z.ZodObject<{
2757
+ project: z.ZodString;
2758
+ entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2759
+ 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
+ }>;
2772
+ export declare const OpenAiFineTuningIntegrationSchema: z.ZodObject<{
2773
+ type: z.ZodLiteral<"wandb">;
2774
+ wandb: z.ZodObject<{
2775
+ project: z.ZodString;
2776
+ entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2777
+ 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
+ }>;
2807
+ export declare const OpenAiFineTuningJobCreateRequestSchema: z.ZodObject<{
2808
+ model: z.ZodString;
2809
+ training_file: z.ZodString;
2810
+ 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
+ }>>;
2823
+ integrations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2824
+ type: z.ZodLiteral<"wandb">;
2825
+ wandb: z.ZodObject<{
2826
+ project: z.ZodString;
2827
+ entity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2828
+ 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">>>;
2858
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2859
+ method: z.ZodOptional<z.ZodObject<{
2860
+ type: z.ZodEnum<["supervised", "dpo", "reinforcement"]>;
2861
+ supervised: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2862
+ 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
+ }>>>;
2888
+ dpo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2889
+ 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
+ }>>>;
2920
+ reinforcement: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2921
+ grader: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2922
+ 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
+ }>>;
3029
+ seed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3030
+ suffix: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3031
+ 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
+ }>;
3135
+ 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
+ }>;
3142
+ export declare const OpenAiOptionsSchema: z.ZodObject<{
3143
+ apiKey: z.ZodString;
3144
+ baseURL: z.ZodOptional<z.ZodString>;
3145
+ timeout: z.ZodOptional<z.ZodNumber>;
3146
+ fetch: z.ZodOptional<z.ZodType<(input: RequestInfo | URL, init?: RequestInit) => Promise<Response>, z.ZodTypeDef, (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>>>;
3147
+ }, "strip", z.ZodTypeAny, {
3148
+ apiKey: string;
3149
+ baseURL?: string | undefined;
3150
+ timeout?: number | undefined;
3151
+ fetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined;
3152
+ }, {
3153
+ apiKey: string;
3154
+ baseURL?: string | undefined;
3155
+ timeout?: number | undefined;
3156
+ fetch?: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined;
3157
+ }>;
3158
+ export type OpenAiTextPart = z.infer<typeof OpenAiTextPartSchema>;
3159
+ export type OpenAiImageUrlPart = z.infer<typeof OpenAiImageUrlPartSchema>;
3160
+ export type OpenAiContentPart = z.infer<typeof OpenAiContentPartSchema>;
3161
+ export type OpenAiMessage = z.infer<typeof OpenAiMessageSchema>;
3162
+ export type OpenAiToolFunction = z.infer<typeof OpenAiToolFunctionSchema>;
3163
+ export type OpenAiTool = z.infer<typeof OpenAiToolSchema>;
3164
+ export type OpenAiChatRequest = z.infer<typeof OpenAiChatRequestSchema>;
3165
+ export type OpenAiStoredCompletionUpdateRequest = z.infer<typeof OpenAiStoredCompletionUpdateRequestSchema>;
3166
+ export type OpenAiEmbeddingRequest = z.infer<typeof OpenAiEmbeddingRequestSchema>;
3167
+ export type OpenAiImageEditRequest = z.infer<typeof OpenAiImageEditRequestSchema>;
3168
+ export type OpenAiImageGenerationRequest = z.infer<typeof OpenAiImageGenerationRequestSchema>;
3169
+ export type OpenAiImageVariationRequest = z.infer<typeof OpenAiImageVariationRequestSchema>;
3170
+ export type OpenAiSpeechRequest = z.infer<typeof OpenAiSpeechRequestSchema>;
3171
+ export type OpenAiTranscribeRequest = z.infer<typeof OpenAiTranscribeRequestSchema>;
3172
+ export type OpenAiTranslateRequest = z.infer<typeof OpenAiTranslateRequestSchema>;
3173
+ export type OpenAiModerationTextInput = z.infer<typeof OpenAiModerationTextInputSchema>;
3174
+ export type OpenAiModerationImageUrlInput = z.infer<typeof OpenAiModerationImageUrlInputSchema>;
3175
+ export type OpenAiModerationMultiModalInput = z.infer<typeof OpenAiModerationMultiModalInputSchema>;
3176
+ export type OpenAiModerationRequest = z.infer<typeof OpenAiModerationRequestSchema>;
3177
+ export type OpenAiFileUploadRequest = z.infer<typeof OpenAiFileUploadRequestSchema>;
3178
+ export type OpenAiBatchCreateRequest = z.infer<typeof OpenAiBatchCreateRequestSchema>;
3179
+ export type OpenAiResponseInputTextContent = z.infer<typeof OpenAiResponseInputTextContentSchema>;
3180
+ export type OpenAiResponseInputImageContent = z.infer<typeof OpenAiResponseInputImageContentSchema>;
3181
+ export type OpenAiResponseInputAudioContent = z.infer<typeof OpenAiResponseInputAudioContentSchema>;
3182
+ export type OpenAiResponseInputContent = z.infer<typeof OpenAiResponseInputContentSchema>;
3183
+ export type OpenAiResponseInputMessage = z.infer<typeof OpenAiResponseInputMessageSchema>;
3184
+ export type OpenAiResponseFunctionCallOutput = z.infer<typeof OpenAiResponseFunctionCallOutputSchema>;
3185
+ export type OpenAiResponseItemReference = z.infer<typeof OpenAiResponseItemReferenceSchema>;
3186
+ export type OpenAiResponseInputItem = z.infer<typeof OpenAiResponseInputItemSchema>;
3187
+ export type OpenAiResponseFunctionTool = z.infer<typeof OpenAiResponseFunctionToolSchema>;
3188
+ export type OpenAiResponseWebSearchTool = z.infer<typeof OpenAiResponseWebSearchToolSchema>;
3189
+ export type OpenAiResponseFileSearchTool = z.infer<typeof OpenAiResponseFileSearchToolSchema>;
3190
+ export type OpenAiResponseCodeInterpreterTool = z.infer<typeof OpenAiResponseCodeInterpreterToolSchema>;
3191
+ export type OpenAiResponseTool = z.infer<typeof OpenAiResponseToolSchema>;
3192
+ export type OpenAiResponseTextFormat = z.infer<typeof OpenAiResponseTextFormatSchema>;
3193
+ export type OpenAiResponseReasoning = z.infer<typeof OpenAiResponseReasoningSchema>;
3194
+ export type OpenAiResponseRequest = z.infer<typeof OpenAiResponseRequestSchema>;
3195
+ export type OpenAiResponseCompactRequest = z.infer<typeof OpenAiResponseCompactRequestSchema>;
3196
+ export type OpenAiResponseInputTokensRequest = z.infer<typeof OpenAiResponseInputTokensRequestSchema>;
3197
+ export type OpenAiFineTuningHyperparameters = z.infer<typeof OpenAiFineTuningHyperparametersSchema>;
3198
+ export type OpenAiFineTuningSupervisedHyperparameters = z.infer<typeof OpenAiFineTuningSupervisedMethodSchema>["hyperparameters"];
3199
+ export type OpenAiFineTuningSupervisedMethod = z.infer<typeof OpenAiFineTuningSupervisedMethodSchema>;
3200
+ export type OpenAiFineTuningDpoHyperparameters = z.infer<typeof OpenAiFineTuningDpoMethodSchema>["hyperparameters"];
3201
+ export type OpenAiFineTuningDpoMethod = z.infer<typeof OpenAiFineTuningDpoMethodSchema>;
3202
+ export type OpenAiFineTuningReinforcementHyperparameters = z.infer<typeof OpenAiFineTuningReinforcementMethodSchema>["hyperparameters"];
3203
+ export type OpenAiFineTuningReinforcementMethod = z.infer<typeof OpenAiFineTuningReinforcementMethodSchema>;
3204
+ export type OpenAiFineTuningMethod = z.infer<typeof OpenAiFineTuningMethodSchema>;
3205
+ export type OpenAiFineTuningWandbConfig = z.infer<typeof OpenAiFineTuningWandbConfigSchema>;
3206
+ export type OpenAiFineTuningIntegration = z.infer<typeof OpenAiFineTuningIntegrationSchema>;
3207
+ export type OpenAiFineTuningJobCreateRequest = z.infer<typeof OpenAiFineTuningJobCreateRequestSchema>;
3208
+ export type OpenAiCheckpointPermissionCreateRequest = z.infer<typeof OpenAiCheckpointPermissionCreateRequestSchema>;
3209
+ export type OpenAiOptions = z.infer<typeof OpenAiOptionsSchema>;
3210
+ //# sourceMappingURL=zod.d.ts.map