@adaline/xai 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4025 @@
1
+ import { ChatModelSchemaType, ChatModelV1, UrlType, HeadersType, ParamsType, ProviderV1 } from '@adaline/provider';
2
+ import * as zod from 'zod';
3
+ import { z } from 'zod';
4
+ import { MessageType, ConfigType, ToolType, ChatResponseType, PartialChatResponseType, ChatModelPriceType } from '@adaline/types';
5
+
6
+ declare const XAIChatModelRoles: z.ZodEnum<["system", "user", "assistant", "tool"]>;
7
+ declare const XAIChatModelRolesMap: {
8
+ readonly system: "system";
9
+ readonly user: "user";
10
+ readonly assistant: "assistant";
11
+ readonly tool: "tool";
12
+ };
13
+
14
+ declare const XAIChatModelModalities: ChatModelSchemaType["modalities"];
15
+ declare const XAIChatModelModalitiesEnum: z.ZodEnum<["text", "image", "tool-call", "tool-response"]>;
16
+ declare const XAIChatModelTextModalities: ChatModelSchemaType["modalities"];
17
+ declare const XAIChatModelTextModalitiesEnum: z.ZodEnum<["text"]>;
18
+ declare const XAIChatModelTextToolModalities: ChatModelSchemaType["modalities"];
19
+ declare const XAIChatModelTextToolModalitiesEnum: z.ZodEnum<["text", "tool-call", "tool-response"]>;
20
+
21
+ declare const XAIToolCallsCompleteChatResponse: z.ZodArray<z.ZodObject<{
22
+ id: z.ZodString;
23
+ type: z.ZodEnum<["function"]>;
24
+ function: z.ZodObject<{
25
+ name: z.ZodString;
26
+ arguments: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ name: string;
29
+ arguments: string;
30
+ }, {
31
+ name: string;
32
+ arguments: string;
33
+ }>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ function: {
36
+ name: string;
37
+ arguments: string;
38
+ };
39
+ type: "function";
40
+ id: string;
41
+ }, {
42
+ function: {
43
+ name: string;
44
+ arguments: string;
45
+ };
46
+ type: "function";
47
+ id: string;
48
+ }>, "many">;
49
+ declare const XAICompleteChatResponse: z.ZodObject<{
50
+ id: z.ZodString;
51
+ object: z.ZodLiteral<"chat.completion">;
52
+ created: z.ZodNumber;
53
+ model: z.ZodString;
54
+ system_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ choices: z.ZodArray<z.ZodObject<{
56
+ index: z.ZodNumber;
57
+ message: z.ZodObject<{
58
+ role: z.ZodString;
59
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
61
+ id: z.ZodString;
62
+ type: z.ZodEnum<["function"]>;
63
+ function: z.ZodObject<{
64
+ name: z.ZodString;
65
+ arguments: z.ZodString;
66
+ }, "strip", z.ZodTypeAny, {
67
+ name: string;
68
+ arguments: string;
69
+ }, {
70
+ name: string;
71
+ arguments: string;
72
+ }>;
73
+ }, "strip", z.ZodTypeAny, {
74
+ function: {
75
+ name: string;
76
+ arguments: string;
77
+ };
78
+ type: "function";
79
+ id: string;
80
+ }, {
81
+ function: {
82
+ name: string;
83
+ arguments: string;
84
+ };
85
+ type: "function";
86
+ id: string;
87
+ }>, "many">>;
88
+ refusal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ role: string;
91
+ content?: string | null | undefined;
92
+ refusal?: string | null | undefined;
93
+ tool_calls?: {
94
+ function: {
95
+ name: string;
96
+ arguments: string;
97
+ };
98
+ type: "function";
99
+ id: string;
100
+ }[] | undefined;
101
+ }, {
102
+ role: string;
103
+ content?: string | null | undefined;
104
+ refusal?: string | null | undefined;
105
+ tool_calls?: {
106
+ function: {
107
+ name: string;
108
+ arguments: string;
109
+ };
110
+ type: "function";
111
+ id: string;
112
+ }[] | undefined;
113
+ }>;
114
+ logprobs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
115
+ content: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
116
+ token: z.ZodString;
117
+ logprob: z.ZodNumber;
118
+ bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
119
+ }, {
120
+ top_logprobs: z.ZodArray<z.ZodObject<{
121
+ token: z.ZodString;
122
+ logprob: z.ZodNumber;
123
+ bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
124
+ }, "strip", z.ZodTypeAny, {
125
+ token: string;
126
+ logprob: number;
127
+ bytes: number[] | null;
128
+ }, {
129
+ token: string;
130
+ logprob: number;
131
+ bytes: number[] | null;
132
+ }>, "many">;
133
+ }>, "strip", z.ZodTypeAny, {
134
+ token: string;
135
+ logprob: number;
136
+ bytes: number[] | null;
137
+ top_logprobs: {
138
+ token: string;
139
+ logprob: number;
140
+ bytes: number[] | null;
141
+ }[];
142
+ }, {
143
+ token: string;
144
+ logprob: number;
145
+ bytes: number[] | null;
146
+ top_logprobs: {
147
+ token: string;
148
+ logprob: number;
149
+ bytes: number[] | null;
150
+ }[];
151
+ }>, "many">>>;
152
+ refusal: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
153
+ token: z.ZodString;
154
+ logprob: z.ZodNumber;
155
+ bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
156
+ }, {
157
+ top_logprobs: z.ZodArray<z.ZodObject<{
158
+ token: z.ZodString;
159
+ logprob: z.ZodNumber;
160
+ bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
161
+ }, "strip", z.ZodTypeAny, {
162
+ token: string;
163
+ logprob: number;
164
+ bytes: number[] | null;
165
+ }, {
166
+ token: string;
167
+ logprob: number;
168
+ bytes: number[] | null;
169
+ }>, "many">;
170
+ }>, "strip", z.ZodTypeAny, {
171
+ token: string;
172
+ logprob: number;
173
+ bytes: number[] | null;
174
+ top_logprobs: {
175
+ token: string;
176
+ logprob: number;
177
+ bytes: number[] | null;
178
+ }[];
179
+ }, {
180
+ token: string;
181
+ logprob: number;
182
+ bytes: number[] | null;
183
+ top_logprobs: {
184
+ token: string;
185
+ logprob: number;
186
+ bytes: number[] | null;
187
+ }[];
188
+ }>, "many">>>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ content?: {
191
+ token: string;
192
+ logprob: number;
193
+ bytes: number[] | null;
194
+ top_logprobs: {
195
+ token: string;
196
+ logprob: number;
197
+ bytes: number[] | null;
198
+ }[];
199
+ }[] | null | undefined;
200
+ refusal?: {
201
+ token: string;
202
+ logprob: number;
203
+ bytes: number[] | null;
204
+ top_logprobs: {
205
+ token: string;
206
+ logprob: number;
207
+ bytes: number[] | null;
208
+ }[];
209
+ }[] | null | undefined;
210
+ }, {
211
+ content?: {
212
+ token: string;
213
+ logprob: number;
214
+ bytes: number[] | null;
215
+ top_logprobs: {
216
+ token: string;
217
+ logprob: number;
218
+ bytes: number[] | null;
219
+ }[];
220
+ }[] | null | undefined;
221
+ refusal?: {
222
+ token: string;
223
+ logprob: number;
224
+ bytes: number[] | null;
225
+ top_logprobs: {
226
+ token: string;
227
+ logprob: number;
228
+ bytes: number[] | null;
229
+ }[];
230
+ }[] | null | undefined;
231
+ }>>>;
232
+ finish_reason: z.ZodString;
233
+ }, "strip", z.ZodTypeAny, {
234
+ message: {
235
+ role: string;
236
+ content?: string | null | undefined;
237
+ refusal?: string | null | undefined;
238
+ tool_calls?: {
239
+ function: {
240
+ name: string;
241
+ arguments: string;
242
+ };
243
+ type: "function";
244
+ id: string;
245
+ }[] | undefined;
246
+ };
247
+ index: number;
248
+ finish_reason: string;
249
+ logprobs?: {
250
+ content?: {
251
+ token: string;
252
+ logprob: number;
253
+ bytes: number[] | null;
254
+ top_logprobs: {
255
+ token: string;
256
+ logprob: number;
257
+ bytes: number[] | null;
258
+ }[];
259
+ }[] | null | undefined;
260
+ refusal?: {
261
+ token: string;
262
+ logprob: number;
263
+ bytes: number[] | null;
264
+ top_logprobs: {
265
+ token: string;
266
+ logprob: number;
267
+ bytes: number[] | null;
268
+ }[];
269
+ }[] | null | undefined;
270
+ } | null | undefined;
271
+ }, {
272
+ message: {
273
+ role: string;
274
+ content?: string | null | undefined;
275
+ refusal?: string | null | undefined;
276
+ tool_calls?: {
277
+ function: {
278
+ name: string;
279
+ arguments: string;
280
+ };
281
+ type: "function";
282
+ id: string;
283
+ }[] | undefined;
284
+ };
285
+ index: number;
286
+ finish_reason: string;
287
+ logprobs?: {
288
+ content?: {
289
+ token: string;
290
+ logprob: number;
291
+ bytes: number[] | null;
292
+ top_logprobs: {
293
+ token: string;
294
+ logprob: number;
295
+ bytes: number[] | null;
296
+ }[];
297
+ }[] | null | undefined;
298
+ refusal?: {
299
+ token: string;
300
+ logprob: number;
301
+ bytes: number[] | null;
302
+ top_logprobs: {
303
+ token: string;
304
+ logprob: number;
305
+ bytes: number[] | null;
306
+ }[];
307
+ }[] | null | undefined;
308
+ } | null | undefined;
309
+ }>, "many">;
310
+ usage: z.ZodObject<{
311
+ prompt_tokens: z.ZodNumber;
312
+ completion_tokens: z.ZodNumber;
313
+ total_tokens: z.ZodNumber;
314
+ reasoning_tokens: z.ZodOptional<z.ZodNumber>;
315
+ }, "strip", z.ZodTypeAny, {
316
+ prompt_tokens: number;
317
+ completion_tokens: number;
318
+ total_tokens: number;
319
+ reasoning_tokens?: number | undefined;
320
+ }, {
321
+ prompt_tokens: number;
322
+ completion_tokens: number;
323
+ total_tokens: number;
324
+ reasoning_tokens?: number | undefined;
325
+ }>;
326
+ }, "strip", z.ZodTypeAny, {
327
+ object: "chat.completion";
328
+ id: string;
329
+ created: number;
330
+ model: string;
331
+ choices: {
332
+ message: {
333
+ role: string;
334
+ content?: string | null | undefined;
335
+ refusal?: string | null | undefined;
336
+ tool_calls?: {
337
+ function: {
338
+ name: string;
339
+ arguments: string;
340
+ };
341
+ type: "function";
342
+ id: string;
343
+ }[] | undefined;
344
+ };
345
+ index: number;
346
+ finish_reason: string;
347
+ logprobs?: {
348
+ content?: {
349
+ token: string;
350
+ logprob: number;
351
+ bytes: number[] | null;
352
+ top_logprobs: {
353
+ token: string;
354
+ logprob: number;
355
+ bytes: number[] | null;
356
+ }[];
357
+ }[] | null | undefined;
358
+ refusal?: {
359
+ token: string;
360
+ logprob: number;
361
+ bytes: number[] | null;
362
+ top_logprobs: {
363
+ token: string;
364
+ logprob: number;
365
+ bytes: number[] | null;
366
+ }[];
367
+ }[] | null | undefined;
368
+ } | null | undefined;
369
+ }[];
370
+ usage: {
371
+ prompt_tokens: number;
372
+ completion_tokens: number;
373
+ total_tokens: number;
374
+ reasoning_tokens?: number | undefined;
375
+ };
376
+ system_fingerprint?: string | null | undefined;
377
+ }, {
378
+ object: "chat.completion";
379
+ id: string;
380
+ created: number;
381
+ model: string;
382
+ choices: {
383
+ message: {
384
+ role: string;
385
+ content?: string | null | undefined;
386
+ refusal?: string | null | undefined;
387
+ tool_calls?: {
388
+ function: {
389
+ name: string;
390
+ arguments: string;
391
+ };
392
+ type: "function";
393
+ id: string;
394
+ }[] | undefined;
395
+ };
396
+ index: number;
397
+ finish_reason: string;
398
+ logprobs?: {
399
+ content?: {
400
+ token: string;
401
+ logprob: number;
402
+ bytes: number[] | null;
403
+ top_logprobs: {
404
+ token: string;
405
+ logprob: number;
406
+ bytes: number[] | null;
407
+ }[];
408
+ }[] | null | undefined;
409
+ refusal?: {
410
+ token: string;
411
+ logprob: number;
412
+ bytes: number[] | null;
413
+ top_logprobs: {
414
+ token: string;
415
+ logprob: number;
416
+ bytes: number[] | null;
417
+ }[];
418
+ }[] | null | undefined;
419
+ } | null | undefined;
420
+ }[];
421
+ usage: {
422
+ prompt_tokens: number;
423
+ completion_tokens: number;
424
+ total_tokens: number;
425
+ reasoning_tokens?: number | undefined;
426
+ };
427
+ system_fingerprint?: string | null | undefined;
428
+ }>;
429
+ type XAICompleteChatResponseType = z.infer<typeof XAICompleteChatResponse>;
430
+ declare const XAIToolCallsStreamChatResponse: z.ZodArray<z.ZodObject<{
431
+ index: z.ZodNumber;
432
+ id: z.ZodOptional<z.ZodString>;
433
+ type: z.ZodOptional<z.ZodEnum<["function"]>>;
434
+ function: z.ZodOptional<z.ZodObject<{
435
+ name: z.ZodOptional<z.ZodString>;
436
+ arguments: z.ZodOptional<z.ZodString>;
437
+ }, "strip", z.ZodTypeAny, {
438
+ name?: string | undefined;
439
+ arguments?: string | undefined;
440
+ }, {
441
+ name?: string | undefined;
442
+ arguments?: string | undefined;
443
+ }>>;
444
+ }, "strip", z.ZodTypeAny, {
445
+ index: number;
446
+ function?: {
447
+ name?: string | undefined;
448
+ arguments?: string | undefined;
449
+ } | undefined;
450
+ type?: "function" | undefined;
451
+ id?: string | undefined;
452
+ }, {
453
+ index: number;
454
+ function?: {
455
+ name?: string | undefined;
456
+ arguments?: string | undefined;
457
+ } | undefined;
458
+ type?: "function" | undefined;
459
+ id?: string | undefined;
460
+ }>, "many">;
461
+ declare const XAIStreamChatResponse: z.ZodObject<{
462
+ id: z.ZodString;
463
+ object: z.ZodString;
464
+ created: z.ZodNumber;
465
+ model: z.ZodString;
466
+ system_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
467
+ choices: z.ZodArray<z.ZodObject<{
468
+ index: z.ZodNumber;
469
+ delta: z.ZodUnion<[z.ZodObject<{
470
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
472
+ index: z.ZodNumber;
473
+ id: z.ZodOptional<z.ZodString>;
474
+ type: z.ZodOptional<z.ZodEnum<["function"]>>;
475
+ function: z.ZodOptional<z.ZodObject<{
476
+ name: z.ZodOptional<z.ZodString>;
477
+ arguments: z.ZodOptional<z.ZodString>;
478
+ }, "strip", z.ZodTypeAny, {
479
+ name?: string | undefined;
480
+ arguments?: string | undefined;
481
+ }, {
482
+ name?: string | undefined;
483
+ arguments?: string | undefined;
484
+ }>>;
485
+ }, "strip", z.ZodTypeAny, {
486
+ index: number;
487
+ function?: {
488
+ name?: string | undefined;
489
+ arguments?: string | undefined;
490
+ } | undefined;
491
+ type?: "function" | undefined;
492
+ id?: string | undefined;
493
+ }, {
494
+ index: number;
495
+ function?: {
496
+ name?: string | undefined;
497
+ arguments?: string | undefined;
498
+ } | undefined;
499
+ type?: "function" | undefined;
500
+ id?: string | undefined;
501
+ }>, "many">>;
502
+ refusal: z.ZodOptional<z.ZodNullable<z.ZodString>>;
503
+ }, "strip", z.ZodTypeAny, {
504
+ content?: string | null | undefined;
505
+ refusal?: string | null | undefined;
506
+ tool_calls?: {
507
+ index: number;
508
+ function?: {
509
+ name?: string | undefined;
510
+ arguments?: string | undefined;
511
+ } | undefined;
512
+ type?: "function" | undefined;
513
+ id?: string | undefined;
514
+ }[] | undefined;
515
+ }, {
516
+ content?: string | null | undefined;
517
+ refusal?: string | null | undefined;
518
+ tool_calls?: {
519
+ index: number;
520
+ function?: {
521
+ name?: string | undefined;
522
+ arguments?: string | undefined;
523
+ } | undefined;
524
+ type?: "function" | undefined;
525
+ id?: string | undefined;
526
+ }[] | undefined;
527
+ }>, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>;
528
+ logprobs: z.ZodOptional<z.ZodNullable<z.ZodObject<{
529
+ content: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
530
+ token: z.ZodString;
531
+ logprob: z.ZodNumber;
532
+ bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
533
+ }, {
534
+ top_logprobs: z.ZodArray<z.ZodObject<{
535
+ token: z.ZodString;
536
+ logprob: z.ZodNumber;
537
+ bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ token: string;
540
+ logprob: number;
541
+ bytes: number[] | null;
542
+ }, {
543
+ token: string;
544
+ logprob: number;
545
+ bytes: number[] | null;
546
+ }>, "many">;
547
+ }>, "strip", z.ZodTypeAny, {
548
+ token: string;
549
+ logprob: number;
550
+ bytes: number[] | null;
551
+ top_logprobs: {
552
+ token: string;
553
+ logprob: number;
554
+ bytes: number[] | null;
555
+ }[];
556
+ }, {
557
+ token: string;
558
+ logprob: number;
559
+ bytes: number[] | null;
560
+ top_logprobs: {
561
+ token: string;
562
+ logprob: number;
563
+ bytes: number[] | null;
564
+ }[];
565
+ }>, "many">>>;
566
+ refusal: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
567
+ token: z.ZodString;
568
+ logprob: z.ZodNumber;
569
+ bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
570
+ }, {
571
+ top_logprobs: z.ZodArray<z.ZodObject<{
572
+ token: z.ZodString;
573
+ logprob: z.ZodNumber;
574
+ bytes: z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>;
575
+ }, "strip", z.ZodTypeAny, {
576
+ token: string;
577
+ logprob: number;
578
+ bytes: number[] | null;
579
+ }, {
580
+ token: string;
581
+ logprob: number;
582
+ bytes: number[] | null;
583
+ }>, "many">;
584
+ }>, "strip", z.ZodTypeAny, {
585
+ token: string;
586
+ logprob: number;
587
+ bytes: number[] | null;
588
+ top_logprobs: {
589
+ token: string;
590
+ logprob: number;
591
+ bytes: number[] | null;
592
+ }[];
593
+ }, {
594
+ token: string;
595
+ logprob: number;
596
+ bytes: number[] | null;
597
+ top_logprobs: {
598
+ token: string;
599
+ logprob: number;
600
+ bytes: number[] | null;
601
+ }[];
602
+ }>, "many">>>;
603
+ }, "strip", z.ZodTypeAny, {
604
+ content?: {
605
+ token: string;
606
+ logprob: number;
607
+ bytes: number[] | null;
608
+ top_logprobs: {
609
+ token: string;
610
+ logprob: number;
611
+ bytes: number[] | null;
612
+ }[];
613
+ }[] | null | undefined;
614
+ refusal?: {
615
+ token: string;
616
+ logprob: number;
617
+ bytes: number[] | null;
618
+ top_logprobs: {
619
+ token: string;
620
+ logprob: number;
621
+ bytes: number[] | null;
622
+ }[];
623
+ }[] | null | undefined;
624
+ }, {
625
+ content?: {
626
+ token: string;
627
+ logprob: number;
628
+ bytes: number[] | null;
629
+ top_logprobs: {
630
+ token: string;
631
+ logprob: number;
632
+ bytes: number[] | null;
633
+ }[];
634
+ }[] | null | undefined;
635
+ refusal?: {
636
+ token: string;
637
+ logprob: number;
638
+ bytes: number[] | null;
639
+ top_logprobs: {
640
+ token: string;
641
+ logprob: number;
642
+ bytes: number[] | null;
643
+ }[];
644
+ }[] | null | undefined;
645
+ }>>>;
646
+ finish_reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
647
+ }, "strip", z.ZodTypeAny, {
648
+ index: number;
649
+ delta: {
650
+ content?: string | null | undefined;
651
+ refusal?: string | null | undefined;
652
+ tool_calls?: {
653
+ index: number;
654
+ function?: {
655
+ name?: string | undefined;
656
+ arguments?: string | undefined;
657
+ } | undefined;
658
+ type?: "function" | undefined;
659
+ id?: string | undefined;
660
+ }[] | undefined;
661
+ } | {};
662
+ logprobs?: {
663
+ content?: {
664
+ token: string;
665
+ logprob: number;
666
+ bytes: number[] | null;
667
+ top_logprobs: {
668
+ token: string;
669
+ logprob: number;
670
+ bytes: number[] | null;
671
+ }[];
672
+ }[] | null | undefined;
673
+ refusal?: {
674
+ token: string;
675
+ logprob: number;
676
+ bytes: number[] | null;
677
+ top_logprobs: {
678
+ token: string;
679
+ logprob: number;
680
+ bytes: number[] | null;
681
+ }[];
682
+ }[] | null | undefined;
683
+ } | null | undefined;
684
+ finish_reason?: string | null | undefined;
685
+ }, {
686
+ index: number;
687
+ delta: {
688
+ content?: string | null | undefined;
689
+ refusal?: string | null | undefined;
690
+ tool_calls?: {
691
+ index: number;
692
+ function?: {
693
+ name?: string | undefined;
694
+ arguments?: string | undefined;
695
+ } | undefined;
696
+ type?: "function" | undefined;
697
+ id?: string | undefined;
698
+ }[] | undefined;
699
+ } | {};
700
+ logprobs?: {
701
+ content?: {
702
+ token: string;
703
+ logprob: number;
704
+ bytes: number[] | null;
705
+ top_logprobs: {
706
+ token: string;
707
+ logprob: number;
708
+ bytes: number[] | null;
709
+ }[];
710
+ }[] | null | undefined;
711
+ refusal?: {
712
+ token: string;
713
+ logprob: number;
714
+ bytes: number[] | null;
715
+ top_logprobs: {
716
+ token: string;
717
+ logprob: number;
718
+ bytes: number[] | null;
719
+ }[];
720
+ }[] | null | undefined;
721
+ } | null | undefined;
722
+ finish_reason?: string | null | undefined;
723
+ }>, "many">;
724
+ usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
725
+ prompt_tokens: z.ZodNumber;
726
+ completion_tokens: z.ZodNumber;
727
+ total_tokens: z.ZodNumber;
728
+ reasoning_tokens: z.ZodOptional<z.ZodNumber>;
729
+ }, "strip", z.ZodTypeAny, {
730
+ prompt_tokens: number;
731
+ completion_tokens: number;
732
+ total_tokens: number;
733
+ reasoning_tokens?: number | undefined;
734
+ }, {
735
+ prompt_tokens: number;
736
+ completion_tokens: number;
737
+ total_tokens: number;
738
+ reasoning_tokens?: number | undefined;
739
+ }>>>;
740
+ }, "strip", z.ZodTypeAny, {
741
+ object: string;
742
+ id: string;
743
+ created: number;
744
+ model: string;
745
+ choices: {
746
+ index: number;
747
+ delta: {
748
+ content?: string | null | undefined;
749
+ refusal?: string | null | undefined;
750
+ tool_calls?: {
751
+ index: number;
752
+ function?: {
753
+ name?: string | undefined;
754
+ arguments?: string | undefined;
755
+ } | undefined;
756
+ type?: "function" | undefined;
757
+ id?: string | undefined;
758
+ }[] | undefined;
759
+ } | {};
760
+ logprobs?: {
761
+ content?: {
762
+ token: string;
763
+ logprob: number;
764
+ bytes: number[] | null;
765
+ top_logprobs: {
766
+ token: string;
767
+ logprob: number;
768
+ bytes: number[] | null;
769
+ }[];
770
+ }[] | null | undefined;
771
+ refusal?: {
772
+ token: string;
773
+ logprob: number;
774
+ bytes: number[] | null;
775
+ top_logprobs: {
776
+ token: string;
777
+ logprob: number;
778
+ bytes: number[] | null;
779
+ }[];
780
+ }[] | null | undefined;
781
+ } | null | undefined;
782
+ finish_reason?: string | null | undefined;
783
+ }[];
784
+ system_fingerprint?: string | null | undefined;
785
+ usage?: {
786
+ prompt_tokens: number;
787
+ completion_tokens: number;
788
+ total_tokens: number;
789
+ reasoning_tokens?: number | undefined;
790
+ } | null | undefined;
791
+ }, {
792
+ object: string;
793
+ id: string;
794
+ created: number;
795
+ model: string;
796
+ choices: {
797
+ index: number;
798
+ delta: {
799
+ content?: string | null | undefined;
800
+ refusal?: string | null | undefined;
801
+ tool_calls?: {
802
+ index: number;
803
+ function?: {
804
+ name?: string | undefined;
805
+ arguments?: string | undefined;
806
+ } | undefined;
807
+ type?: "function" | undefined;
808
+ id?: string | undefined;
809
+ }[] | undefined;
810
+ } | {};
811
+ logprobs?: {
812
+ content?: {
813
+ token: string;
814
+ logprob: number;
815
+ bytes: number[] | null;
816
+ top_logprobs: {
817
+ token: string;
818
+ logprob: number;
819
+ bytes: number[] | null;
820
+ }[];
821
+ }[] | null | undefined;
822
+ refusal?: {
823
+ token: string;
824
+ logprob: number;
825
+ bytes: number[] | null;
826
+ top_logprobs: {
827
+ token: string;
828
+ logprob: number;
829
+ bytes: number[] | null;
830
+ }[];
831
+ }[] | null | undefined;
832
+ } | null | undefined;
833
+ finish_reason?: string | null | undefined;
834
+ }[];
835
+ system_fingerprint?: string | null | undefined;
836
+ usage?: {
837
+ prompt_tokens: number;
838
+ completion_tokens: number;
839
+ total_tokens: number;
840
+ reasoning_tokens?: number | undefined;
841
+ } | null | undefined;
842
+ }>;
843
+ type XAIStreamChatResponseType = z.infer<typeof XAIStreamChatResponse>;
844
+
845
+ declare const XAIChatRequestTool: z.ZodObject<{
846
+ type: z.ZodLiteral<"function">;
847
+ function: z.ZodObject<{
848
+ name: z.ZodString;
849
+ description: z.ZodOptional<z.ZodString>;
850
+ strict: z.ZodOptional<z.ZodBoolean>;
851
+ parameters: z.ZodAny;
852
+ }, "strip", z.ZodTypeAny, {
853
+ name: string;
854
+ description?: string | undefined;
855
+ strict?: boolean | undefined;
856
+ parameters?: any;
857
+ }, {
858
+ name: string;
859
+ description?: string | undefined;
860
+ strict?: boolean | undefined;
861
+ parameters?: any;
862
+ }>;
863
+ }, "strip", z.ZodTypeAny, {
864
+ function: {
865
+ name: string;
866
+ description?: string | undefined;
867
+ strict?: boolean | undefined;
868
+ parameters?: any;
869
+ };
870
+ type: "function";
871
+ }, {
872
+ function: {
873
+ name: string;
874
+ description?: string | undefined;
875
+ strict?: boolean | undefined;
876
+ parameters?: any;
877
+ };
878
+ type: "function";
879
+ }>;
880
+ type XAIChatRequestToolType = z.infer<typeof XAIChatRequestTool>;
881
+ declare const XAIChatRequestToolChoiceEnum: z.ZodEnum<["none", "auto", "required"]>;
882
+ type XAIChatRequestToolChoiceEnumType = z.infer<typeof XAIChatRequestToolChoiceEnum>;
883
+ declare const XAIChatRequestToolChoiceFunction: z.ZodObject<{
884
+ type: z.ZodLiteral<"function">;
885
+ function: z.ZodObject<{
886
+ name: z.ZodString;
887
+ }, "strip", z.ZodTypeAny, {
888
+ name: string;
889
+ }, {
890
+ name: string;
891
+ }>;
892
+ }, "strip", z.ZodTypeAny, {
893
+ function: {
894
+ name: string;
895
+ };
896
+ type: "function";
897
+ }, {
898
+ function: {
899
+ name: string;
900
+ };
901
+ type: "function";
902
+ }>;
903
+ type XAIChatRequestToolChoiceFunctionType = z.infer<typeof XAIChatRequestToolChoiceFunction>;
904
+ declare const XAIChatRequestResponseFormat: z.ZodUnion<[z.ZodObject<{
905
+ type: z.ZodEnum<["text", "json_object"]>;
906
+ }, "strip", z.ZodTypeAny, {
907
+ type: "text" | "json_object";
908
+ }, {
909
+ type: "text" | "json_object";
910
+ }>, z.ZodObject<{
911
+ type: z.ZodLiteral<"json_schema">;
912
+ json_schema: z.ZodObject<{
913
+ name: z.ZodString;
914
+ description: z.ZodOptional<z.ZodString>;
915
+ strict: z.ZodOptional<z.ZodBoolean>;
916
+ schema: z.ZodAny;
917
+ }, "strip", z.ZodTypeAny, {
918
+ name: string;
919
+ description?: string | undefined;
920
+ strict?: boolean | undefined;
921
+ schema?: any;
922
+ }, {
923
+ name: string;
924
+ description?: string | undefined;
925
+ strict?: boolean | undefined;
926
+ schema?: any;
927
+ }>;
928
+ }, "strip", z.ZodTypeAny, {
929
+ type: "json_schema";
930
+ json_schema: {
931
+ name: string;
932
+ description?: string | undefined;
933
+ strict?: boolean | undefined;
934
+ schema?: any;
935
+ };
936
+ }, {
937
+ type: "json_schema";
938
+ json_schema: {
939
+ name: string;
940
+ description?: string | undefined;
941
+ strict?: boolean | undefined;
942
+ schema?: any;
943
+ };
944
+ }>]>;
945
+ type XAIChatRequestResponseFormatType = z.infer<typeof XAIChatRequestResponseFormat>;
946
+ declare const XAIChatRequestTextContent: z.ZodObject<{
947
+ text: z.ZodString;
948
+ type: z.ZodLiteral<"text">;
949
+ }, "strip", z.ZodTypeAny, {
950
+ text: string;
951
+ type: "text";
952
+ }, {
953
+ text: string;
954
+ type: "text";
955
+ }>;
956
+ type XAIChatRequestTextContentType = z.infer<typeof XAIChatRequestTextContent>;
957
+ declare const XAIChatRequestImageContent: z.ZodObject<{
958
+ type: z.ZodLiteral<"image_url">;
959
+ image_url: z.ZodObject<{
960
+ url: z.ZodString;
961
+ detail: z.ZodOptional<z.ZodEnum<["low", "high", "auto"]>>;
962
+ }, "strip", z.ZodTypeAny, {
963
+ url: string;
964
+ detail?: "auto" | "low" | "high" | undefined;
965
+ }, {
966
+ url: string;
967
+ detail?: "auto" | "low" | "high" | undefined;
968
+ }>;
969
+ }, "strip", z.ZodTypeAny, {
970
+ type: "image_url";
971
+ image_url: {
972
+ url: string;
973
+ detail?: "auto" | "low" | "high" | undefined;
974
+ };
975
+ }, {
976
+ type: "image_url";
977
+ image_url: {
978
+ url: string;
979
+ detail?: "auto" | "low" | "high" | undefined;
980
+ };
981
+ }>;
982
+ type XAIChatRequestImageContentType = z.infer<typeof XAIChatRequestImageContent>;
983
+ declare const XAIChatRequestToolCallContent: z.ZodObject<{
984
+ id: z.ZodString;
985
+ type: z.ZodLiteral<"function">;
986
+ function: z.ZodObject<{
987
+ name: z.ZodString;
988
+ arguments: z.ZodString;
989
+ }, "strip", z.ZodTypeAny, {
990
+ name: string;
991
+ arguments: string;
992
+ }, {
993
+ name: string;
994
+ arguments: string;
995
+ }>;
996
+ }, "strip", z.ZodTypeAny, {
997
+ function: {
998
+ name: string;
999
+ arguments: string;
1000
+ };
1001
+ type: "function";
1002
+ id: string;
1003
+ }, {
1004
+ function: {
1005
+ name: string;
1006
+ arguments: string;
1007
+ };
1008
+ type: "function";
1009
+ id: string;
1010
+ }>;
1011
+ type XAIChatRequestToolCallContentType = z.infer<typeof XAIChatRequestToolCallContent>;
1012
+ declare const XAIChatRequestSystemMessage: z.ZodObject<{
1013
+ role: z.ZodLiteral<"system">;
1014
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
1015
+ text: z.ZodString;
1016
+ type: z.ZodLiteral<"text">;
1017
+ }, "strip", z.ZodTypeAny, {
1018
+ text: string;
1019
+ type: "text";
1020
+ }, {
1021
+ text: string;
1022
+ type: "text";
1023
+ }>, "many">]>;
1024
+ }, "strip", z.ZodTypeAny, {
1025
+ content: string | {
1026
+ text: string;
1027
+ type: "text";
1028
+ }[];
1029
+ role: "system";
1030
+ }, {
1031
+ content: string | {
1032
+ text: string;
1033
+ type: "text";
1034
+ }[];
1035
+ role: "system";
1036
+ }>;
1037
+ type XAIChatRequestSystemMessageType = z.infer<typeof XAIChatRequestSystemMessage>;
1038
+ declare const XAIChatRequestUserMessage: z.ZodObject<{
1039
+ role: z.ZodLiteral<"user">;
1040
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1041
+ text: z.ZodString;
1042
+ type: z.ZodLiteral<"text">;
1043
+ }, "strip", z.ZodTypeAny, {
1044
+ text: string;
1045
+ type: "text";
1046
+ }, {
1047
+ text: string;
1048
+ type: "text";
1049
+ }>, z.ZodObject<{
1050
+ type: z.ZodLiteral<"image_url">;
1051
+ image_url: z.ZodObject<{
1052
+ url: z.ZodString;
1053
+ detail: z.ZodOptional<z.ZodEnum<["low", "high", "auto"]>>;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ url: string;
1056
+ detail?: "auto" | "low" | "high" | undefined;
1057
+ }, {
1058
+ url: string;
1059
+ detail?: "auto" | "low" | "high" | undefined;
1060
+ }>;
1061
+ }, "strip", z.ZodTypeAny, {
1062
+ type: "image_url";
1063
+ image_url: {
1064
+ url: string;
1065
+ detail?: "auto" | "low" | "high" | undefined;
1066
+ };
1067
+ }, {
1068
+ type: "image_url";
1069
+ image_url: {
1070
+ url: string;
1071
+ detail?: "auto" | "low" | "high" | undefined;
1072
+ };
1073
+ }>]>, "many">]>;
1074
+ }, "strip", z.ZodTypeAny, {
1075
+ content: string | ({
1076
+ text: string;
1077
+ type: "text";
1078
+ } | {
1079
+ type: "image_url";
1080
+ image_url: {
1081
+ url: string;
1082
+ detail?: "auto" | "low" | "high" | undefined;
1083
+ };
1084
+ })[];
1085
+ role: "user";
1086
+ }, {
1087
+ content: string | ({
1088
+ text: string;
1089
+ type: "text";
1090
+ } | {
1091
+ type: "image_url";
1092
+ image_url: {
1093
+ url: string;
1094
+ detail?: "auto" | "low" | "high" | undefined;
1095
+ };
1096
+ })[];
1097
+ role: "user";
1098
+ }>;
1099
+ type XAIChatRequestUserMessageType = z.infer<typeof XAIChatRequestUserMessage>;
1100
+ declare const XAIChatRequestAssistantMessage: z.ZodObject<{
1101
+ role: z.ZodLiteral<"assistant">;
1102
+ content: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
1103
+ text: z.ZodString;
1104
+ type: z.ZodLiteral<"text">;
1105
+ }, "strip", z.ZodTypeAny, {
1106
+ text: string;
1107
+ type: "text";
1108
+ }, {
1109
+ text: string;
1110
+ type: "text";
1111
+ }>, "many">]>>;
1112
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1113
+ id: z.ZodString;
1114
+ type: z.ZodLiteral<"function">;
1115
+ function: z.ZodObject<{
1116
+ name: z.ZodString;
1117
+ arguments: z.ZodString;
1118
+ }, "strip", z.ZodTypeAny, {
1119
+ name: string;
1120
+ arguments: string;
1121
+ }, {
1122
+ name: string;
1123
+ arguments: string;
1124
+ }>;
1125
+ }, "strip", z.ZodTypeAny, {
1126
+ function: {
1127
+ name: string;
1128
+ arguments: string;
1129
+ };
1130
+ type: "function";
1131
+ id: string;
1132
+ }, {
1133
+ function: {
1134
+ name: string;
1135
+ arguments: string;
1136
+ };
1137
+ type: "function";
1138
+ id: string;
1139
+ }>, "many">>;
1140
+ }, "strip", z.ZodTypeAny, {
1141
+ role: "assistant";
1142
+ content?: string | {
1143
+ text: string;
1144
+ type: "text";
1145
+ }[] | undefined;
1146
+ tool_calls?: {
1147
+ function: {
1148
+ name: string;
1149
+ arguments: string;
1150
+ };
1151
+ type: "function";
1152
+ id: string;
1153
+ }[] | undefined;
1154
+ }, {
1155
+ role: "assistant";
1156
+ content?: string | {
1157
+ text: string;
1158
+ type: "text";
1159
+ }[] | undefined;
1160
+ tool_calls?: {
1161
+ function: {
1162
+ name: string;
1163
+ arguments: string;
1164
+ };
1165
+ type: "function";
1166
+ id: string;
1167
+ }[] | undefined;
1168
+ }>;
1169
+ type XAIChatRequestAssistantMessageType = z.infer<typeof XAIChatRequestAssistantMessage>;
1170
+ declare const XAIChatRequestToolMessage: z.ZodObject<{
1171
+ role: z.ZodLiteral<"tool">;
1172
+ tool_call_id: z.ZodString;
1173
+ content: z.ZodString;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ content: string;
1176
+ role: "tool";
1177
+ tool_call_id: string;
1178
+ }, {
1179
+ content: string;
1180
+ role: "tool";
1181
+ tool_call_id: string;
1182
+ }>;
1183
+ type XAIChatRequestToolMessageType = z.infer<typeof XAIChatRequestToolMessage>;
1184
+ declare const XAIChatRequestMessage: z.ZodUnion<[z.ZodObject<{
1185
+ role: z.ZodLiteral<"system">;
1186
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
1187
+ text: z.ZodString;
1188
+ type: z.ZodLiteral<"text">;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ text: string;
1191
+ type: "text";
1192
+ }, {
1193
+ text: string;
1194
+ type: "text";
1195
+ }>, "many">]>;
1196
+ }, "strip", z.ZodTypeAny, {
1197
+ content: string | {
1198
+ text: string;
1199
+ type: "text";
1200
+ }[];
1201
+ role: "system";
1202
+ }, {
1203
+ content: string | {
1204
+ text: string;
1205
+ type: "text";
1206
+ }[];
1207
+ role: "system";
1208
+ }>, z.ZodObject<{
1209
+ role: z.ZodLiteral<"user">;
1210
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1211
+ text: z.ZodString;
1212
+ type: z.ZodLiteral<"text">;
1213
+ }, "strip", z.ZodTypeAny, {
1214
+ text: string;
1215
+ type: "text";
1216
+ }, {
1217
+ text: string;
1218
+ type: "text";
1219
+ }>, z.ZodObject<{
1220
+ type: z.ZodLiteral<"image_url">;
1221
+ image_url: z.ZodObject<{
1222
+ url: z.ZodString;
1223
+ detail: z.ZodOptional<z.ZodEnum<["low", "high", "auto"]>>;
1224
+ }, "strip", z.ZodTypeAny, {
1225
+ url: string;
1226
+ detail?: "auto" | "low" | "high" | undefined;
1227
+ }, {
1228
+ url: string;
1229
+ detail?: "auto" | "low" | "high" | undefined;
1230
+ }>;
1231
+ }, "strip", z.ZodTypeAny, {
1232
+ type: "image_url";
1233
+ image_url: {
1234
+ url: string;
1235
+ detail?: "auto" | "low" | "high" | undefined;
1236
+ };
1237
+ }, {
1238
+ type: "image_url";
1239
+ image_url: {
1240
+ url: string;
1241
+ detail?: "auto" | "low" | "high" | undefined;
1242
+ };
1243
+ }>]>, "many">]>;
1244
+ }, "strip", z.ZodTypeAny, {
1245
+ content: string | ({
1246
+ text: string;
1247
+ type: "text";
1248
+ } | {
1249
+ type: "image_url";
1250
+ image_url: {
1251
+ url: string;
1252
+ detail?: "auto" | "low" | "high" | undefined;
1253
+ };
1254
+ })[];
1255
+ role: "user";
1256
+ }, {
1257
+ content: string | ({
1258
+ text: string;
1259
+ type: "text";
1260
+ } | {
1261
+ type: "image_url";
1262
+ image_url: {
1263
+ url: string;
1264
+ detail?: "auto" | "low" | "high" | undefined;
1265
+ };
1266
+ })[];
1267
+ role: "user";
1268
+ }>, z.ZodObject<{
1269
+ role: z.ZodLiteral<"assistant">;
1270
+ content: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
1271
+ text: z.ZodString;
1272
+ type: z.ZodLiteral<"text">;
1273
+ }, "strip", z.ZodTypeAny, {
1274
+ text: string;
1275
+ type: "text";
1276
+ }, {
1277
+ text: string;
1278
+ type: "text";
1279
+ }>, "many">]>>;
1280
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1281
+ id: z.ZodString;
1282
+ type: z.ZodLiteral<"function">;
1283
+ function: z.ZodObject<{
1284
+ name: z.ZodString;
1285
+ arguments: z.ZodString;
1286
+ }, "strip", z.ZodTypeAny, {
1287
+ name: string;
1288
+ arguments: string;
1289
+ }, {
1290
+ name: string;
1291
+ arguments: string;
1292
+ }>;
1293
+ }, "strip", z.ZodTypeAny, {
1294
+ function: {
1295
+ name: string;
1296
+ arguments: string;
1297
+ };
1298
+ type: "function";
1299
+ id: string;
1300
+ }, {
1301
+ function: {
1302
+ name: string;
1303
+ arguments: string;
1304
+ };
1305
+ type: "function";
1306
+ id: string;
1307
+ }>, "many">>;
1308
+ }, "strip", z.ZodTypeAny, {
1309
+ role: "assistant";
1310
+ content?: string | {
1311
+ text: string;
1312
+ type: "text";
1313
+ }[] | undefined;
1314
+ tool_calls?: {
1315
+ function: {
1316
+ name: string;
1317
+ arguments: string;
1318
+ };
1319
+ type: "function";
1320
+ id: string;
1321
+ }[] | undefined;
1322
+ }, {
1323
+ role: "assistant";
1324
+ content?: string | {
1325
+ text: string;
1326
+ type: "text";
1327
+ }[] | undefined;
1328
+ tool_calls?: {
1329
+ function: {
1330
+ name: string;
1331
+ arguments: string;
1332
+ };
1333
+ type: "function";
1334
+ id: string;
1335
+ }[] | undefined;
1336
+ }>, z.ZodObject<{
1337
+ role: z.ZodLiteral<"tool">;
1338
+ tool_call_id: z.ZodString;
1339
+ content: z.ZodString;
1340
+ }, "strip", z.ZodTypeAny, {
1341
+ content: string;
1342
+ role: "tool";
1343
+ tool_call_id: string;
1344
+ }, {
1345
+ content: string;
1346
+ role: "tool";
1347
+ tool_call_id: string;
1348
+ }>]>;
1349
+ type XAIChatRequestMessageType = z.infer<typeof XAIChatRequestMessage>;
1350
+ declare const XAIChatRequest: z.ZodObject<{
1351
+ model: z.ZodOptional<z.ZodString>;
1352
+ messages: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1353
+ role: z.ZodLiteral<"system">;
1354
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
1355
+ text: z.ZodString;
1356
+ type: z.ZodLiteral<"text">;
1357
+ }, "strip", z.ZodTypeAny, {
1358
+ text: string;
1359
+ type: "text";
1360
+ }, {
1361
+ text: string;
1362
+ type: "text";
1363
+ }>, "many">]>;
1364
+ }, "strip", z.ZodTypeAny, {
1365
+ content: string | {
1366
+ text: string;
1367
+ type: "text";
1368
+ }[];
1369
+ role: "system";
1370
+ }, {
1371
+ content: string | {
1372
+ text: string;
1373
+ type: "text";
1374
+ }[];
1375
+ role: "system";
1376
+ }>, z.ZodObject<{
1377
+ role: z.ZodLiteral<"user">;
1378
+ content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
1379
+ text: z.ZodString;
1380
+ type: z.ZodLiteral<"text">;
1381
+ }, "strip", z.ZodTypeAny, {
1382
+ text: string;
1383
+ type: "text";
1384
+ }, {
1385
+ text: string;
1386
+ type: "text";
1387
+ }>, z.ZodObject<{
1388
+ type: z.ZodLiteral<"image_url">;
1389
+ image_url: z.ZodObject<{
1390
+ url: z.ZodString;
1391
+ detail: z.ZodOptional<z.ZodEnum<["low", "high", "auto"]>>;
1392
+ }, "strip", z.ZodTypeAny, {
1393
+ url: string;
1394
+ detail?: "auto" | "low" | "high" | undefined;
1395
+ }, {
1396
+ url: string;
1397
+ detail?: "auto" | "low" | "high" | undefined;
1398
+ }>;
1399
+ }, "strip", z.ZodTypeAny, {
1400
+ type: "image_url";
1401
+ image_url: {
1402
+ url: string;
1403
+ detail?: "auto" | "low" | "high" | undefined;
1404
+ };
1405
+ }, {
1406
+ type: "image_url";
1407
+ image_url: {
1408
+ url: string;
1409
+ detail?: "auto" | "low" | "high" | undefined;
1410
+ };
1411
+ }>]>, "many">]>;
1412
+ }, "strip", z.ZodTypeAny, {
1413
+ content: string | ({
1414
+ text: string;
1415
+ type: "text";
1416
+ } | {
1417
+ type: "image_url";
1418
+ image_url: {
1419
+ url: string;
1420
+ detail?: "auto" | "low" | "high" | undefined;
1421
+ };
1422
+ })[];
1423
+ role: "user";
1424
+ }, {
1425
+ content: string | ({
1426
+ text: string;
1427
+ type: "text";
1428
+ } | {
1429
+ type: "image_url";
1430
+ image_url: {
1431
+ url: string;
1432
+ detail?: "auto" | "low" | "high" | undefined;
1433
+ };
1434
+ })[];
1435
+ role: "user";
1436
+ }>, z.ZodObject<{
1437
+ role: z.ZodLiteral<"assistant">;
1438
+ content: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
1439
+ text: z.ZodString;
1440
+ type: z.ZodLiteral<"text">;
1441
+ }, "strip", z.ZodTypeAny, {
1442
+ text: string;
1443
+ type: "text";
1444
+ }, {
1445
+ text: string;
1446
+ type: "text";
1447
+ }>, "many">]>>;
1448
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1449
+ id: z.ZodString;
1450
+ type: z.ZodLiteral<"function">;
1451
+ function: z.ZodObject<{
1452
+ name: z.ZodString;
1453
+ arguments: z.ZodString;
1454
+ }, "strip", z.ZodTypeAny, {
1455
+ name: string;
1456
+ arguments: string;
1457
+ }, {
1458
+ name: string;
1459
+ arguments: string;
1460
+ }>;
1461
+ }, "strip", z.ZodTypeAny, {
1462
+ function: {
1463
+ name: string;
1464
+ arguments: string;
1465
+ };
1466
+ type: "function";
1467
+ id: string;
1468
+ }, {
1469
+ function: {
1470
+ name: string;
1471
+ arguments: string;
1472
+ };
1473
+ type: "function";
1474
+ id: string;
1475
+ }>, "many">>;
1476
+ }, "strip", z.ZodTypeAny, {
1477
+ role: "assistant";
1478
+ content?: string | {
1479
+ text: string;
1480
+ type: "text";
1481
+ }[] | undefined;
1482
+ tool_calls?: {
1483
+ function: {
1484
+ name: string;
1485
+ arguments: string;
1486
+ };
1487
+ type: "function";
1488
+ id: string;
1489
+ }[] | undefined;
1490
+ }, {
1491
+ role: "assistant";
1492
+ content?: string | {
1493
+ text: string;
1494
+ type: "text";
1495
+ }[] | undefined;
1496
+ tool_calls?: {
1497
+ function: {
1498
+ name: string;
1499
+ arguments: string;
1500
+ };
1501
+ type: "function";
1502
+ id: string;
1503
+ }[] | undefined;
1504
+ }>, z.ZodObject<{
1505
+ role: z.ZodLiteral<"tool">;
1506
+ tool_call_id: z.ZodString;
1507
+ content: z.ZodString;
1508
+ }, "strip", z.ZodTypeAny, {
1509
+ content: string;
1510
+ role: "tool";
1511
+ tool_call_id: string;
1512
+ }, {
1513
+ content: string;
1514
+ role: "tool";
1515
+ tool_call_id: string;
1516
+ }>]>, "many">;
1517
+ frequency_penalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1518
+ logprobs: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1519
+ top_logprobs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1520
+ max_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1521
+ presence_penalty: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1522
+ response_format: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1523
+ type: z.ZodEnum<["text", "json_object"]>;
1524
+ }, "strip", z.ZodTypeAny, {
1525
+ type: "text" | "json_object";
1526
+ }, {
1527
+ type: "text" | "json_object";
1528
+ }>, z.ZodObject<{
1529
+ type: z.ZodLiteral<"json_schema">;
1530
+ json_schema: z.ZodObject<{
1531
+ name: z.ZodString;
1532
+ description: z.ZodOptional<z.ZodString>;
1533
+ strict: z.ZodOptional<z.ZodBoolean>;
1534
+ schema: z.ZodAny;
1535
+ }, "strip", z.ZodTypeAny, {
1536
+ name: string;
1537
+ description?: string | undefined;
1538
+ strict?: boolean | undefined;
1539
+ schema?: any;
1540
+ }, {
1541
+ name: string;
1542
+ description?: string | undefined;
1543
+ strict?: boolean | undefined;
1544
+ schema?: any;
1545
+ }>;
1546
+ }, "strip", z.ZodTypeAny, {
1547
+ type: "json_schema";
1548
+ json_schema: {
1549
+ name: string;
1550
+ description?: string | undefined;
1551
+ strict?: boolean | undefined;
1552
+ schema?: any;
1553
+ };
1554
+ }, {
1555
+ type: "json_schema";
1556
+ json_schema: {
1557
+ name: string;
1558
+ description?: string | undefined;
1559
+ strict?: boolean | undefined;
1560
+ schema?: any;
1561
+ };
1562
+ }>]>>;
1563
+ seed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1564
+ stop: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>>;
1565
+ temperature: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1566
+ top_p: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1567
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
1568
+ type: z.ZodLiteral<"function">;
1569
+ function: z.ZodObject<{
1570
+ name: z.ZodString;
1571
+ description: z.ZodOptional<z.ZodString>;
1572
+ strict: z.ZodOptional<z.ZodBoolean>;
1573
+ parameters: z.ZodAny;
1574
+ }, "strip", z.ZodTypeAny, {
1575
+ name: string;
1576
+ description?: string | undefined;
1577
+ strict?: boolean | undefined;
1578
+ parameters?: any;
1579
+ }, {
1580
+ name: string;
1581
+ description?: string | undefined;
1582
+ strict?: boolean | undefined;
1583
+ parameters?: any;
1584
+ }>;
1585
+ }, "strip", z.ZodTypeAny, {
1586
+ function: {
1587
+ name: string;
1588
+ description?: string | undefined;
1589
+ strict?: boolean | undefined;
1590
+ parameters?: any;
1591
+ };
1592
+ type: "function";
1593
+ }, {
1594
+ function: {
1595
+ name: string;
1596
+ description?: string | undefined;
1597
+ strict?: boolean | undefined;
1598
+ parameters?: any;
1599
+ };
1600
+ type: "function";
1601
+ }>, "many">>;
1602
+ tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["none", "auto", "required"]>, z.ZodObject<{
1603
+ type: z.ZodLiteral<"function">;
1604
+ function: z.ZodObject<{
1605
+ name: z.ZodString;
1606
+ }, "strip", z.ZodTypeAny, {
1607
+ name: string;
1608
+ }, {
1609
+ name: string;
1610
+ }>;
1611
+ }, "strip", z.ZodTypeAny, {
1612
+ function: {
1613
+ name: string;
1614
+ };
1615
+ type: "function";
1616
+ }, {
1617
+ function: {
1618
+ name: string;
1619
+ };
1620
+ type: "function";
1621
+ }>]>>;
1622
+ reasoning_effort: z.ZodOptional<z.ZodEnum<["low", "high"]>>;
1623
+ }, "strip", z.ZodTypeAny, {
1624
+ messages: ({
1625
+ content: string | {
1626
+ text: string;
1627
+ type: "text";
1628
+ }[];
1629
+ role: "system";
1630
+ } | {
1631
+ content: string | ({
1632
+ text: string;
1633
+ type: "text";
1634
+ } | {
1635
+ type: "image_url";
1636
+ image_url: {
1637
+ url: string;
1638
+ detail?: "auto" | "low" | "high" | undefined;
1639
+ };
1640
+ })[];
1641
+ role: "user";
1642
+ } | {
1643
+ role: "assistant";
1644
+ content?: string | {
1645
+ text: string;
1646
+ type: "text";
1647
+ }[] | undefined;
1648
+ tool_calls?: {
1649
+ function: {
1650
+ name: string;
1651
+ arguments: string;
1652
+ };
1653
+ type: "function";
1654
+ id: string;
1655
+ }[] | undefined;
1656
+ } | {
1657
+ content: string;
1658
+ role: "tool";
1659
+ tool_call_id: string;
1660
+ })[];
1661
+ top_logprobs?: number | null | undefined;
1662
+ model?: string | undefined;
1663
+ logprobs?: boolean | null | undefined;
1664
+ frequency_penalty?: number | null | undefined;
1665
+ max_tokens?: number | null | undefined;
1666
+ presence_penalty?: number | null | undefined;
1667
+ response_format?: {
1668
+ type: "text" | "json_object";
1669
+ } | {
1670
+ type: "json_schema";
1671
+ json_schema: {
1672
+ name: string;
1673
+ description?: string | undefined;
1674
+ strict?: boolean | undefined;
1675
+ schema?: any;
1676
+ };
1677
+ } | undefined;
1678
+ seed?: number | null | undefined;
1679
+ stop?: string | string[] | null | undefined;
1680
+ temperature?: number | null | undefined;
1681
+ top_p?: number | null | undefined;
1682
+ tools?: {
1683
+ function: {
1684
+ name: string;
1685
+ description?: string | undefined;
1686
+ strict?: boolean | undefined;
1687
+ parameters?: any;
1688
+ };
1689
+ type: "function";
1690
+ }[] | undefined;
1691
+ tool_choice?: "none" | "auto" | "required" | {
1692
+ function: {
1693
+ name: string;
1694
+ };
1695
+ type: "function";
1696
+ } | undefined;
1697
+ reasoning_effort?: "low" | "high" | undefined;
1698
+ }, {
1699
+ messages: ({
1700
+ content: string | {
1701
+ text: string;
1702
+ type: "text";
1703
+ }[];
1704
+ role: "system";
1705
+ } | {
1706
+ content: string | ({
1707
+ text: string;
1708
+ type: "text";
1709
+ } | {
1710
+ type: "image_url";
1711
+ image_url: {
1712
+ url: string;
1713
+ detail?: "auto" | "low" | "high" | undefined;
1714
+ };
1715
+ })[];
1716
+ role: "user";
1717
+ } | {
1718
+ role: "assistant";
1719
+ content?: string | {
1720
+ text: string;
1721
+ type: "text";
1722
+ }[] | undefined;
1723
+ tool_calls?: {
1724
+ function: {
1725
+ name: string;
1726
+ arguments: string;
1727
+ };
1728
+ type: "function";
1729
+ id: string;
1730
+ }[] | undefined;
1731
+ } | {
1732
+ content: string;
1733
+ role: "tool";
1734
+ tool_call_id: string;
1735
+ })[];
1736
+ top_logprobs?: number | null | undefined;
1737
+ model?: string | undefined;
1738
+ logprobs?: boolean | null | undefined;
1739
+ frequency_penalty?: number | null | undefined;
1740
+ max_tokens?: number | null | undefined;
1741
+ presence_penalty?: number | null | undefined;
1742
+ response_format?: {
1743
+ type: "text" | "json_object";
1744
+ } | {
1745
+ type: "json_schema";
1746
+ json_schema: {
1747
+ name: string;
1748
+ description?: string | undefined;
1749
+ strict?: boolean | undefined;
1750
+ schema?: any;
1751
+ };
1752
+ } | undefined;
1753
+ seed?: number | null | undefined;
1754
+ stop?: string | string[] | null | undefined;
1755
+ temperature?: number | null | undefined;
1756
+ top_p?: number | null | undefined;
1757
+ tools?: {
1758
+ function: {
1759
+ name: string;
1760
+ description?: string | undefined;
1761
+ strict?: boolean | undefined;
1762
+ parameters?: any;
1763
+ };
1764
+ type: "function";
1765
+ }[] | undefined;
1766
+ tool_choice?: "none" | "auto" | "required" | {
1767
+ function: {
1768
+ name: string;
1769
+ };
1770
+ type: "function";
1771
+ } | undefined;
1772
+ reasoning_effort?: "low" | "high" | undefined;
1773
+ }>;
1774
+ type XAIChatRequestType = z.infer<typeof XAIChatRequest>;
1775
+
1776
+ declare const BaseChatModelOptions: z.ZodObject<{
1777
+ modelName: z.ZodString;
1778
+ apiKey: z.ZodString;
1779
+ baseUrl: z.ZodOptional<z.ZodString>;
1780
+ completeChatUrl: z.ZodOptional<z.ZodString>;
1781
+ streamChatUrl: z.ZodOptional<z.ZodString>;
1782
+ }, "strip", z.ZodTypeAny, {
1783
+ modelName: string;
1784
+ apiKey: string;
1785
+ baseUrl?: string | undefined;
1786
+ completeChatUrl?: string | undefined;
1787
+ streamChatUrl?: string | undefined;
1788
+ }, {
1789
+ modelName: string;
1790
+ apiKey: string;
1791
+ baseUrl?: string | undefined;
1792
+ completeChatUrl?: string | undefined;
1793
+ streamChatUrl?: string | undefined;
1794
+ }>;
1795
+ type BaseChatModelOptionsType = z.infer<typeof BaseChatModelOptions>;
1796
+ declare class BaseChatModel implements ChatModelV1<ChatModelSchemaType> {
1797
+ readonly version: "v1";
1798
+ modelSchema: ChatModelSchemaType;
1799
+ modelName: string;
1800
+ private readonly apiKey;
1801
+ private readonly baseUrl;
1802
+ private readonly streamChatUrl;
1803
+ private readonly completeChatUrl;
1804
+ constructor(modelSchema: ChatModelSchemaType, options: BaseChatModelOptionsType);
1805
+ getDefaultBaseUrl(): UrlType;
1806
+ getDefaultHeaders(): HeadersType;
1807
+ getDefaultParams(): ParamsType;
1808
+ getRetryDelay(responseHeaders: HeadersType): {
1809
+ shouldRetry: boolean;
1810
+ delayMs: number;
1811
+ };
1812
+ getTokenCount(messages: MessageType[]): number;
1813
+ transformModelRequest(request: XAIChatRequestType): {
1814
+ modelName: string | undefined;
1815
+ config: ConfigType;
1816
+ messages: MessageType[];
1817
+ tools: ToolType[] | undefined;
1818
+ };
1819
+ transformConfig(config: ConfigType, messages?: MessageType[], tools?: ToolType[]): ParamsType;
1820
+ transformMessages(messages: MessageType[]): ParamsType;
1821
+ transformTools(tools: ToolType[]): ParamsType;
1822
+ getCompleteChatUrl(config?: ConfigType, messages?: MessageType[], tools?: ToolType[]): Promise<UrlType>;
1823
+ getCompleteChatHeaders(config?: ConfigType, messages?: MessageType[], tools?: ToolType[]): Promise<HeadersType>;
1824
+ getCompleteChatData(config: ConfigType, messages: MessageType[], tools?: ToolType[]): Promise<ParamsType>;
1825
+ transformCompleteChatResponse(response: unknown): ChatResponseType;
1826
+ getStreamChatUrl(config?: ConfigType, messages?: MessageType[], tools?: ToolType[]): Promise<UrlType>;
1827
+ getStreamChatHeaders(config?: ConfigType, messages?: MessageType[], tools?: ToolType[]): Promise<HeadersType>;
1828
+ getStreamChatData(config: ConfigType, messages: MessageType[], tools?: ToolType[]): Promise<ParamsType>;
1829
+ transformStreamChatResponseChunk(chunk: string, buffer: string): AsyncGenerator<{
1830
+ partialResponse: PartialChatResponseType;
1831
+ buffer: string;
1832
+ }>;
1833
+ transformProxyStreamChatResponseChunk(chunk: string, buffer: string, data?: any, headers?: Record<string, string>, query?: Record<string, string>): AsyncGenerator<{
1834
+ partialResponse: PartialChatResponseType;
1835
+ buffer: string;
1836
+ }>;
1837
+ getProxyStreamChatUrl(data?: any, headers?: Record<string, string>, query?: Record<string, string>): Promise<UrlType>;
1838
+ getProxyCompleteChatUrl(data?: any, headers?: Record<string, string>, query?: Record<string, string>): Promise<UrlType>;
1839
+ getProxyCompleteChatHeaders(data?: any, headers?: Record<string, string>, query?: Record<string, string>): Promise<HeadersType>;
1840
+ getProxyStreamChatHeaders(data?: any, headers?: Record<string, string>, query?: Record<string, string>): Promise<HeadersType>;
1841
+ getModelPricing(): ChatModelPriceType;
1842
+ }
1843
+
1844
+ declare const Grok_2_Literal = "grok-2";
1845
+ declare const Grok_2_Schema: {
1846
+ name: string;
1847
+ description: string;
1848
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
1849
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
1850
+ maxInputTokens: number;
1851
+ maxOutputTokens: number;
1852
+ config: {
1853
+ def: Record<string, {
1854
+ type: "multi-string";
1855
+ param: string;
1856
+ title: string;
1857
+ description: string;
1858
+ max: number;
1859
+ } | {
1860
+ type: "object-schema";
1861
+ param: string;
1862
+ title: string;
1863
+ description: string;
1864
+ objectSchema?: any;
1865
+ } | {
1866
+ type: "paired-select";
1867
+ param: string;
1868
+ title: string;
1869
+ description: string;
1870
+ fields: [{
1871
+ label: string;
1872
+ key: string;
1873
+ choices: {
1874
+ value: string;
1875
+ label: string;
1876
+ }[];
1877
+ description?: string | undefined;
1878
+ }, {
1879
+ label: string;
1880
+ key: string;
1881
+ choices: {
1882
+ value: string;
1883
+ label: string;
1884
+ }[];
1885
+ description?: string | undefined;
1886
+ }];
1887
+ uniqueByField?: string | undefined;
1888
+ } | {
1889
+ type: "range";
1890
+ param: string;
1891
+ title: string;
1892
+ description: string;
1893
+ max: number;
1894
+ default: number;
1895
+ min: number;
1896
+ step: number;
1897
+ } | {
1898
+ type: "select-boolean";
1899
+ param: string;
1900
+ title: string;
1901
+ description: string;
1902
+ default: boolean | null;
1903
+ } | {
1904
+ type: "select-string";
1905
+ param: string;
1906
+ title: string;
1907
+ description: string;
1908
+ default: string;
1909
+ choices: string[];
1910
+ }>;
1911
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
1912
+ };
1913
+ price: {
1914
+ modelName: string;
1915
+ currency: string;
1916
+ tokenRanges: {
1917
+ minTokens: number;
1918
+ prices: {
1919
+ base: {
1920
+ inputPricePerMillion: number;
1921
+ outputPricePerMillion: number;
1922
+ };
1923
+ };
1924
+ maxTokens?: number | null | undefined;
1925
+ }[];
1926
+ };
1927
+ maxReasoningTokens?: number | undefined;
1928
+ };
1929
+ declare const Grok_2_Options: z.ZodObject<{
1930
+ modelName: z.ZodString;
1931
+ apiKey: z.ZodString;
1932
+ baseUrl: z.ZodOptional<z.ZodString>;
1933
+ completeChatUrl: z.ZodOptional<z.ZodString>;
1934
+ streamChatUrl: z.ZodOptional<z.ZodString>;
1935
+ }, "strip", z.ZodTypeAny, {
1936
+ modelName: string;
1937
+ apiKey: string;
1938
+ baseUrl?: string | undefined;
1939
+ completeChatUrl?: string | undefined;
1940
+ streamChatUrl?: string | undefined;
1941
+ }, {
1942
+ modelName: string;
1943
+ apiKey: string;
1944
+ baseUrl?: string | undefined;
1945
+ completeChatUrl?: string | undefined;
1946
+ streamChatUrl?: string | undefined;
1947
+ }>;
1948
+ type Grok_2_OptionsType = z.infer<typeof Grok_2_Options>;
1949
+ declare class Grok_2 extends BaseChatModel {
1950
+ constructor(options: Grok_2_OptionsType);
1951
+ }
1952
+
1953
+ declare const Grok_2_Latest_Literal = "grok-2-latest";
1954
+ declare const Grok_2_Latest_Schema: {
1955
+ name: string;
1956
+ description: string;
1957
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
1958
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
1959
+ maxInputTokens: number;
1960
+ maxOutputTokens: number;
1961
+ config: {
1962
+ def: Record<string, {
1963
+ type: "multi-string";
1964
+ param: string;
1965
+ title: string;
1966
+ description: string;
1967
+ max: number;
1968
+ } | {
1969
+ type: "object-schema";
1970
+ param: string;
1971
+ title: string;
1972
+ description: string;
1973
+ objectSchema?: any;
1974
+ } | {
1975
+ type: "paired-select";
1976
+ param: string;
1977
+ title: string;
1978
+ description: string;
1979
+ fields: [{
1980
+ label: string;
1981
+ key: string;
1982
+ choices: {
1983
+ value: string;
1984
+ label: string;
1985
+ }[];
1986
+ description?: string | undefined;
1987
+ }, {
1988
+ label: string;
1989
+ key: string;
1990
+ choices: {
1991
+ value: string;
1992
+ label: string;
1993
+ }[];
1994
+ description?: string | undefined;
1995
+ }];
1996
+ uniqueByField?: string | undefined;
1997
+ } | {
1998
+ type: "range";
1999
+ param: string;
2000
+ title: string;
2001
+ description: string;
2002
+ max: number;
2003
+ default: number;
2004
+ min: number;
2005
+ step: number;
2006
+ } | {
2007
+ type: "select-boolean";
2008
+ param: string;
2009
+ title: string;
2010
+ description: string;
2011
+ default: boolean | null;
2012
+ } | {
2013
+ type: "select-string";
2014
+ param: string;
2015
+ title: string;
2016
+ description: string;
2017
+ default: string;
2018
+ choices: string[];
2019
+ }>;
2020
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
2021
+ };
2022
+ price: {
2023
+ modelName: string;
2024
+ currency: string;
2025
+ tokenRanges: {
2026
+ minTokens: number;
2027
+ prices: {
2028
+ base: {
2029
+ inputPricePerMillion: number;
2030
+ outputPricePerMillion: number;
2031
+ };
2032
+ };
2033
+ maxTokens?: number | null | undefined;
2034
+ }[];
2035
+ };
2036
+ maxReasoningTokens?: number | undefined;
2037
+ };
2038
+ declare const Grok_2_Latest_Options: z.ZodObject<{
2039
+ modelName: z.ZodString;
2040
+ apiKey: z.ZodString;
2041
+ baseUrl: z.ZodOptional<z.ZodString>;
2042
+ completeChatUrl: z.ZodOptional<z.ZodString>;
2043
+ streamChatUrl: z.ZodOptional<z.ZodString>;
2044
+ }, "strip", z.ZodTypeAny, {
2045
+ modelName: string;
2046
+ apiKey: string;
2047
+ baseUrl?: string | undefined;
2048
+ completeChatUrl?: string | undefined;
2049
+ streamChatUrl?: string | undefined;
2050
+ }, {
2051
+ modelName: string;
2052
+ apiKey: string;
2053
+ baseUrl?: string | undefined;
2054
+ completeChatUrl?: string | undefined;
2055
+ streamChatUrl?: string | undefined;
2056
+ }>;
2057
+ type Grok_2_Latest_OptionsType = z.infer<typeof Grok_2_Latest_Options>;
2058
+ declare class Grok_2_Latest extends BaseChatModel {
2059
+ constructor(options: Grok_2_Latest_OptionsType);
2060
+ }
2061
+
2062
+ declare const Grok_2_1212_Literal = "grok-2-1212";
2063
+ declare const Grok_2_1212_Schema: {
2064
+ name: string;
2065
+ description: string;
2066
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
2067
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
2068
+ maxInputTokens: number;
2069
+ maxOutputTokens: number;
2070
+ config: {
2071
+ def: Record<string, {
2072
+ type: "multi-string";
2073
+ param: string;
2074
+ title: string;
2075
+ description: string;
2076
+ max: number;
2077
+ } | {
2078
+ type: "object-schema";
2079
+ param: string;
2080
+ title: string;
2081
+ description: string;
2082
+ objectSchema?: any;
2083
+ } | {
2084
+ type: "paired-select";
2085
+ param: string;
2086
+ title: string;
2087
+ description: string;
2088
+ fields: [{
2089
+ label: string;
2090
+ key: string;
2091
+ choices: {
2092
+ value: string;
2093
+ label: string;
2094
+ }[];
2095
+ description?: string | undefined;
2096
+ }, {
2097
+ label: string;
2098
+ key: string;
2099
+ choices: {
2100
+ value: string;
2101
+ label: string;
2102
+ }[];
2103
+ description?: string | undefined;
2104
+ }];
2105
+ uniqueByField?: string | undefined;
2106
+ } | {
2107
+ type: "range";
2108
+ param: string;
2109
+ title: string;
2110
+ description: string;
2111
+ max: number;
2112
+ default: number;
2113
+ min: number;
2114
+ step: number;
2115
+ } | {
2116
+ type: "select-boolean";
2117
+ param: string;
2118
+ title: string;
2119
+ description: string;
2120
+ default: boolean | null;
2121
+ } | {
2122
+ type: "select-string";
2123
+ param: string;
2124
+ title: string;
2125
+ description: string;
2126
+ default: string;
2127
+ choices: string[];
2128
+ }>;
2129
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
2130
+ };
2131
+ price: {
2132
+ modelName: string;
2133
+ currency: string;
2134
+ tokenRanges: {
2135
+ minTokens: number;
2136
+ prices: {
2137
+ base: {
2138
+ inputPricePerMillion: number;
2139
+ outputPricePerMillion: number;
2140
+ };
2141
+ };
2142
+ maxTokens?: number | null | undefined;
2143
+ }[];
2144
+ };
2145
+ maxReasoningTokens?: number | undefined;
2146
+ };
2147
+ declare const Grok_2_1212_Options: z.ZodObject<{
2148
+ modelName: z.ZodString;
2149
+ apiKey: z.ZodString;
2150
+ baseUrl: z.ZodOptional<z.ZodString>;
2151
+ completeChatUrl: z.ZodOptional<z.ZodString>;
2152
+ streamChatUrl: z.ZodOptional<z.ZodString>;
2153
+ }, "strip", z.ZodTypeAny, {
2154
+ modelName: string;
2155
+ apiKey: string;
2156
+ baseUrl?: string | undefined;
2157
+ completeChatUrl?: string | undefined;
2158
+ streamChatUrl?: string | undefined;
2159
+ }, {
2160
+ modelName: string;
2161
+ apiKey: string;
2162
+ baseUrl?: string | undefined;
2163
+ completeChatUrl?: string | undefined;
2164
+ streamChatUrl?: string | undefined;
2165
+ }>;
2166
+ type Grok_2_1212_OptionsType = z.infer<typeof Grok_2_1212_Options>;
2167
+ declare class Grok_2_1212 extends BaseChatModel {
2168
+ constructor(options: Grok_2_1212_OptionsType);
2169
+ }
2170
+
2171
+ declare const Grok_3_Beta_Literal = "grok-3-beta";
2172
+ declare const Grok_3_Beta_Schema: {
2173
+ name: string;
2174
+ description: string;
2175
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
2176
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
2177
+ maxInputTokens: number;
2178
+ maxOutputTokens: number;
2179
+ config: {
2180
+ def: Record<string, {
2181
+ type: "multi-string";
2182
+ param: string;
2183
+ title: string;
2184
+ description: string;
2185
+ max: number;
2186
+ } | {
2187
+ type: "object-schema";
2188
+ param: string;
2189
+ title: string;
2190
+ description: string;
2191
+ objectSchema?: any;
2192
+ } | {
2193
+ type: "paired-select";
2194
+ param: string;
2195
+ title: string;
2196
+ description: string;
2197
+ fields: [{
2198
+ label: string;
2199
+ key: string;
2200
+ choices: {
2201
+ value: string;
2202
+ label: string;
2203
+ }[];
2204
+ description?: string | undefined;
2205
+ }, {
2206
+ label: string;
2207
+ key: string;
2208
+ choices: {
2209
+ value: string;
2210
+ label: string;
2211
+ }[];
2212
+ description?: string | undefined;
2213
+ }];
2214
+ uniqueByField?: string | undefined;
2215
+ } | {
2216
+ type: "range";
2217
+ param: string;
2218
+ title: string;
2219
+ description: string;
2220
+ max: number;
2221
+ default: number;
2222
+ min: number;
2223
+ step: number;
2224
+ } | {
2225
+ type: "select-boolean";
2226
+ param: string;
2227
+ title: string;
2228
+ description: string;
2229
+ default: boolean | null;
2230
+ } | {
2231
+ type: "select-string";
2232
+ param: string;
2233
+ title: string;
2234
+ description: string;
2235
+ default: string;
2236
+ choices: string[];
2237
+ }>;
2238
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
2239
+ };
2240
+ price: {
2241
+ modelName: string;
2242
+ currency: string;
2243
+ tokenRanges: {
2244
+ minTokens: number;
2245
+ prices: {
2246
+ base: {
2247
+ inputPricePerMillion: number;
2248
+ outputPricePerMillion: number;
2249
+ };
2250
+ };
2251
+ maxTokens?: number | null | undefined;
2252
+ }[];
2253
+ };
2254
+ maxReasoningTokens?: number | undefined;
2255
+ };
2256
+ declare const Grok_3_Beta_Options: z.ZodObject<{
2257
+ modelName: z.ZodString;
2258
+ apiKey: z.ZodString;
2259
+ baseUrl: z.ZodOptional<z.ZodString>;
2260
+ completeChatUrl: z.ZodOptional<z.ZodString>;
2261
+ streamChatUrl: z.ZodOptional<z.ZodString>;
2262
+ }, "strip", z.ZodTypeAny, {
2263
+ modelName: string;
2264
+ apiKey: string;
2265
+ baseUrl?: string | undefined;
2266
+ completeChatUrl?: string | undefined;
2267
+ streamChatUrl?: string | undefined;
2268
+ }, {
2269
+ modelName: string;
2270
+ apiKey: string;
2271
+ baseUrl?: string | undefined;
2272
+ completeChatUrl?: string | undefined;
2273
+ streamChatUrl?: string | undefined;
2274
+ }>;
2275
+ type Grok_3_Beta_OptionsType = z.infer<typeof Grok_3_Beta_Options>;
2276
+ declare class Grok_3_Beta extends BaseChatModel {
2277
+ constructor(options: Grok_3_Beta_OptionsType);
2278
+ }
2279
+
2280
+ declare const Grok_3_Fast_Beta_Literal = "grok-3-fast-beta";
2281
+ declare const Grok_3_Fast_Beta_Schema: {
2282
+ name: string;
2283
+ description: string;
2284
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
2285
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
2286
+ maxInputTokens: number;
2287
+ maxOutputTokens: number;
2288
+ config: {
2289
+ def: Record<string, {
2290
+ type: "multi-string";
2291
+ param: string;
2292
+ title: string;
2293
+ description: string;
2294
+ max: number;
2295
+ } | {
2296
+ type: "object-schema";
2297
+ param: string;
2298
+ title: string;
2299
+ description: string;
2300
+ objectSchema?: any;
2301
+ } | {
2302
+ type: "paired-select";
2303
+ param: string;
2304
+ title: string;
2305
+ description: string;
2306
+ fields: [{
2307
+ label: string;
2308
+ key: string;
2309
+ choices: {
2310
+ value: string;
2311
+ label: string;
2312
+ }[];
2313
+ description?: string | undefined;
2314
+ }, {
2315
+ label: string;
2316
+ key: string;
2317
+ choices: {
2318
+ value: string;
2319
+ label: string;
2320
+ }[];
2321
+ description?: string | undefined;
2322
+ }];
2323
+ uniqueByField?: string | undefined;
2324
+ } | {
2325
+ type: "range";
2326
+ param: string;
2327
+ title: string;
2328
+ description: string;
2329
+ max: number;
2330
+ default: number;
2331
+ min: number;
2332
+ step: number;
2333
+ } | {
2334
+ type: "select-boolean";
2335
+ param: string;
2336
+ title: string;
2337
+ description: string;
2338
+ default: boolean | null;
2339
+ } | {
2340
+ type: "select-string";
2341
+ param: string;
2342
+ title: string;
2343
+ description: string;
2344
+ default: string;
2345
+ choices: string[];
2346
+ }>;
2347
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
2348
+ };
2349
+ price: {
2350
+ modelName: string;
2351
+ currency: string;
2352
+ tokenRanges: {
2353
+ minTokens: number;
2354
+ prices: {
2355
+ base: {
2356
+ inputPricePerMillion: number;
2357
+ outputPricePerMillion: number;
2358
+ };
2359
+ };
2360
+ maxTokens?: number | null | undefined;
2361
+ }[];
2362
+ };
2363
+ maxReasoningTokens?: number | undefined;
2364
+ };
2365
+ declare const Grok_3_Fast_Beta_Options: z.ZodObject<{
2366
+ modelName: z.ZodString;
2367
+ apiKey: z.ZodString;
2368
+ baseUrl: z.ZodOptional<z.ZodString>;
2369
+ completeChatUrl: z.ZodOptional<z.ZodString>;
2370
+ streamChatUrl: z.ZodOptional<z.ZodString>;
2371
+ }, "strip", z.ZodTypeAny, {
2372
+ modelName: string;
2373
+ apiKey: string;
2374
+ baseUrl?: string | undefined;
2375
+ completeChatUrl?: string | undefined;
2376
+ streamChatUrl?: string | undefined;
2377
+ }, {
2378
+ modelName: string;
2379
+ apiKey: string;
2380
+ baseUrl?: string | undefined;
2381
+ completeChatUrl?: string | undefined;
2382
+ streamChatUrl?: string | undefined;
2383
+ }>;
2384
+ type Grok_3_Fast_Beta_OptionsType = z.infer<typeof Grok_3_Fast_Beta_Options>;
2385
+ declare class Grok_3_Fast_Beta extends BaseChatModel {
2386
+ constructor(options: Grok_3_Fast_Beta_OptionsType);
2387
+ }
2388
+
2389
+ declare const Grok_3_Mini_Beta_Literal = "grok-3-mini-beta";
2390
+ declare const Grok_3_Mini_Beta_Schema: {
2391
+ name: string;
2392
+ description: string;
2393
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
2394
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
2395
+ maxInputTokens: number;
2396
+ maxOutputTokens: number;
2397
+ config: {
2398
+ def: Record<string, {
2399
+ type: "multi-string";
2400
+ param: string;
2401
+ title: string;
2402
+ description: string;
2403
+ max: number;
2404
+ } | {
2405
+ type: "object-schema";
2406
+ param: string;
2407
+ title: string;
2408
+ description: string;
2409
+ objectSchema?: any;
2410
+ } | {
2411
+ type: "paired-select";
2412
+ param: string;
2413
+ title: string;
2414
+ description: string;
2415
+ fields: [{
2416
+ label: string;
2417
+ key: string;
2418
+ choices: {
2419
+ value: string;
2420
+ label: string;
2421
+ }[];
2422
+ description?: string | undefined;
2423
+ }, {
2424
+ label: string;
2425
+ key: string;
2426
+ choices: {
2427
+ value: string;
2428
+ label: string;
2429
+ }[];
2430
+ description?: string | undefined;
2431
+ }];
2432
+ uniqueByField?: string | undefined;
2433
+ } | {
2434
+ type: "range";
2435
+ param: string;
2436
+ title: string;
2437
+ description: string;
2438
+ max: number;
2439
+ default: number;
2440
+ min: number;
2441
+ step: number;
2442
+ } | {
2443
+ type: "select-boolean";
2444
+ param: string;
2445
+ title: string;
2446
+ description: string;
2447
+ default: boolean | null;
2448
+ } | {
2449
+ type: "select-string";
2450
+ param: string;
2451
+ title: string;
2452
+ description: string;
2453
+ default: string;
2454
+ choices: string[];
2455
+ }>;
2456
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
2457
+ };
2458
+ price: {
2459
+ modelName: string;
2460
+ currency: string;
2461
+ tokenRanges: {
2462
+ minTokens: number;
2463
+ prices: {
2464
+ base: {
2465
+ inputPricePerMillion: number;
2466
+ outputPricePerMillion: number;
2467
+ };
2468
+ };
2469
+ maxTokens?: number | null | undefined;
2470
+ }[];
2471
+ };
2472
+ maxReasoningTokens?: number | undefined;
2473
+ };
2474
+ declare const Grok_3_Mini_Beta_Options: z.ZodObject<{
2475
+ modelName: z.ZodString;
2476
+ apiKey: z.ZodString;
2477
+ baseUrl: z.ZodOptional<z.ZodString>;
2478
+ completeChatUrl: z.ZodOptional<z.ZodString>;
2479
+ streamChatUrl: z.ZodOptional<z.ZodString>;
2480
+ }, "strip", z.ZodTypeAny, {
2481
+ modelName: string;
2482
+ apiKey: string;
2483
+ baseUrl?: string | undefined;
2484
+ completeChatUrl?: string | undefined;
2485
+ streamChatUrl?: string | undefined;
2486
+ }, {
2487
+ modelName: string;
2488
+ apiKey: string;
2489
+ baseUrl?: string | undefined;
2490
+ completeChatUrl?: string | undefined;
2491
+ streamChatUrl?: string | undefined;
2492
+ }>;
2493
+ type Grok_3_Mini_Beta_OptionsType = z.infer<typeof Grok_3_Mini_Beta_Options>;
2494
+ declare class Grok_3_Mini_Beta extends BaseChatModel {
2495
+ constructor(options: Grok_3_Mini_Beta_OptionsType);
2496
+ }
2497
+
2498
+ declare const Grok_3_Mini_Fast_Beta_Literal = "grok-3-mini-fast-beta";
2499
+ declare const Grok_3_Mini_Fast_Beta_Schema: {
2500
+ name: string;
2501
+ description: string;
2502
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
2503
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
2504
+ maxInputTokens: number;
2505
+ maxOutputTokens: number;
2506
+ config: {
2507
+ def: Record<string, {
2508
+ type: "multi-string";
2509
+ param: string;
2510
+ title: string;
2511
+ description: string;
2512
+ max: number;
2513
+ } | {
2514
+ type: "object-schema";
2515
+ param: string;
2516
+ title: string;
2517
+ description: string;
2518
+ objectSchema?: any;
2519
+ } | {
2520
+ type: "paired-select";
2521
+ param: string;
2522
+ title: string;
2523
+ description: string;
2524
+ fields: [{
2525
+ label: string;
2526
+ key: string;
2527
+ choices: {
2528
+ value: string;
2529
+ label: string;
2530
+ }[];
2531
+ description?: string | undefined;
2532
+ }, {
2533
+ label: string;
2534
+ key: string;
2535
+ choices: {
2536
+ value: string;
2537
+ label: string;
2538
+ }[];
2539
+ description?: string | undefined;
2540
+ }];
2541
+ uniqueByField?: string | undefined;
2542
+ } | {
2543
+ type: "range";
2544
+ param: string;
2545
+ title: string;
2546
+ description: string;
2547
+ max: number;
2548
+ default: number;
2549
+ min: number;
2550
+ step: number;
2551
+ } | {
2552
+ type: "select-boolean";
2553
+ param: string;
2554
+ title: string;
2555
+ description: string;
2556
+ default: boolean | null;
2557
+ } | {
2558
+ type: "select-string";
2559
+ param: string;
2560
+ title: string;
2561
+ description: string;
2562
+ default: string;
2563
+ choices: string[];
2564
+ }>;
2565
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
2566
+ };
2567
+ price: {
2568
+ modelName: string;
2569
+ currency: string;
2570
+ tokenRanges: {
2571
+ minTokens: number;
2572
+ prices: {
2573
+ base: {
2574
+ inputPricePerMillion: number;
2575
+ outputPricePerMillion: number;
2576
+ };
2577
+ };
2578
+ maxTokens?: number | null | undefined;
2579
+ }[];
2580
+ };
2581
+ maxReasoningTokens?: number | undefined;
2582
+ };
2583
+ declare const Grok_3_Mini_Fast_Beta_Options: z.ZodObject<{
2584
+ modelName: z.ZodString;
2585
+ apiKey: z.ZodString;
2586
+ baseUrl: z.ZodOptional<z.ZodString>;
2587
+ completeChatUrl: z.ZodOptional<z.ZodString>;
2588
+ streamChatUrl: z.ZodOptional<z.ZodString>;
2589
+ }, "strip", z.ZodTypeAny, {
2590
+ modelName: string;
2591
+ apiKey: string;
2592
+ baseUrl?: string | undefined;
2593
+ completeChatUrl?: string | undefined;
2594
+ streamChatUrl?: string | undefined;
2595
+ }, {
2596
+ modelName: string;
2597
+ apiKey: string;
2598
+ baseUrl?: string | undefined;
2599
+ completeChatUrl?: string | undefined;
2600
+ streamChatUrl?: string | undefined;
2601
+ }>;
2602
+ type Grok_3_Mini_Fast_Beta_OptionsType = z.infer<typeof Grok_3_Mini_Fast_Beta_Options>;
2603
+ declare class Grok_3_Mini_Fast_Beta extends BaseChatModel {
2604
+ constructor(options: Grok_3_Mini_Fast_Beta_OptionsType);
2605
+ }
2606
+
2607
+ declare const Grok_4_Literal = "grok-4";
2608
+ declare const Grok_4_Schema: {
2609
+ name: string;
2610
+ description: string;
2611
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
2612
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
2613
+ maxInputTokens: number;
2614
+ maxOutputTokens: number;
2615
+ config: {
2616
+ def: Record<string, {
2617
+ type: "multi-string";
2618
+ param: string;
2619
+ title: string;
2620
+ description: string;
2621
+ max: number;
2622
+ } | {
2623
+ type: "object-schema";
2624
+ param: string;
2625
+ title: string;
2626
+ description: string;
2627
+ objectSchema?: any;
2628
+ } | {
2629
+ type: "paired-select";
2630
+ param: string;
2631
+ title: string;
2632
+ description: string;
2633
+ fields: [{
2634
+ label: string;
2635
+ key: string;
2636
+ choices: {
2637
+ value: string;
2638
+ label: string;
2639
+ }[];
2640
+ description?: string | undefined;
2641
+ }, {
2642
+ label: string;
2643
+ key: string;
2644
+ choices: {
2645
+ value: string;
2646
+ label: string;
2647
+ }[];
2648
+ description?: string | undefined;
2649
+ }];
2650
+ uniqueByField?: string | undefined;
2651
+ } | {
2652
+ type: "range";
2653
+ param: string;
2654
+ title: string;
2655
+ description: string;
2656
+ max: number;
2657
+ default: number;
2658
+ min: number;
2659
+ step: number;
2660
+ } | {
2661
+ type: "select-boolean";
2662
+ param: string;
2663
+ title: string;
2664
+ description: string;
2665
+ default: boolean | null;
2666
+ } | {
2667
+ type: "select-string";
2668
+ param: string;
2669
+ title: string;
2670
+ description: string;
2671
+ default: string;
2672
+ choices: string[];
2673
+ }>;
2674
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
2675
+ };
2676
+ price: {
2677
+ modelName: string;
2678
+ currency: string;
2679
+ tokenRanges: {
2680
+ minTokens: number;
2681
+ prices: {
2682
+ base: {
2683
+ inputPricePerMillion: number;
2684
+ outputPricePerMillion: number;
2685
+ };
2686
+ };
2687
+ maxTokens?: number | null | undefined;
2688
+ }[];
2689
+ };
2690
+ maxReasoningTokens?: number | undefined;
2691
+ };
2692
+ declare const Grok_4_Options: z.ZodObject<{
2693
+ modelName: z.ZodString;
2694
+ apiKey: z.ZodString;
2695
+ baseUrl: z.ZodOptional<z.ZodString>;
2696
+ completeChatUrl: z.ZodOptional<z.ZodString>;
2697
+ streamChatUrl: z.ZodOptional<z.ZodString>;
2698
+ }, "strip", z.ZodTypeAny, {
2699
+ modelName: string;
2700
+ apiKey: string;
2701
+ baseUrl?: string | undefined;
2702
+ completeChatUrl?: string | undefined;
2703
+ streamChatUrl?: string | undefined;
2704
+ }, {
2705
+ modelName: string;
2706
+ apiKey: string;
2707
+ baseUrl?: string | undefined;
2708
+ completeChatUrl?: string | undefined;
2709
+ streamChatUrl?: string | undefined;
2710
+ }>;
2711
+ type Grok_4_OptionsType = z.infer<typeof Grok_4_Options>;
2712
+ declare class Grok_4 extends BaseChatModel {
2713
+ constructor(options: Grok_4_OptionsType);
2714
+ }
2715
+
2716
+ declare const Grok_4_0709_Literal = "grok-4-0709";
2717
+ declare const Grok_4_0709_Schema: {
2718
+ name: string;
2719
+ description: string;
2720
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
2721
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
2722
+ maxInputTokens: number;
2723
+ maxOutputTokens: number;
2724
+ config: {
2725
+ def: Record<string, {
2726
+ type: "multi-string";
2727
+ param: string;
2728
+ title: string;
2729
+ description: string;
2730
+ max: number;
2731
+ } | {
2732
+ type: "object-schema";
2733
+ param: string;
2734
+ title: string;
2735
+ description: string;
2736
+ objectSchema?: any;
2737
+ } | {
2738
+ type: "paired-select";
2739
+ param: string;
2740
+ title: string;
2741
+ description: string;
2742
+ fields: [{
2743
+ label: string;
2744
+ key: string;
2745
+ choices: {
2746
+ value: string;
2747
+ label: string;
2748
+ }[];
2749
+ description?: string | undefined;
2750
+ }, {
2751
+ label: string;
2752
+ key: string;
2753
+ choices: {
2754
+ value: string;
2755
+ label: string;
2756
+ }[];
2757
+ description?: string | undefined;
2758
+ }];
2759
+ uniqueByField?: string | undefined;
2760
+ } | {
2761
+ type: "range";
2762
+ param: string;
2763
+ title: string;
2764
+ description: string;
2765
+ max: number;
2766
+ default: number;
2767
+ min: number;
2768
+ step: number;
2769
+ } | {
2770
+ type: "select-boolean";
2771
+ param: string;
2772
+ title: string;
2773
+ description: string;
2774
+ default: boolean | null;
2775
+ } | {
2776
+ type: "select-string";
2777
+ param: string;
2778
+ title: string;
2779
+ description: string;
2780
+ default: string;
2781
+ choices: string[];
2782
+ }>;
2783
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
2784
+ };
2785
+ price: {
2786
+ modelName: string;
2787
+ currency: string;
2788
+ tokenRanges: {
2789
+ minTokens: number;
2790
+ prices: {
2791
+ base: {
2792
+ inputPricePerMillion: number;
2793
+ outputPricePerMillion: number;
2794
+ };
2795
+ };
2796
+ maxTokens?: number | null | undefined;
2797
+ }[];
2798
+ };
2799
+ maxReasoningTokens?: number | undefined;
2800
+ };
2801
+ declare const Grok_4_0709_Options: z.ZodObject<{
2802
+ modelName: z.ZodString;
2803
+ apiKey: z.ZodString;
2804
+ baseUrl: z.ZodOptional<z.ZodString>;
2805
+ completeChatUrl: z.ZodOptional<z.ZodString>;
2806
+ streamChatUrl: z.ZodOptional<z.ZodString>;
2807
+ }, "strip", z.ZodTypeAny, {
2808
+ modelName: string;
2809
+ apiKey: string;
2810
+ baseUrl?: string | undefined;
2811
+ completeChatUrl?: string | undefined;
2812
+ streamChatUrl?: string | undefined;
2813
+ }, {
2814
+ modelName: string;
2815
+ apiKey: string;
2816
+ baseUrl?: string | undefined;
2817
+ completeChatUrl?: string | undefined;
2818
+ streamChatUrl?: string | undefined;
2819
+ }>;
2820
+ type Grok_4_0709_OptionsType = z.infer<typeof Grok_4_0709_Options>;
2821
+ declare class Grok_4_0709 extends BaseChatModel {
2822
+ constructor(options: Grok_4_0709_OptionsType);
2823
+ }
2824
+
2825
+ declare const Grok_4_Fast_Reasoning_Literal = "grok-4-fast-reasoning";
2826
+ declare const Grok_4_Fast_Reasoning_Schema: {
2827
+ name: string;
2828
+ description: string;
2829
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
2830
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
2831
+ maxInputTokens: number;
2832
+ maxOutputTokens: number;
2833
+ config: {
2834
+ def: Record<string, {
2835
+ type: "multi-string";
2836
+ param: string;
2837
+ title: string;
2838
+ description: string;
2839
+ max: number;
2840
+ } | {
2841
+ type: "object-schema";
2842
+ param: string;
2843
+ title: string;
2844
+ description: string;
2845
+ objectSchema?: any;
2846
+ } | {
2847
+ type: "paired-select";
2848
+ param: string;
2849
+ title: string;
2850
+ description: string;
2851
+ fields: [{
2852
+ label: string;
2853
+ key: string;
2854
+ choices: {
2855
+ value: string;
2856
+ label: string;
2857
+ }[];
2858
+ description?: string | undefined;
2859
+ }, {
2860
+ label: string;
2861
+ key: string;
2862
+ choices: {
2863
+ value: string;
2864
+ label: string;
2865
+ }[];
2866
+ description?: string | undefined;
2867
+ }];
2868
+ uniqueByField?: string | undefined;
2869
+ } | {
2870
+ type: "range";
2871
+ param: string;
2872
+ title: string;
2873
+ description: string;
2874
+ max: number;
2875
+ default: number;
2876
+ min: number;
2877
+ step: number;
2878
+ } | {
2879
+ type: "select-boolean";
2880
+ param: string;
2881
+ title: string;
2882
+ description: string;
2883
+ default: boolean | null;
2884
+ } | {
2885
+ type: "select-string";
2886
+ param: string;
2887
+ title: string;
2888
+ description: string;
2889
+ default: string;
2890
+ choices: string[];
2891
+ }>;
2892
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
2893
+ };
2894
+ price: {
2895
+ modelName: string;
2896
+ currency: string;
2897
+ tokenRanges: {
2898
+ minTokens: number;
2899
+ prices: {
2900
+ base: {
2901
+ inputPricePerMillion: number;
2902
+ outputPricePerMillion: number;
2903
+ };
2904
+ };
2905
+ maxTokens?: number | null | undefined;
2906
+ }[];
2907
+ };
2908
+ maxReasoningTokens?: number | undefined;
2909
+ };
2910
+ declare const Grok_4_Fast_Reasoning_Options: z.ZodObject<{
2911
+ modelName: z.ZodString;
2912
+ apiKey: z.ZodString;
2913
+ baseUrl: z.ZodOptional<z.ZodString>;
2914
+ completeChatUrl: z.ZodOptional<z.ZodString>;
2915
+ streamChatUrl: z.ZodOptional<z.ZodString>;
2916
+ }, "strip", z.ZodTypeAny, {
2917
+ modelName: string;
2918
+ apiKey: string;
2919
+ baseUrl?: string | undefined;
2920
+ completeChatUrl?: string | undefined;
2921
+ streamChatUrl?: string | undefined;
2922
+ }, {
2923
+ modelName: string;
2924
+ apiKey: string;
2925
+ baseUrl?: string | undefined;
2926
+ completeChatUrl?: string | undefined;
2927
+ streamChatUrl?: string | undefined;
2928
+ }>;
2929
+ type Grok_4_Fast_Reasoning_OptionsType = z.infer<typeof Grok_4_Fast_Reasoning_Options>;
2930
+ declare class Grok_4_Fast_Reasoning extends BaseChatModel {
2931
+ constructor(options: Grok_4_Fast_Reasoning_OptionsType);
2932
+ }
2933
+
2934
+ declare const Grok_4_Fast_Non_Reasoning_Literal = "grok-4-fast-non-reasoning";
2935
+ declare const Grok_4_Fast_Non_Reasoning_Schema: {
2936
+ name: string;
2937
+ description: string;
2938
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
2939
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
2940
+ maxInputTokens: number;
2941
+ maxOutputTokens: number;
2942
+ config: {
2943
+ def: Record<string, {
2944
+ type: "multi-string";
2945
+ param: string;
2946
+ title: string;
2947
+ description: string;
2948
+ max: number;
2949
+ } | {
2950
+ type: "object-schema";
2951
+ param: string;
2952
+ title: string;
2953
+ description: string;
2954
+ objectSchema?: any;
2955
+ } | {
2956
+ type: "paired-select";
2957
+ param: string;
2958
+ title: string;
2959
+ description: string;
2960
+ fields: [{
2961
+ label: string;
2962
+ key: string;
2963
+ choices: {
2964
+ value: string;
2965
+ label: string;
2966
+ }[];
2967
+ description?: string | undefined;
2968
+ }, {
2969
+ label: string;
2970
+ key: string;
2971
+ choices: {
2972
+ value: string;
2973
+ label: string;
2974
+ }[];
2975
+ description?: string | undefined;
2976
+ }];
2977
+ uniqueByField?: string | undefined;
2978
+ } | {
2979
+ type: "range";
2980
+ param: string;
2981
+ title: string;
2982
+ description: string;
2983
+ max: number;
2984
+ default: number;
2985
+ min: number;
2986
+ step: number;
2987
+ } | {
2988
+ type: "select-boolean";
2989
+ param: string;
2990
+ title: string;
2991
+ description: string;
2992
+ default: boolean | null;
2993
+ } | {
2994
+ type: "select-string";
2995
+ param: string;
2996
+ title: string;
2997
+ description: string;
2998
+ default: string;
2999
+ choices: string[];
3000
+ }>;
3001
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3002
+ };
3003
+ price: {
3004
+ modelName: string;
3005
+ currency: string;
3006
+ tokenRanges: {
3007
+ minTokens: number;
3008
+ prices: {
3009
+ base: {
3010
+ inputPricePerMillion: number;
3011
+ outputPricePerMillion: number;
3012
+ };
3013
+ };
3014
+ maxTokens?: number | null | undefined;
3015
+ }[];
3016
+ };
3017
+ maxReasoningTokens?: number | undefined;
3018
+ };
3019
+ declare const Grok_4_Fast_Non_Reasoning_Options: z.ZodObject<{
3020
+ modelName: z.ZodString;
3021
+ apiKey: z.ZodString;
3022
+ baseUrl: z.ZodOptional<z.ZodString>;
3023
+ completeChatUrl: z.ZodOptional<z.ZodString>;
3024
+ streamChatUrl: z.ZodOptional<z.ZodString>;
3025
+ }, "strip", z.ZodTypeAny, {
3026
+ modelName: string;
3027
+ apiKey: string;
3028
+ baseUrl?: string | undefined;
3029
+ completeChatUrl?: string | undefined;
3030
+ streamChatUrl?: string | undefined;
3031
+ }, {
3032
+ modelName: string;
3033
+ apiKey: string;
3034
+ baseUrl?: string | undefined;
3035
+ completeChatUrl?: string | undefined;
3036
+ streamChatUrl?: string | undefined;
3037
+ }>;
3038
+ type Grok_4_Fast_Non_Reasoning_OptionsType = z.infer<typeof Grok_4_Fast_Non_Reasoning_Options>;
3039
+ declare class Grok_4_Fast_Non_Reasoning extends BaseChatModel {
3040
+ constructor(options: Grok_4_Fast_Non_Reasoning_OptionsType);
3041
+ }
3042
+
3043
+ declare const Grok_4_1_Fast_Reasoning_Literal = "grok-4.1-fast-reasoning";
3044
+ declare const Grok_4_1_Fast_Reasoning_Schema: {
3045
+ name: string;
3046
+ description: string;
3047
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
3048
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
3049
+ maxInputTokens: number;
3050
+ maxOutputTokens: number;
3051
+ config: {
3052
+ def: Record<string, {
3053
+ type: "multi-string";
3054
+ param: string;
3055
+ title: string;
3056
+ description: string;
3057
+ max: number;
3058
+ } | {
3059
+ type: "object-schema";
3060
+ param: string;
3061
+ title: string;
3062
+ description: string;
3063
+ objectSchema?: any;
3064
+ } | {
3065
+ type: "paired-select";
3066
+ param: string;
3067
+ title: string;
3068
+ description: string;
3069
+ fields: [{
3070
+ label: string;
3071
+ key: string;
3072
+ choices: {
3073
+ value: string;
3074
+ label: string;
3075
+ }[];
3076
+ description?: string | undefined;
3077
+ }, {
3078
+ label: string;
3079
+ key: string;
3080
+ choices: {
3081
+ value: string;
3082
+ label: string;
3083
+ }[];
3084
+ description?: string | undefined;
3085
+ }];
3086
+ uniqueByField?: string | undefined;
3087
+ } | {
3088
+ type: "range";
3089
+ param: string;
3090
+ title: string;
3091
+ description: string;
3092
+ max: number;
3093
+ default: number;
3094
+ min: number;
3095
+ step: number;
3096
+ } | {
3097
+ type: "select-boolean";
3098
+ param: string;
3099
+ title: string;
3100
+ description: string;
3101
+ default: boolean | null;
3102
+ } | {
3103
+ type: "select-string";
3104
+ param: string;
3105
+ title: string;
3106
+ description: string;
3107
+ default: string;
3108
+ choices: string[];
3109
+ }>;
3110
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3111
+ };
3112
+ price: {
3113
+ modelName: string;
3114
+ currency: string;
3115
+ tokenRanges: {
3116
+ minTokens: number;
3117
+ prices: {
3118
+ base: {
3119
+ inputPricePerMillion: number;
3120
+ outputPricePerMillion: number;
3121
+ };
3122
+ };
3123
+ maxTokens?: number | null | undefined;
3124
+ }[];
3125
+ };
3126
+ maxReasoningTokens?: number | undefined;
3127
+ };
3128
+ declare const Grok_4_1_Fast_Reasoning_Options: z.ZodObject<{
3129
+ modelName: z.ZodString;
3130
+ apiKey: z.ZodString;
3131
+ baseUrl: z.ZodOptional<z.ZodString>;
3132
+ completeChatUrl: z.ZodOptional<z.ZodString>;
3133
+ streamChatUrl: z.ZodOptional<z.ZodString>;
3134
+ }, "strip", z.ZodTypeAny, {
3135
+ modelName: string;
3136
+ apiKey: string;
3137
+ baseUrl?: string | undefined;
3138
+ completeChatUrl?: string | undefined;
3139
+ streamChatUrl?: string | undefined;
3140
+ }, {
3141
+ modelName: string;
3142
+ apiKey: string;
3143
+ baseUrl?: string | undefined;
3144
+ completeChatUrl?: string | undefined;
3145
+ streamChatUrl?: string | undefined;
3146
+ }>;
3147
+ type Grok_4_1_Fast_Reasoning_OptionsType = z.infer<typeof Grok_4_1_Fast_Reasoning_Options>;
3148
+ declare class Grok_4_1_Fast_Reasoning extends BaseChatModel {
3149
+ constructor(options: Grok_4_1_Fast_Reasoning_OptionsType);
3150
+ }
3151
+
3152
+ declare const Grok_4_1_Fast_Non_Reasoning_Literal = "grok-4.1-fast-non-reasoning";
3153
+ declare const Grok_4_1_Fast_Non_Reasoning_Schema: {
3154
+ name: string;
3155
+ description: string;
3156
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
3157
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
3158
+ maxInputTokens: number;
3159
+ maxOutputTokens: number;
3160
+ config: {
3161
+ def: Record<string, {
3162
+ type: "multi-string";
3163
+ param: string;
3164
+ title: string;
3165
+ description: string;
3166
+ max: number;
3167
+ } | {
3168
+ type: "object-schema";
3169
+ param: string;
3170
+ title: string;
3171
+ description: string;
3172
+ objectSchema?: any;
3173
+ } | {
3174
+ type: "paired-select";
3175
+ param: string;
3176
+ title: string;
3177
+ description: string;
3178
+ fields: [{
3179
+ label: string;
3180
+ key: string;
3181
+ choices: {
3182
+ value: string;
3183
+ label: string;
3184
+ }[];
3185
+ description?: string | undefined;
3186
+ }, {
3187
+ label: string;
3188
+ key: string;
3189
+ choices: {
3190
+ value: string;
3191
+ label: string;
3192
+ }[];
3193
+ description?: string | undefined;
3194
+ }];
3195
+ uniqueByField?: string | undefined;
3196
+ } | {
3197
+ type: "range";
3198
+ param: string;
3199
+ title: string;
3200
+ description: string;
3201
+ max: number;
3202
+ default: number;
3203
+ min: number;
3204
+ step: number;
3205
+ } | {
3206
+ type: "select-boolean";
3207
+ param: string;
3208
+ title: string;
3209
+ description: string;
3210
+ default: boolean | null;
3211
+ } | {
3212
+ type: "select-string";
3213
+ param: string;
3214
+ title: string;
3215
+ description: string;
3216
+ default: string;
3217
+ choices: string[];
3218
+ }>;
3219
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3220
+ };
3221
+ price: {
3222
+ modelName: string;
3223
+ currency: string;
3224
+ tokenRanges: {
3225
+ minTokens: number;
3226
+ prices: {
3227
+ base: {
3228
+ inputPricePerMillion: number;
3229
+ outputPricePerMillion: number;
3230
+ };
3231
+ };
3232
+ maxTokens?: number | null | undefined;
3233
+ }[];
3234
+ };
3235
+ maxReasoningTokens?: number | undefined;
3236
+ };
3237
+ declare const Grok_4_1_Fast_Non_Reasoning_Options: z.ZodObject<{
3238
+ modelName: z.ZodString;
3239
+ apiKey: z.ZodString;
3240
+ baseUrl: z.ZodOptional<z.ZodString>;
3241
+ completeChatUrl: z.ZodOptional<z.ZodString>;
3242
+ streamChatUrl: z.ZodOptional<z.ZodString>;
3243
+ }, "strip", z.ZodTypeAny, {
3244
+ modelName: string;
3245
+ apiKey: string;
3246
+ baseUrl?: string | undefined;
3247
+ completeChatUrl?: string | undefined;
3248
+ streamChatUrl?: string | undefined;
3249
+ }, {
3250
+ modelName: string;
3251
+ apiKey: string;
3252
+ baseUrl?: string | undefined;
3253
+ completeChatUrl?: string | undefined;
3254
+ streamChatUrl?: string | undefined;
3255
+ }>;
3256
+ type Grok_4_1_Fast_Non_Reasoning_OptionsType = z.infer<typeof Grok_4_1_Fast_Non_Reasoning_Options>;
3257
+ declare class Grok_4_1_Fast_Non_Reasoning extends BaseChatModel {
3258
+ constructor(options: Grok_4_1_Fast_Non_Reasoning_OptionsType);
3259
+ }
3260
+
3261
+ declare const Grok_Code_Fast_1_Literal = "grok-code-fast-1";
3262
+ declare const Grok_Code_Fast_1_Schema: {
3263
+ name: string;
3264
+ description: string;
3265
+ roles: Partial<Record<"system" | "user" | "assistant" | "tool", string | undefined>>;
3266
+ modalities: ["text" | "tool-call" | "tool-response", ...("text" | "tool-call" | "tool-response")[]];
3267
+ maxInputTokens: number;
3268
+ maxOutputTokens: number;
3269
+ config: {
3270
+ def: Record<string, {
3271
+ type: "multi-string";
3272
+ param: string;
3273
+ title: string;
3274
+ description: string;
3275
+ max: number;
3276
+ } | {
3277
+ type: "object-schema";
3278
+ param: string;
3279
+ title: string;
3280
+ description: string;
3281
+ objectSchema?: any;
3282
+ } | {
3283
+ type: "paired-select";
3284
+ param: string;
3285
+ title: string;
3286
+ description: string;
3287
+ fields: [{
3288
+ label: string;
3289
+ key: string;
3290
+ choices: {
3291
+ value: string;
3292
+ label: string;
3293
+ }[];
3294
+ description?: string | undefined;
3295
+ }, {
3296
+ label: string;
3297
+ key: string;
3298
+ choices: {
3299
+ value: string;
3300
+ label: string;
3301
+ }[];
3302
+ description?: string | undefined;
3303
+ }];
3304
+ uniqueByField?: string | undefined;
3305
+ } | {
3306
+ type: "range";
3307
+ param: string;
3308
+ title: string;
3309
+ description: string;
3310
+ max: number;
3311
+ default: number;
3312
+ min: number;
3313
+ step: number;
3314
+ } | {
3315
+ type: "select-boolean";
3316
+ param: string;
3317
+ title: string;
3318
+ description: string;
3319
+ default: boolean | null;
3320
+ } | {
3321
+ type: "select-string";
3322
+ param: string;
3323
+ title: string;
3324
+ description: string;
3325
+ default: string;
3326
+ choices: string[];
3327
+ }>;
3328
+ schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3329
+ };
3330
+ price: {
3331
+ modelName: string;
3332
+ currency: string;
3333
+ tokenRanges: {
3334
+ minTokens: number;
3335
+ prices: {
3336
+ base: {
3337
+ inputPricePerMillion: number;
3338
+ outputPricePerMillion: number;
3339
+ };
3340
+ };
3341
+ maxTokens?: number | null | undefined;
3342
+ }[];
3343
+ };
3344
+ maxReasoningTokens?: number | undefined;
3345
+ };
3346
+ declare const Grok_Code_Fast_1_Options: z.ZodObject<{
3347
+ modelName: z.ZodString;
3348
+ apiKey: z.ZodString;
3349
+ baseUrl: z.ZodOptional<z.ZodString>;
3350
+ completeChatUrl: z.ZodOptional<z.ZodString>;
3351
+ streamChatUrl: z.ZodOptional<z.ZodString>;
3352
+ }, "strip", z.ZodTypeAny, {
3353
+ modelName: string;
3354
+ apiKey: string;
3355
+ baseUrl?: string | undefined;
3356
+ completeChatUrl?: string | undefined;
3357
+ streamChatUrl?: string | undefined;
3358
+ }, {
3359
+ modelName: string;
3360
+ apiKey: string;
3361
+ baseUrl?: string | undefined;
3362
+ completeChatUrl?: string | undefined;
3363
+ streamChatUrl?: string | undefined;
3364
+ }>;
3365
+ type Grok_Code_Fast_1_OptionsType = z.infer<typeof Grok_Code_Fast_1_Options>;
3366
+ declare class Grok_Code_Fast_1 extends BaseChatModel {
3367
+ constructor(options: Grok_Code_Fast_1_OptionsType);
3368
+ }
3369
+
3370
+ declare const ProviderLiteral = "xai";
3371
+ declare class XAI<C extends BaseChatModelOptionsType> implements ProviderV1<C, never> {
3372
+ readonly version: "v1";
3373
+ readonly name = "xai";
3374
+ static readonly baseUrl = "https://api.x.ai/v1";
3375
+ private readonly chatModelFactories;
3376
+ chatModelLiterals(): string[];
3377
+ chatModelSchemas(): Record<string, ChatModelSchemaType>;
3378
+ chatModel(options: C): ChatModelV1;
3379
+ embeddingModelLiterals(): string[];
3380
+ embeddingModelSchemas(): Record<string, never>;
3381
+ embeddingModel(): never;
3382
+ }
3383
+
3384
+ declare const ChatModelBaseConfigSchema: (maxOutputTokens: number, maxSequences: number) => z.ZodObject<{
3385
+ temperature: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3386
+ maxTokens: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3387
+ stop: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString, "many">>>;
3388
+ topP: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3389
+ frequencyPenalty: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3390
+ presencePenalty: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3391
+ seed: z.ZodEffects<z.ZodOptional<z.ZodDefault<z.ZodNumber>>, number | undefined, number | undefined>;
3392
+ logProbs: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodBoolean>>>;
3393
+ topLogProbs: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3394
+ toolChoice: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEnum<[string, ...string[]]>>>>;
3395
+ }, "strip", z.ZodTypeAny, {
3396
+ seed?: number | undefined;
3397
+ stop?: string[] | undefined;
3398
+ temperature?: number | undefined;
3399
+ toolChoice?: string | null | undefined;
3400
+ maxTokens?: number | undefined;
3401
+ topP?: number | undefined;
3402
+ presencePenalty?: number | undefined;
3403
+ frequencyPenalty?: number | undefined;
3404
+ logProbs?: boolean | null | undefined;
3405
+ topLogProbs?: number | undefined;
3406
+ }, {
3407
+ seed?: number | undefined;
3408
+ stop?: string[] | undefined;
3409
+ temperature?: number | undefined;
3410
+ toolChoice?: string | null | undefined;
3411
+ maxTokens?: number | undefined;
3412
+ topP?: number | undefined;
3413
+ presencePenalty?: number | undefined;
3414
+ frequencyPenalty?: number | undefined;
3415
+ logProbs?: boolean | null | undefined;
3416
+ topLogProbs?: number | undefined;
3417
+ }>;
3418
+ declare const ChatModelBaseConfigDef: (maxOutputTokens: number, maxSequences: number) => {
3419
+ readonly temperature: {
3420
+ type: "range";
3421
+ param: string;
3422
+ title: string;
3423
+ description: string;
3424
+ max: number;
3425
+ default: number;
3426
+ min: number;
3427
+ step: number;
3428
+ };
3429
+ readonly maxTokens: {
3430
+ type: "range";
3431
+ param: string;
3432
+ title: string;
3433
+ description: string;
3434
+ max: number;
3435
+ default: number;
3436
+ min: number;
3437
+ step: number;
3438
+ };
3439
+ readonly stop: {
3440
+ type: "multi-string";
3441
+ param: string;
3442
+ title: string;
3443
+ description: string;
3444
+ max: number;
3445
+ };
3446
+ readonly topP: {
3447
+ type: "range";
3448
+ param: string;
3449
+ title: string;
3450
+ description: string;
3451
+ max: number;
3452
+ default: number;
3453
+ min: number;
3454
+ step: number;
3455
+ };
3456
+ readonly frequencyPenalty: {
3457
+ type: "range";
3458
+ param: string;
3459
+ title: string;
3460
+ description: string;
3461
+ max: number;
3462
+ default: number;
3463
+ min: number;
3464
+ step: number;
3465
+ };
3466
+ readonly presencePenalty: {
3467
+ type: "range";
3468
+ param: string;
3469
+ title: string;
3470
+ description: string;
3471
+ max: number;
3472
+ default: number;
3473
+ min: number;
3474
+ step: number;
3475
+ };
3476
+ readonly seed: {
3477
+ type: "range";
3478
+ param: string;
3479
+ title: string;
3480
+ description: string;
3481
+ max: number;
3482
+ default: number;
3483
+ min: number;
3484
+ step: number;
3485
+ };
3486
+ readonly logProbs: {
3487
+ type: "select-boolean";
3488
+ param: string;
3489
+ title: string;
3490
+ description: string;
3491
+ default: boolean | null;
3492
+ };
3493
+ readonly topLogProbs: {
3494
+ type: "range";
3495
+ param: string;
3496
+ title: string;
3497
+ description: string;
3498
+ max: number;
3499
+ default: number;
3500
+ min: number;
3501
+ step: number;
3502
+ };
3503
+ readonly toolChoice: {
3504
+ type: "select-string";
3505
+ param: string;
3506
+ title: string;
3507
+ description: string;
3508
+ default: string;
3509
+ choices: string[];
3510
+ };
3511
+ };
3512
+
3513
+ declare const temperature: {
3514
+ def: {
3515
+ type: "range";
3516
+ param: string;
3517
+ title: string;
3518
+ description: string;
3519
+ max: number;
3520
+ default: number;
3521
+ min: number;
3522
+ step: number;
3523
+ };
3524
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
3525
+ };
3526
+ declare const maxTokens: (maxOutputTokens: number) => {
3527
+ def: {
3528
+ type: "range";
3529
+ param: string;
3530
+ title: string;
3531
+ description: string;
3532
+ max: number;
3533
+ default: number;
3534
+ min: number;
3535
+ step: number;
3536
+ };
3537
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
3538
+ };
3539
+ declare const stop: (maxSequences: number) => {
3540
+ def: {
3541
+ type: "multi-string";
3542
+ param: string;
3543
+ title: string;
3544
+ description: string;
3545
+ max: number;
3546
+ };
3547
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
3548
+ };
3549
+ declare const topP: {
3550
+ def: {
3551
+ type: "range";
3552
+ param: string;
3553
+ title: string;
3554
+ description: string;
3555
+ max: number;
3556
+ default: number;
3557
+ min: number;
3558
+ step: number;
3559
+ };
3560
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
3561
+ };
3562
+ declare const frequencyPenalty: {
3563
+ def: {
3564
+ type: "range";
3565
+ param: string;
3566
+ title: string;
3567
+ description: string;
3568
+ max: number;
3569
+ default: number;
3570
+ min: number;
3571
+ step: number;
3572
+ };
3573
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
3574
+ };
3575
+ declare const presencePenalty: {
3576
+ def: {
3577
+ type: "range";
3578
+ param: string;
3579
+ title: string;
3580
+ description: string;
3581
+ max: number;
3582
+ default: number;
3583
+ min: number;
3584
+ step: number;
3585
+ };
3586
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
3587
+ };
3588
+ declare const seed: {
3589
+ def: {
3590
+ type: "range";
3591
+ param: string;
3592
+ title: string;
3593
+ description: string;
3594
+ max: number;
3595
+ default: number;
3596
+ min: number;
3597
+ step: number;
3598
+ };
3599
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
3600
+ };
3601
+ declare const logProbs: {
3602
+ def: {
3603
+ type: "select-boolean";
3604
+ param: string;
3605
+ title: string;
3606
+ description: string;
3607
+ default: boolean | null;
3608
+ };
3609
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>;
3610
+ };
3611
+ declare const topLogProbs: {
3612
+ def: {
3613
+ type: "range";
3614
+ param: string;
3615
+ title: string;
3616
+ description: string;
3617
+ max: number;
3618
+ default: number;
3619
+ min: number;
3620
+ step: number;
3621
+ };
3622
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
3623
+ };
3624
+ declare const toolChoice: {
3625
+ def: {
3626
+ type: "select-string";
3627
+ param: string;
3628
+ title: string;
3629
+ description: string;
3630
+ default: string;
3631
+ choices: string[];
3632
+ };
3633
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
3634
+ };
3635
+ declare const reasoningEffort: {
3636
+ def: {
3637
+ type: "select-string";
3638
+ param: string;
3639
+ title: string;
3640
+ description: string;
3641
+ default: string;
3642
+ choices: string[];
3643
+ };
3644
+ schema: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
3645
+ };
3646
+
3647
+ declare const ChatModelReasoningConfigSchema: (maxOutputTokens: number) => z.ZodObject<{
3648
+ temperature: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3649
+ maxTokens: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3650
+ topP: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3651
+ seed: z.ZodEffects<z.ZodOptional<z.ZodDefault<z.ZodNumber>>, number | undefined, number | undefined>;
3652
+ logProbs: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodBoolean>>>;
3653
+ topLogProbs: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3654
+ toolChoice: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEnum<[string, ...string[]]>>>>;
3655
+ }, "strip", z.ZodTypeAny, {
3656
+ seed?: number | undefined;
3657
+ temperature?: number | undefined;
3658
+ toolChoice?: string | null | undefined;
3659
+ maxTokens?: number | undefined;
3660
+ topP?: number | undefined;
3661
+ logProbs?: boolean | null | undefined;
3662
+ topLogProbs?: number | undefined;
3663
+ }, {
3664
+ seed?: number | undefined;
3665
+ temperature?: number | undefined;
3666
+ toolChoice?: string | null | undefined;
3667
+ maxTokens?: number | undefined;
3668
+ topP?: number | undefined;
3669
+ logProbs?: boolean | null | undefined;
3670
+ topLogProbs?: number | undefined;
3671
+ }>;
3672
+ declare const ChatModelReasoningConfigDef: (maxOutputTokens: number) => {
3673
+ readonly temperature: {
3674
+ type: "range";
3675
+ param: string;
3676
+ title: string;
3677
+ description: string;
3678
+ max: number;
3679
+ default: number;
3680
+ min: number;
3681
+ step: number;
3682
+ };
3683
+ readonly maxTokens: {
3684
+ type: "range";
3685
+ param: string;
3686
+ title: string;
3687
+ description: string;
3688
+ max: number;
3689
+ default: number;
3690
+ min: number;
3691
+ step: number;
3692
+ };
3693
+ readonly topP: {
3694
+ type: "range";
3695
+ param: string;
3696
+ title: string;
3697
+ description: string;
3698
+ max: number;
3699
+ default: number;
3700
+ min: number;
3701
+ step: number;
3702
+ };
3703
+ readonly seed: {
3704
+ type: "range";
3705
+ param: string;
3706
+ title: string;
3707
+ description: string;
3708
+ max: number;
3709
+ default: number;
3710
+ min: number;
3711
+ step: number;
3712
+ };
3713
+ readonly logProbs: {
3714
+ type: "select-boolean";
3715
+ param: string;
3716
+ title: string;
3717
+ description: string;
3718
+ default: boolean | null;
3719
+ };
3720
+ readonly topLogProbs: {
3721
+ type: "range";
3722
+ param: string;
3723
+ title: string;
3724
+ description: string;
3725
+ max: number;
3726
+ default: number;
3727
+ min: number;
3728
+ step: number;
3729
+ };
3730
+ readonly toolChoice: {
3731
+ type: "select-string";
3732
+ param: string;
3733
+ title: string;
3734
+ description: string;
3735
+ default: string;
3736
+ choices: string[];
3737
+ };
3738
+ };
3739
+ declare const ChatModelMiniReasoningConfigSchema: (maxOutputTokens: number, _maxSequences: number) => z.ZodObject<{
3740
+ temperature: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3741
+ maxTokens: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3742
+ topP: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3743
+ seed: z.ZodEffects<z.ZodOptional<z.ZodDefault<z.ZodNumber>>, number | undefined, number | undefined>;
3744
+ logProbs: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodBoolean>>>;
3745
+ topLogProbs: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
3746
+ toolChoice: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEnum<[string, ...string[]]>>>>;
3747
+ reasoningEffort: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodEnum<[string, ...string[]]>>>>;
3748
+ }, "strip", z.ZodTypeAny, {
3749
+ seed?: number | undefined;
3750
+ temperature?: number | undefined;
3751
+ toolChoice?: string | null | undefined;
3752
+ maxTokens?: number | undefined;
3753
+ topP?: number | undefined;
3754
+ logProbs?: boolean | null | undefined;
3755
+ topLogProbs?: number | undefined;
3756
+ reasoningEffort?: string | null | undefined;
3757
+ }, {
3758
+ seed?: number | undefined;
3759
+ temperature?: number | undefined;
3760
+ toolChoice?: string | null | undefined;
3761
+ maxTokens?: number | undefined;
3762
+ topP?: number | undefined;
3763
+ logProbs?: boolean | null | undefined;
3764
+ topLogProbs?: number | undefined;
3765
+ reasoningEffort?: string | null | undefined;
3766
+ }>;
3767
+ declare const ChatModelMiniReasoningConfigDef: (maxOutputTokens: number) => {
3768
+ readonly temperature: {
3769
+ type: "range";
3770
+ param: string;
3771
+ title: string;
3772
+ description: string;
3773
+ max: number;
3774
+ default: number;
3775
+ min: number;
3776
+ step: number;
3777
+ };
3778
+ readonly maxTokens: {
3779
+ type: "range";
3780
+ param: string;
3781
+ title: string;
3782
+ description: string;
3783
+ max: number;
3784
+ default: number;
3785
+ min: number;
3786
+ step: number;
3787
+ };
3788
+ readonly topP: {
3789
+ type: "range";
3790
+ param: string;
3791
+ title: string;
3792
+ description: string;
3793
+ max: number;
3794
+ default: number;
3795
+ min: number;
3796
+ step: number;
3797
+ };
3798
+ readonly seed: {
3799
+ type: "range";
3800
+ param: string;
3801
+ title: string;
3802
+ description: string;
3803
+ max: number;
3804
+ default: number;
3805
+ min: number;
3806
+ step: number;
3807
+ };
3808
+ readonly logProbs: {
3809
+ type: "select-boolean";
3810
+ param: string;
3811
+ title: string;
3812
+ description: string;
3813
+ default: boolean | null;
3814
+ };
3815
+ readonly topLogProbs: {
3816
+ type: "range";
3817
+ param: string;
3818
+ title: string;
3819
+ description: string;
3820
+ max: number;
3821
+ default: number;
3822
+ min: number;
3823
+ step: number;
3824
+ };
3825
+ readonly toolChoice: {
3826
+ type: "select-string";
3827
+ param: string;
3828
+ title: string;
3829
+ description: string;
3830
+ default: string;
3831
+ choices: string[];
3832
+ };
3833
+ readonly reasoningEffort: {
3834
+ type: "select-string";
3835
+ param: string;
3836
+ title: string;
3837
+ description: string;
3838
+ default: string;
3839
+ choices: string[];
3840
+ };
3841
+ };
3842
+
3843
+ declare const ChatModelResponseSchemaConfigDef: (maxOutputTokens: number, maxSequences: number) => {
3844
+ responseFormat: {
3845
+ type: "select-string";
3846
+ param: string;
3847
+ title: string;
3848
+ description: string;
3849
+ default: string;
3850
+ choices: string[];
3851
+ };
3852
+ responseSchema: {
3853
+ type: "object-schema";
3854
+ param: string;
3855
+ title: string;
3856
+ description: string;
3857
+ objectSchema?: any;
3858
+ };
3859
+ temperature: {
3860
+ type: "range";
3861
+ param: string;
3862
+ title: string;
3863
+ description: string;
3864
+ max: number;
3865
+ default: number;
3866
+ min: number;
3867
+ step: number;
3868
+ };
3869
+ maxTokens: {
3870
+ type: "range";
3871
+ param: string;
3872
+ title: string;
3873
+ description: string;
3874
+ max: number;
3875
+ default: number;
3876
+ min: number;
3877
+ step: number;
3878
+ };
3879
+ stop: {
3880
+ type: "multi-string";
3881
+ param: string;
3882
+ title: string;
3883
+ description: string;
3884
+ max: number;
3885
+ };
3886
+ topP: {
3887
+ type: "range";
3888
+ param: string;
3889
+ title: string;
3890
+ description: string;
3891
+ max: number;
3892
+ default: number;
3893
+ min: number;
3894
+ step: number;
3895
+ };
3896
+ frequencyPenalty: {
3897
+ type: "range";
3898
+ param: string;
3899
+ title: string;
3900
+ description: string;
3901
+ max: number;
3902
+ default: number;
3903
+ min: number;
3904
+ step: number;
3905
+ };
3906
+ presencePenalty: {
3907
+ type: "range";
3908
+ param: string;
3909
+ title: string;
3910
+ description: string;
3911
+ max: number;
3912
+ default: number;
3913
+ min: number;
3914
+ step: number;
3915
+ };
3916
+ seed: {
3917
+ type: "range";
3918
+ param: string;
3919
+ title: string;
3920
+ description: string;
3921
+ max: number;
3922
+ default: number;
3923
+ min: number;
3924
+ step: number;
3925
+ };
3926
+ logProbs: {
3927
+ type: "select-boolean";
3928
+ param: string;
3929
+ title: string;
3930
+ description: string;
3931
+ default: boolean | null;
3932
+ };
3933
+ topLogProbs: {
3934
+ type: "range";
3935
+ param: string;
3936
+ title: string;
3937
+ description: string;
3938
+ max: number;
3939
+ default: number;
3940
+ min: number;
3941
+ step: number;
3942
+ };
3943
+ toolChoice: {
3944
+ type: "select-string";
3945
+ param: string;
3946
+ title: string;
3947
+ description: string;
3948
+ default: string;
3949
+ choices: string[];
3950
+ };
3951
+ };
3952
+ declare const ChatModelResponseSchemaConfigSchema: (maxOutputTokens: number, maxSequences: number) => zod.ZodObject<zod.objectUtil.extendShape<{
3953
+ temperature: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
3954
+ maxTokens: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
3955
+ stop: zod.ZodOptional<zod.ZodDefault<zod.ZodArray<zod.ZodString, "many">>>;
3956
+ topP: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
3957
+ frequencyPenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
3958
+ presencePenalty: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
3959
+ seed: zod.ZodEffects<zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>, number | undefined, number | undefined>;
3960
+ logProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodBoolean>>>;
3961
+ topLogProbs: zod.ZodOptional<zod.ZodDefault<zod.ZodNumber>>;
3962
+ toolChoice: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
3963
+ }, {
3964
+ responseFormat: zod.ZodOptional<zod.ZodDefault<zod.ZodNullable<zod.ZodEnum<[string, ...string[]]>>>>;
3965
+ responseSchema: zod.ZodOptional<zod.ZodObject<zod.ZodRawShape, zod.UnknownKeysParam, zod.ZodTypeAny, {
3966
+ [x: string]: any;
3967
+ }, {
3968
+ [x: string]: any;
3969
+ }>>;
3970
+ }>, "strip", zod.ZodTypeAny, {
3971
+ seed?: number | undefined;
3972
+ stop?: string[] | undefined;
3973
+ temperature?: number | undefined;
3974
+ responseFormat?: string | null | undefined;
3975
+ responseSchema?: {
3976
+ [x: string]: any;
3977
+ } | undefined;
3978
+ toolChoice?: string | null | undefined;
3979
+ maxTokens?: number | undefined;
3980
+ topP?: number | undefined;
3981
+ presencePenalty?: number | undefined;
3982
+ frequencyPenalty?: number | undefined;
3983
+ logProbs?: boolean | null | undefined;
3984
+ topLogProbs?: number | undefined;
3985
+ }, {
3986
+ seed?: number | undefined;
3987
+ stop?: string[] | undefined;
3988
+ temperature?: number | undefined;
3989
+ responseFormat?: string | null | undefined;
3990
+ responseSchema?: {
3991
+ [x: string]: any;
3992
+ } | undefined;
3993
+ toolChoice?: string | null | undefined;
3994
+ maxTokens?: number | undefined;
3995
+ topP?: number | undefined;
3996
+ presencePenalty?: number | undefined;
3997
+ frequencyPenalty?: number | undefined;
3998
+ logProbs?: boolean | null | undefined;
3999
+ topLogProbs?: number | undefined;
4000
+ }>;
4001
+
4002
+ declare const index_ChatModelBaseConfigDef: typeof ChatModelBaseConfigDef;
4003
+ declare const index_ChatModelBaseConfigSchema: typeof ChatModelBaseConfigSchema;
4004
+ declare const index_ChatModelMiniReasoningConfigDef: typeof ChatModelMiniReasoningConfigDef;
4005
+ declare const index_ChatModelMiniReasoningConfigSchema: typeof ChatModelMiniReasoningConfigSchema;
4006
+ declare const index_ChatModelReasoningConfigDef: typeof ChatModelReasoningConfigDef;
4007
+ declare const index_ChatModelReasoningConfigSchema: typeof ChatModelReasoningConfigSchema;
4008
+ declare const index_ChatModelResponseSchemaConfigDef: typeof ChatModelResponseSchemaConfigDef;
4009
+ declare const index_ChatModelResponseSchemaConfigSchema: typeof ChatModelResponseSchemaConfigSchema;
4010
+ declare const index_frequencyPenalty: typeof frequencyPenalty;
4011
+ declare const index_logProbs: typeof logProbs;
4012
+ declare const index_maxTokens: typeof maxTokens;
4013
+ declare const index_presencePenalty: typeof presencePenalty;
4014
+ declare const index_reasoningEffort: typeof reasoningEffort;
4015
+ declare const index_seed: typeof seed;
4016
+ declare const index_stop: typeof stop;
4017
+ declare const index_temperature: typeof temperature;
4018
+ declare const index_toolChoice: typeof toolChoice;
4019
+ declare const index_topLogProbs: typeof topLogProbs;
4020
+ declare const index_topP: typeof topP;
4021
+ declare namespace index {
4022
+ export { index_ChatModelBaseConfigDef as ChatModelBaseConfigDef, index_ChatModelBaseConfigSchema as ChatModelBaseConfigSchema, index_ChatModelMiniReasoningConfigDef as ChatModelMiniReasoningConfigDef, index_ChatModelMiniReasoningConfigSchema as ChatModelMiniReasoningConfigSchema, index_ChatModelReasoningConfigDef as ChatModelReasoningConfigDef, index_ChatModelReasoningConfigSchema as ChatModelReasoningConfigSchema, index_ChatModelResponseSchemaConfigDef as ChatModelResponseSchemaConfigDef, index_ChatModelResponseSchemaConfigSchema as ChatModelResponseSchemaConfigSchema, index_frequencyPenalty as frequencyPenalty, index_logProbs as logProbs, index_maxTokens as maxTokens, index_presencePenalty as presencePenalty, index_reasoningEffort as reasoningEffort, index_seed as seed, index_stop as stop, index_temperature as temperature, index_toolChoice as toolChoice, index_topLogProbs as topLogProbs, index_topP as topP };
4023
+ }
4024
+
4025
+ export { BaseChatModel, BaseChatModelOptions, type BaseChatModelOptionsType, Grok_2, Grok_2_1212, Grok_2_1212_Literal, Grok_2_1212_Options, type Grok_2_1212_OptionsType, Grok_2_1212_Schema, Grok_2_Latest, Grok_2_Latest_Literal, Grok_2_Latest_Options, type Grok_2_Latest_OptionsType, Grok_2_Latest_Schema, Grok_2_Literal, Grok_2_Options, type Grok_2_OptionsType, Grok_2_Schema, Grok_3_Beta, Grok_3_Beta_Literal, Grok_3_Beta_Options, type Grok_3_Beta_OptionsType, Grok_3_Beta_Schema, Grok_3_Fast_Beta, Grok_3_Fast_Beta_Literal, Grok_3_Fast_Beta_Options, type Grok_3_Fast_Beta_OptionsType, Grok_3_Fast_Beta_Schema, Grok_3_Mini_Beta, Grok_3_Mini_Beta_Literal, Grok_3_Mini_Beta_Options, type Grok_3_Mini_Beta_OptionsType, Grok_3_Mini_Beta_Schema, Grok_3_Mini_Fast_Beta, Grok_3_Mini_Fast_Beta_Literal, Grok_3_Mini_Fast_Beta_Options, type Grok_3_Mini_Fast_Beta_OptionsType, Grok_3_Mini_Fast_Beta_Schema, Grok_4, Grok_4_0709, Grok_4_0709_Literal, Grok_4_0709_Options, type Grok_4_0709_OptionsType, Grok_4_0709_Schema, Grok_4_1_Fast_Non_Reasoning, Grok_4_1_Fast_Non_Reasoning_Literal, Grok_4_1_Fast_Non_Reasoning_Options, type Grok_4_1_Fast_Non_Reasoning_OptionsType, Grok_4_1_Fast_Non_Reasoning_Schema, Grok_4_1_Fast_Reasoning, Grok_4_1_Fast_Reasoning_Literal, Grok_4_1_Fast_Reasoning_Options, type Grok_4_1_Fast_Reasoning_OptionsType, Grok_4_1_Fast_Reasoning_Schema, Grok_4_Fast_Non_Reasoning, Grok_4_Fast_Non_Reasoning_Literal, Grok_4_Fast_Non_Reasoning_Options, type Grok_4_Fast_Non_Reasoning_OptionsType, Grok_4_Fast_Non_Reasoning_Schema, Grok_4_Fast_Reasoning, Grok_4_Fast_Reasoning_Literal, Grok_4_Fast_Reasoning_Options, type Grok_4_Fast_Reasoning_OptionsType, Grok_4_Fast_Reasoning_Schema, Grok_4_Literal, Grok_4_Options, type Grok_4_OptionsType, Grok_4_Schema, Grok_Code_Fast_1, Grok_Code_Fast_1_Literal, Grok_Code_Fast_1_Options, type Grok_Code_Fast_1_OptionsType, Grok_Code_Fast_1_Schema, ProviderLiteral, XAI, index as XAIChatModelConfigs, XAIChatModelModalities, XAIChatModelModalitiesEnum, XAIChatModelRoles, XAIChatModelRolesMap, XAIChatModelTextModalities, XAIChatModelTextModalitiesEnum, XAIChatModelTextToolModalities, XAIChatModelTextToolModalitiesEnum, XAIChatRequest, XAIChatRequestAssistantMessage, type XAIChatRequestAssistantMessageType, XAIChatRequestImageContent, type XAIChatRequestImageContentType, XAIChatRequestMessage, type XAIChatRequestMessageType, XAIChatRequestResponseFormat, type XAIChatRequestResponseFormatType, XAIChatRequestSystemMessage, type XAIChatRequestSystemMessageType, XAIChatRequestTextContent, type XAIChatRequestTextContentType, XAIChatRequestTool, XAIChatRequestToolCallContent, type XAIChatRequestToolCallContentType, XAIChatRequestToolChoiceEnum, type XAIChatRequestToolChoiceEnumType, XAIChatRequestToolChoiceFunction, type XAIChatRequestToolChoiceFunctionType, XAIChatRequestToolMessage, type XAIChatRequestToolMessageType, type XAIChatRequestToolType, type XAIChatRequestType, XAIChatRequestUserMessage, type XAIChatRequestUserMessageType, XAICompleteChatResponse, type XAICompleteChatResponseType, XAIStreamChatResponse, type XAIStreamChatResponseType, XAIToolCallsCompleteChatResponse, XAIToolCallsStreamChatResponse };