@node-llm/core 0.8.0 → 1.0.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.
Files changed (100) hide show
  1. package/README.md +64 -67
  2. package/dist/chat/Chat.d.ts +3 -2
  3. package/dist/chat/Chat.d.ts.map +1 -1
  4. package/dist/chat/Chat.js +4 -4
  5. package/dist/chat/ChatStream.d.ts +25 -0
  6. package/dist/chat/ChatStream.d.ts.map +1 -0
  7. package/dist/chat/ChatStream.js +93 -0
  8. package/dist/config.d.ts +4 -2
  9. package/dist/config.d.ts.map +1 -1
  10. package/dist/config.js +2 -0
  11. package/dist/embedding/Embedding.d.ts +1 -1
  12. package/dist/embedding/Embedding.d.ts.map +1 -1
  13. package/dist/errors/index.d.ts +22 -0
  14. package/dist/errors/index.d.ts.map +1 -1
  15. package/dist/errors/index.js +32 -0
  16. package/dist/index.d.ts +4 -1
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +4 -1
  19. package/dist/llm.d.ts +2 -1
  20. package/dist/llm.d.ts.map +1 -1
  21. package/dist/llm.js +26 -28
  22. package/dist/models/ModelRegistry.d.ts +4 -0
  23. package/dist/models/ModelRegistry.d.ts.map +1 -1
  24. package/dist/models/ModelRegistry.js +15 -0
  25. package/dist/models/models.d.ts +729 -60
  26. package/dist/models/models.d.ts.map +1 -1
  27. package/dist/models/models.js +24375 -2312
  28. package/dist/models/types.d.ts +3 -3
  29. package/dist/models/types.d.ts.map +1 -1
  30. package/dist/models/types.js +3 -0
  31. package/dist/providers/BaseProvider.d.ts +21 -0
  32. package/dist/providers/BaseProvider.d.ts.map +1 -0
  33. package/dist/providers/BaseProvider.js +28 -0
  34. package/dist/providers/Provider.d.ts +19 -1
  35. package/dist/providers/Provider.d.ts.map +1 -1
  36. package/dist/providers/anthropic/AnthropicProvider.d.ts +6 -7
  37. package/dist/providers/anthropic/AnthropicProvider.d.ts.map +1 -1
  38. package/dist/providers/anthropic/AnthropicProvider.js +16 -13
  39. package/dist/providers/anthropic/Streaming.d.ts +1 -1
  40. package/dist/providers/anthropic/Streaming.d.ts.map +1 -1
  41. package/dist/providers/anthropic/Streaming.js +80 -54
  42. package/dist/providers/deepseek/Capabilities.js +1 -1
  43. package/dist/providers/deepseek/DeepSeekProvider.d.ts +5 -1
  44. package/dist/providers/deepseek/DeepSeekProvider.d.ts.map +1 -1
  45. package/dist/providers/deepseek/DeepSeekProvider.js +15 -1
  46. package/dist/providers/deepseek/Streaming.d.ts +1 -1
  47. package/dist/providers/deepseek/Streaming.d.ts.map +1 -1
  48. package/dist/providers/deepseek/Streaming.js +80 -48
  49. package/dist/providers/gemini/Capabilities.d.ts.map +1 -1
  50. package/dist/providers/gemini/Embeddings.d.ts +1 -1
  51. package/dist/providers/gemini/Embeddings.d.ts.map +1 -1
  52. package/dist/providers/gemini/GeminiProvider.d.ts +6 -4
  53. package/dist/providers/gemini/GeminiProvider.d.ts.map +1 -1
  54. package/dist/providers/gemini/GeminiProvider.js +14 -4
  55. package/dist/providers/gemini/Streaming.d.ts +1 -1
  56. package/dist/providers/gemini/Streaming.d.ts.map +1 -1
  57. package/dist/providers/gemini/Streaming.js +62 -39
  58. package/dist/providers/ollama/Capabilities.d.ts.map +1 -1
  59. package/dist/providers/ollama/Capabilities.js +5 -1
  60. package/dist/providers/ollama/OllamaProvider.d.ts +1 -0
  61. package/dist/providers/ollama/OllamaProvider.d.ts.map +1 -1
  62. package/dist/providers/ollama/OllamaProvider.js +3 -0
  63. package/dist/providers/openai/Embedding.d.ts +1 -1
  64. package/dist/providers/openai/Embedding.d.ts.map +1 -1
  65. package/dist/providers/openai/OpenAIProvider.d.ts +6 -3
  66. package/dist/providers/openai/OpenAIProvider.d.ts.map +1 -1
  67. package/dist/providers/openai/OpenAIProvider.js +15 -1
  68. package/dist/providers/openai/Streaming.d.ts +1 -1
  69. package/dist/providers/openai/Streaming.d.ts.map +1 -1
  70. package/dist/providers/openai/Streaming.js +75 -43
  71. package/dist/providers/openrouter/Capabilities.d.ts +13 -0
  72. package/dist/providers/openrouter/Capabilities.d.ts.map +1 -0
  73. package/dist/providers/openrouter/Capabilities.js +67 -0
  74. package/dist/providers/openrouter/Models.d.ts +11 -0
  75. package/dist/providers/openrouter/Models.d.ts.map +1 -0
  76. package/dist/providers/openrouter/Models.js +88 -0
  77. package/dist/providers/openrouter/OpenRouterProvider.d.ts +21 -0
  78. package/dist/providers/openrouter/OpenRouterProvider.d.ts.map +1 -0
  79. package/dist/providers/openrouter/OpenRouterProvider.js +24 -0
  80. package/dist/providers/openrouter/index.d.ts +11 -0
  81. package/dist/providers/openrouter/index.d.ts.map +1 -0
  82. package/dist/providers/openrouter/index.js +26 -0
  83. package/dist/providers/registry.d.ts +11 -1
  84. package/dist/providers/registry.d.ts.map +1 -1
  85. package/dist/providers/registry.js +14 -0
  86. package/dist/streaming/Stream.d.ts +29 -0
  87. package/dist/streaming/Stream.d.ts.map +1 -0
  88. package/dist/streaming/Stream.js +67 -0
  89. package/dist/utils/FileLoader.d.ts.map +1 -1
  90. package/dist/utils/FileLoader.js +34 -3
  91. package/dist/utils/logger.d.ts +13 -0
  92. package/dist/utils/logger.d.ts.map +1 -0
  93. package/dist/utils/logger.js +24 -0
  94. package/package.json +1 -1
  95. package/dist/chat/Stream.d.ts +0 -21
  96. package/dist/chat/Stream.d.ts.map +0 -1
  97. package/dist/chat/Stream.js +0 -73
  98. package/dist/providers/Embedding.d.ts +0 -20
  99. package/dist/providers/Embedding.d.ts.map +0 -1
  100. package/dist/providers/Embedding.js +0 -1
@@ -29,11 +29,52 @@ export declare const modelsData: ({
29
29
  embeddings?: undefined;
30
30
  };
31
31
  metadata: {
32
+ object?: undefined;
33
+ owned_by?: undefined;
32
34
  version?: undefined;
33
35
  description?: undefined;
34
36
  supported_generation_methods?: undefined;
37
+ architecture?: undefined;
38
+ top_provider?: undefined;
39
+ per_request_limits?: undefined;
40
+ supported_parameters?: undefined;
41
+ };
42
+ } | {
43
+ id: string;
44
+ name: string;
45
+ provider: string;
46
+ family: string;
47
+ created_at: null;
48
+ context_window: number;
49
+ max_output_tokens: number;
50
+ knowledge_cutoff: null;
51
+ modalities: {
52
+ input: string[];
53
+ output: string[];
54
+ };
55
+ capabilities: string[];
56
+ pricing: {
57
+ text_tokens: {
58
+ standard: {
59
+ input_per_million: number;
60
+ output_per_million: number;
61
+ reasoning_output_per_million?: undefined;
62
+ cached_input_per_million?: undefined;
63
+ };
64
+ batch?: undefined;
65
+ };
66
+ embeddings?: undefined;
67
+ };
68
+ metadata: {
35
69
  object?: undefined;
36
70
  owned_by?: undefined;
71
+ version?: undefined;
72
+ description?: undefined;
73
+ supported_generation_methods?: undefined;
74
+ architecture?: undefined;
75
+ top_provider?: undefined;
76
+ per_request_limits?: undefined;
77
+ supported_parameters?: undefined;
37
78
  };
38
79
  } | {
39
80
  id: string;
@@ -66,11 +107,15 @@ export declare const modelsData: ({
66
107
  embeddings?: undefined;
67
108
  };
68
109
  metadata: {
110
+ object?: undefined;
111
+ owned_by?: undefined;
69
112
  version?: undefined;
70
113
  description?: undefined;
71
114
  supported_generation_methods?: undefined;
72
- object?: undefined;
73
- owned_by?: undefined;
115
+ architecture?: undefined;
116
+ top_provider?: undefined;
117
+ per_request_limits?: undefined;
118
+ supported_parameters?: undefined;
74
119
  };
75
120
  } | {
76
121
  id: string;
@@ -90,20 +135,24 @@ export declare const modelsData: ({
90
135
  text_tokens: {
91
136
  standard: {
92
137
  input_per_million: number;
138
+ cached_input_per_million: number;
93
139
  output_per_million: number;
94
140
  reasoning_output_per_million?: undefined;
95
- cached_input_per_million?: undefined;
96
141
  };
97
142
  batch?: undefined;
98
143
  };
99
144
  embeddings?: undefined;
100
145
  };
101
146
  metadata: {
147
+ object: string;
148
+ owned_by: string;
102
149
  version?: undefined;
103
150
  description?: undefined;
104
151
  supported_generation_methods?: undefined;
105
- object?: undefined;
106
- owned_by?: undefined;
152
+ architecture?: undefined;
153
+ top_provider?: undefined;
154
+ per_request_limits?: undefined;
155
+ supported_parameters?: undefined;
107
156
  };
108
157
  } | {
109
158
  id: string;
@@ -111,7 +160,7 @@ export declare const modelsData: ({
111
160
  provider: string;
112
161
  family: string;
113
162
  created_at: null;
114
- context_window: number;
163
+ context_window: null;
115
164
  max_output_tokens: number;
116
165
  knowledge_cutoff: null;
117
166
  modalities: {
@@ -124,11 +173,15 @@ export declare const modelsData: ({
124
173
  embeddings?: undefined;
125
174
  };
126
175
  metadata: {
127
- version: string;
128
- description: string;
129
- supported_generation_methods: string[];
130
- object?: undefined;
131
- owned_by?: undefined;
176
+ object: string;
177
+ owned_by: string;
178
+ version?: undefined;
179
+ description?: undefined;
180
+ supported_generation_methods?: undefined;
181
+ architecture?: undefined;
182
+ top_provider?: undefined;
183
+ per_request_limits?: undefined;
184
+ supported_parameters?: undefined;
132
185
  };
133
186
  } | {
134
187
  id: string;
@@ -159,6 +212,10 @@ export declare const modelsData: ({
159
212
  supported_generation_methods: string[];
160
213
  object?: undefined;
161
214
  owned_by?: undefined;
215
+ architecture?: undefined;
216
+ top_provider?: undefined;
217
+ per_request_limits?: undefined;
218
+ supported_parameters?: undefined;
162
219
  };
163
220
  } | {
164
221
  id: string;
@@ -196,6 +253,10 @@ export declare const modelsData: ({
196
253
  supported_generation_methods: string[];
197
254
  object?: undefined;
198
255
  owned_by?: undefined;
256
+ architecture?: undefined;
257
+ top_provider?: undefined;
258
+ per_request_limits?: undefined;
259
+ supported_parameters?: undefined;
199
260
  };
200
261
  } | {
201
262
  id: string;
@@ -233,6 +294,10 @@ export declare const modelsData: ({
233
294
  supported_generation_methods: string[];
234
295
  object?: undefined;
235
296
  owned_by?: undefined;
297
+ architecture?: undefined;
298
+ top_provider?: undefined;
299
+ per_request_limits?: undefined;
300
+ supported_parameters?: undefined;
236
301
  };
237
302
  } | {
238
303
  id: string;
@@ -275,6 +340,10 @@ export declare const modelsData: ({
275
340
  supported_generation_methods: string[];
276
341
  object?: undefined;
277
342
  owned_by?: undefined;
343
+ architecture?: undefined;
344
+ top_provider?: undefined;
345
+ per_request_limits?: undefined;
346
+ supported_parameters?: undefined;
278
347
  };
279
348
  } | {
280
349
  id: string;
@@ -312,6 +381,10 @@ export declare const modelsData: ({
312
381
  supported_generation_methods: string[];
313
382
  object?: undefined;
314
383
  owned_by?: undefined;
384
+ architecture?: undefined;
385
+ top_provider?: undefined;
386
+ per_request_limits?: undefined;
387
+ supported_parameters?: undefined;
315
388
  };
316
389
  } | {
317
390
  id: string;
@@ -319,32 +392,57 @@ export declare const modelsData: ({
319
392
  provider: string;
320
393
  family: string;
321
394
  created_at: null;
322
- context_window: null;
395
+ context_window: number;
323
396
  max_output_tokens: number;
324
397
  knowledge_cutoff: null;
325
398
  modalities: {
326
399
  input: string[];
327
400
  output: string[];
328
401
  };
329
- capabilities: never[];
402
+ capabilities: string[];
330
403
  pricing: {
331
- text_tokens: {
332
- standard: {
333
- input_per_million: number;
334
- output_per_million: number;
335
- reasoning_output_per_million?: undefined;
336
- cached_input_per_million?: undefined;
337
- };
338
- batch?: undefined;
339
- };
404
+ text_tokens?: undefined;
340
405
  embeddings?: undefined;
341
406
  };
342
407
  metadata: {
343
- object: string;
344
- owned_by: string;
408
+ version: string;
409
+ description: string;
410
+ supported_generation_methods: string[];
411
+ object?: undefined;
412
+ owned_by?: undefined;
413
+ architecture?: undefined;
414
+ top_provider?: undefined;
415
+ per_request_limits?: undefined;
416
+ supported_parameters?: undefined;
417
+ };
418
+ } | {
419
+ id: string;
420
+ name: string;
421
+ provider: string;
422
+ family: string;
423
+ created_at: null;
424
+ context_window: number;
425
+ max_output_tokens: number;
426
+ knowledge_cutoff: null;
427
+ modalities: {
428
+ input: string[];
429
+ output: string[];
430
+ };
431
+ capabilities: string[];
432
+ pricing: {
433
+ text_tokens?: undefined;
434
+ embeddings?: undefined;
435
+ };
436
+ metadata: {
437
+ object?: undefined;
438
+ owned_by?: undefined;
345
439
  version?: undefined;
346
440
  description?: undefined;
347
441
  supported_generation_methods?: undefined;
442
+ architecture?: undefined;
443
+ top_provider?: undefined;
444
+ per_request_limits?: undefined;
445
+ supported_parameters?: undefined;
348
446
  };
349
447
  } | {
350
448
  id: string;
@@ -352,21 +450,21 @@ export declare const modelsData: ({
352
450
  provider: string;
353
451
  family: string;
354
452
  created_at: null;
355
- context_window: number;
453
+ context_window: null;
356
454
  max_output_tokens: number;
357
455
  knowledge_cutoff: null;
358
456
  modalities: {
359
457
  input: string[];
360
458
  output: string[];
361
459
  };
362
- capabilities: string[];
460
+ capabilities: never[];
363
461
  pricing: {
364
462
  text_tokens: {
365
463
  standard: {
366
464
  input_per_million: number;
367
- cached_input_per_million: number;
368
465
  output_per_million: number;
369
466
  reasoning_output_per_million?: undefined;
467
+ cached_input_per_million?: undefined;
370
468
  };
371
469
  batch?: undefined;
372
470
  };
@@ -378,6 +476,10 @@ export declare const modelsData: ({
378
476
  version?: undefined;
379
477
  description?: undefined;
380
478
  supported_generation_methods?: undefined;
479
+ architecture?: undefined;
480
+ top_provider?: undefined;
481
+ per_request_limits?: undefined;
482
+ supported_parameters?: undefined;
381
483
  };
382
484
  } | {
383
485
  id: string;
@@ -410,11 +512,15 @@ export declare const modelsData: ({
410
512
  embeddings?: undefined;
411
513
  };
412
514
  metadata: {
515
+ object?: undefined;
516
+ owned_by?: undefined;
413
517
  version?: undefined;
414
518
  description?: undefined;
415
519
  supported_generation_methods?: undefined;
416
- object?: undefined;
417
- owned_by?: undefined;
520
+ architecture?: undefined;
521
+ top_provider?: undefined;
522
+ per_request_limits?: undefined;
523
+ supported_parameters?: undefined;
418
524
  };
419
525
  } | {
420
526
  id: string;
@@ -440,6 +546,10 @@ export declare const modelsData: ({
440
546
  version?: undefined;
441
547
  description?: undefined;
442
548
  supported_generation_methods?: undefined;
549
+ architecture?: undefined;
550
+ top_provider?: undefined;
551
+ per_request_limits?: undefined;
552
+ supported_parameters?: undefined;
443
553
  };
444
554
  } | {
445
555
  id: string;
@@ -477,6 +587,10 @@ export declare const modelsData: ({
477
587
  version?: undefined;
478
588
  description?: undefined;
479
589
  supported_generation_methods?: undefined;
590
+ architecture?: undefined;
591
+ top_provider?: undefined;
592
+ per_request_limits?: undefined;
593
+ supported_parameters?: undefined;
480
594
  };
481
595
  } | {
482
596
  id: string;
@@ -510,6 +624,10 @@ export declare const modelsData: ({
510
624
  version?: undefined;
511
625
  description?: undefined;
512
626
  supported_generation_methods?: undefined;
627
+ architecture?: undefined;
628
+ top_provider?: undefined;
629
+ per_request_limits?: undefined;
630
+ supported_parameters?: undefined;
513
631
  };
514
632
  } | {
515
633
  id: string;
@@ -547,6 +665,10 @@ export declare const modelsData: ({
547
665
  version?: undefined;
548
666
  description?: undefined;
549
667
  supported_generation_methods?: undefined;
668
+ architecture?: undefined;
669
+ top_provider?: undefined;
670
+ per_request_limits?: undefined;
671
+ supported_parameters?: undefined;
550
672
  };
551
673
  } | {
552
674
  id: string;
@@ -579,11 +701,15 @@ export declare const modelsData: ({
579
701
  embeddings?: undefined;
580
702
  };
581
703
  metadata: {
704
+ object?: undefined;
705
+ owned_by?: undefined;
582
706
  version?: undefined;
583
707
  description?: undefined;
584
708
  supported_generation_methods?: undefined;
585
- object?: undefined;
586
- owned_by?: undefined;
709
+ architecture?: undefined;
710
+ top_provider?: undefined;
711
+ per_request_limits?: undefined;
712
+ supported_parameters?: undefined;
587
713
  };
588
714
  } | {
589
715
  id: string;
@@ -617,6 +743,10 @@ export declare const modelsData: ({
617
743
  version?: undefined;
618
744
  description?: undefined;
619
745
  supported_generation_methods?: undefined;
746
+ architecture?: undefined;
747
+ top_provider?: undefined;
748
+ per_request_limits?: undefined;
749
+ supported_parameters?: undefined;
620
750
  };
621
751
  } | {
622
752
  id: string;
@@ -650,6 +780,10 @@ export declare const modelsData: ({
650
780
  version?: undefined;
651
781
  description?: undefined;
652
782
  supported_generation_methods?: undefined;
783
+ architecture?: undefined;
784
+ top_provider?: undefined;
785
+ per_request_limits?: undefined;
786
+ supported_parameters?: undefined;
653
787
  };
654
788
  } | {
655
789
  id: string;
@@ -683,6 +817,10 @@ export declare const modelsData: ({
683
817
  version?: undefined;
684
818
  description?: undefined;
685
819
  supported_generation_methods?: undefined;
820
+ architecture?: undefined;
821
+ top_provider?: undefined;
822
+ per_request_limits?: undefined;
823
+ supported_parameters?: undefined;
686
824
  };
687
825
  } | {
688
826
  id: string;
@@ -716,31 +854,10 @@ export declare const modelsData: ({
716
854
  version?: undefined;
717
855
  description?: undefined;
718
856
  supported_generation_methods?: undefined;
719
- };
720
- } | {
721
- id: string;
722
- name: string;
723
- provider: string;
724
- family: string;
725
- created_at: null;
726
- context_window: number;
727
- max_output_tokens: number;
728
- knowledge_cutoff: null;
729
- modalities: {
730
- input: string[];
731
- output: string[];
732
- };
733
- capabilities: string[];
734
- pricing: {
735
- text_tokens?: undefined;
736
- embeddings?: undefined;
737
- };
738
- metadata: {
739
- version?: undefined;
740
- description?: undefined;
741
- supported_generation_methods?: undefined;
742
- object?: undefined;
743
- owned_by?: undefined;
857
+ architecture?: undefined;
858
+ top_provider?: undefined;
859
+ per_request_limits?: undefined;
860
+ supported_parameters?: undefined;
744
861
  };
745
862
  } | {
746
863
  id: string;
@@ -769,11 +886,15 @@ export declare const modelsData: ({
769
886
  embeddings?: undefined;
770
887
  };
771
888
  metadata: {
889
+ object?: undefined;
890
+ owned_by?: undefined;
772
891
  version?: undefined;
773
892
  description?: undefined;
774
893
  supported_generation_methods?: undefined;
775
- object?: undefined;
776
- owned_by?: undefined;
894
+ architecture?: undefined;
895
+ top_provider?: undefined;
896
+ per_request_limits?: undefined;
897
+ supported_parameters?: undefined;
777
898
  };
778
899
  } | {
779
900
  id: string;
@@ -799,6 +920,10 @@ export declare const modelsData: ({
799
920
  version?: undefined;
800
921
  description?: undefined;
801
922
  supported_generation_methods?: undefined;
923
+ architecture?: undefined;
924
+ top_provider?: undefined;
925
+ per_request_limits?: undefined;
926
+ supported_parameters?: undefined;
802
927
  };
803
928
  } | {
804
929
  id: string;
@@ -843,6 +968,10 @@ export declare const modelsData: ({
843
968
  version?: undefined;
844
969
  description?: undefined;
845
970
  supported_generation_methods?: undefined;
971
+ architecture?: undefined;
972
+ top_provider?: undefined;
973
+ per_request_limits?: undefined;
974
+ supported_parameters?: undefined;
846
975
  };
847
976
  } | {
848
977
  id: string;
@@ -863,11 +992,15 @@ export declare const modelsData: ({
863
992
  embeddings?: undefined;
864
993
  };
865
994
  metadata: {
995
+ object?: undefined;
996
+ owned_by?: undefined;
866
997
  version?: undefined;
867
998
  description?: undefined;
868
999
  supported_generation_methods?: undefined;
869
- object?: undefined;
870
- owned_by?: undefined;
1000
+ architecture?: undefined;
1001
+ top_provider?: undefined;
1002
+ per_request_limits?: undefined;
1003
+ supported_parameters?: undefined;
871
1004
  };
872
1005
  } | {
873
1006
  id: string;
@@ -901,6 +1034,10 @@ export declare const modelsData: ({
901
1034
  version?: undefined;
902
1035
  description?: undefined;
903
1036
  supported_generation_methods?: undefined;
1037
+ architecture?: undefined;
1038
+ top_provider?: undefined;
1039
+ per_request_limits?: undefined;
1040
+ supported_parameters?: undefined;
904
1041
  };
905
1042
  } | {
906
1043
  id: string;
@@ -934,6 +1071,10 @@ export declare const modelsData: ({
934
1071
  version?: undefined;
935
1072
  description?: undefined;
936
1073
  supported_generation_methods?: undefined;
1074
+ architecture?: undefined;
1075
+ top_provider?: undefined;
1076
+ per_request_limits?: undefined;
1077
+ supported_parameters?: undefined;
937
1078
  };
938
1079
  } | {
939
1080
  id: string;
@@ -967,6 +1108,534 @@ export declare const modelsData: ({
967
1108
  version?: undefined;
968
1109
  description?: undefined;
969
1110
  supported_generation_methods?: undefined;
1111
+ architecture?: undefined;
1112
+ top_provider?: undefined;
1113
+ per_request_limits?: undefined;
1114
+ supported_parameters?: undefined;
1115
+ };
1116
+ } | {
1117
+ id: string;
1118
+ name: string;
1119
+ provider: string;
1120
+ family: string;
1121
+ created_at: string;
1122
+ context_window: number;
1123
+ max_output_tokens: number;
1124
+ knowledge_cutoff: null;
1125
+ modalities: {
1126
+ input: string[];
1127
+ output: string[];
1128
+ };
1129
+ capabilities: string[];
1130
+ pricing: {
1131
+ text_tokens: {
1132
+ standard: {
1133
+ input_per_million: number;
1134
+ output_per_million: number;
1135
+ reasoning_output_per_million?: undefined;
1136
+ cached_input_per_million?: undefined;
1137
+ };
1138
+ batch?: undefined;
1139
+ };
1140
+ embeddings?: undefined;
1141
+ };
1142
+ metadata: {
1143
+ description: string;
1144
+ architecture: {
1145
+ modality: string;
1146
+ input_modalities: string[];
1147
+ output_modalities: string[];
1148
+ tokenizer: string;
1149
+ instruct_type: null;
1150
+ };
1151
+ top_provider: {
1152
+ context_length: number;
1153
+ max_completion_tokens: number;
1154
+ is_moderated: boolean;
1155
+ };
1156
+ per_request_limits: null;
1157
+ supported_parameters: string[];
1158
+ object?: undefined;
1159
+ owned_by?: undefined;
1160
+ version?: undefined;
1161
+ supported_generation_methods?: undefined;
1162
+ };
1163
+ } | {
1164
+ id: string;
1165
+ name: string;
1166
+ provider: string;
1167
+ family: string;
1168
+ created_at: string;
1169
+ context_window: number;
1170
+ max_output_tokens: number;
1171
+ knowledge_cutoff: null;
1172
+ modalities: {
1173
+ input: string[];
1174
+ output: string[];
1175
+ };
1176
+ capabilities: string[];
1177
+ pricing: {
1178
+ text_tokens: {
1179
+ standard: {
1180
+ input_per_million: number;
1181
+ output_per_million: number;
1182
+ reasoning_output_per_million?: undefined;
1183
+ cached_input_per_million?: undefined;
1184
+ };
1185
+ batch?: undefined;
1186
+ };
1187
+ embeddings?: undefined;
1188
+ };
1189
+ metadata: {
1190
+ description: string;
1191
+ architecture: {
1192
+ modality: string;
1193
+ input_modalities: string[];
1194
+ output_modalities: string[];
1195
+ tokenizer: string;
1196
+ instruct_type: string;
1197
+ };
1198
+ top_provider: {
1199
+ context_length: number;
1200
+ max_completion_tokens: number;
1201
+ is_moderated: boolean;
1202
+ };
1203
+ per_request_limits: null;
1204
+ supported_parameters: string[];
1205
+ object?: undefined;
1206
+ owned_by?: undefined;
1207
+ version?: undefined;
1208
+ supported_generation_methods?: undefined;
1209
+ };
1210
+ } | {
1211
+ id: string;
1212
+ name: string;
1213
+ provider: string;
1214
+ family: string;
1215
+ created_at: string;
1216
+ context_window: number;
1217
+ max_output_tokens: number;
1218
+ knowledge_cutoff: null;
1219
+ modalities: {
1220
+ input: string[];
1221
+ output: string[];
1222
+ };
1223
+ capabilities: string[];
1224
+ pricing: {
1225
+ text_tokens: {
1226
+ standard: {
1227
+ input_per_million: number;
1228
+ output_per_million: number;
1229
+ cached_input_per_million: number;
1230
+ reasoning_output_per_million?: undefined;
1231
+ };
1232
+ batch?: undefined;
1233
+ };
1234
+ embeddings?: undefined;
1235
+ };
1236
+ metadata: {
1237
+ description: string;
1238
+ architecture: {
1239
+ modality: string;
1240
+ input_modalities: string[];
1241
+ output_modalities: string[];
1242
+ tokenizer: string;
1243
+ instruct_type: null;
1244
+ };
1245
+ top_provider: {
1246
+ context_length: number;
1247
+ max_completion_tokens: number;
1248
+ is_moderated: boolean;
1249
+ };
1250
+ per_request_limits: null;
1251
+ supported_parameters: string[];
1252
+ object?: undefined;
1253
+ owned_by?: undefined;
1254
+ version?: undefined;
1255
+ supported_generation_methods?: undefined;
1256
+ };
1257
+ } | {
1258
+ id: string;
1259
+ name: string;
1260
+ provider: string;
1261
+ family: string;
1262
+ created_at: string;
1263
+ context_window: number;
1264
+ max_output_tokens: null;
1265
+ knowledge_cutoff: null;
1266
+ modalities: {
1267
+ input: string[];
1268
+ output: string[];
1269
+ };
1270
+ capabilities: string[];
1271
+ pricing: {
1272
+ text_tokens: {
1273
+ standard: {
1274
+ input_per_million: number;
1275
+ output_per_million: number;
1276
+ reasoning_output_per_million?: undefined;
1277
+ cached_input_per_million?: undefined;
1278
+ };
1279
+ batch?: undefined;
1280
+ };
1281
+ embeddings?: undefined;
1282
+ };
1283
+ metadata: {
1284
+ description: string;
1285
+ architecture: {
1286
+ modality: string;
1287
+ input_modalities: string[];
1288
+ output_modalities: string[];
1289
+ tokenizer: string;
1290
+ instruct_type: null;
1291
+ };
1292
+ top_provider: {
1293
+ context_length: number;
1294
+ max_completion_tokens: null;
1295
+ is_moderated: boolean;
1296
+ };
1297
+ per_request_limits: null;
1298
+ supported_parameters: string[];
1299
+ object?: undefined;
1300
+ owned_by?: undefined;
1301
+ version?: undefined;
1302
+ supported_generation_methods?: undefined;
1303
+ };
1304
+ } | {
1305
+ id: string;
1306
+ name: string;
1307
+ provider: string;
1308
+ family: string;
1309
+ created_at: string;
1310
+ context_window: number;
1311
+ max_output_tokens: null;
1312
+ knowledge_cutoff: null;
1313
+ modalities: {
1314
+ input: string[];
1315
+ output: string[];
1316
+ };
1317
+ capabilities: string[];
1318
+ pricing: {
1319
+ text_tokens?: undefined;
1320
+ embeddings?: undefined;
1321
+ };
1322
+ metadata: {
1323
+ description: string;
1324
+ architecture: {
1325
+ modality: string;
1326
+ input_modalities: string[];
1327
+ output_modalities: string[];
1328
+ tokenizer: string;
1329
+ instruct_type: string;
1330
+ };
1331
+ top_provider: {
1332
+ context_length: number;
1333
+ max_completion_tokens: null;
1334
+ is_moderated: boolean;
1335
+ };
1336
+ per_request_limits: null;
1337
+ supported_parameters: string[];
1338
+ object?: undefined;
1339
+ owned_by?: undefined;
1340
+ version?: undefined;
1341
+ supported_generation_methods?: undefined;
1342
+ };
1343
+ } | {
1344
+ id: string;
1345
+ name: string;
1346
+ provider: string;
1347
+ family: string;
1348
+ created_at: string;
1349
+ context_window: number;
1350
+ max_output_tokens: null;
1351
+ knowledge_cutoff: null;
1352
+ modalities: {
1353
+ input: string[];
1354
+ output: string[];
1355
+ };
1356
+ capabilities: string[];
1357
+ pricing: {
1358
+ text_tokens?: undefined;
1359
+ embeddings?: undefined;
1360
+ };
1361
+ metadata: {
1362
+ description: string;
1363
+ architecture: {
1364
+ modality: string;
1365
+ input_modalities: string[];
1366
+ output_modalities: string[];
1367
+ tokenizer: string;
1368
+ instruct_type: null;
1369
+ };
1370
+ top_provider: {
1371
+ context_length: null;
1372
+ max_completion_tokens: null;
1373
+ is_moderated: boolean;
1374
+ };
1375
+ per_request_limits: null;
1376
+ supported_parameters: never[];
1377
+ object?: undefined;
1378
+ owned_by?: undefined;
1379
+ version?: undefined;
1380
+ supported_generation_methods?: undefined;
1381
+ };
1382
+ } | {
1383
+ id: string;
1384
+ name: string;
1385
+ provider: string;
1386
+ family: string;
1387
+ created_at: string;
1388
+ context_window: number;
1389
+ max_output_tokens: null;
1390
+ knowledge_cutoff: null;
1391
+ modalities: {
1392
+ input: string[];
1393
+ output: string[];
1394
+ };
1395
+ capabilities: string[];
1396
+ pricing: {
1397
+ text_tokens?: undefined;
1398
+ embeddings?: undefined;
1399
+ };
1400
+ metadata: {
1401
+ description: string;
1402
+ architecture: {
1403
+ modality: string;
1404
+ input_modalities: string[];
1405
+ output_modalities: string[];
1406
+ tokenizer: string;
1407
+ instruct_type: null;
1408
+ };
1409
+ top_provider: {
1410
+ context_length: number;
1411
+ max_completion_tokens: null;
1412
+ is_moderated: boolean;
1413
+ };
1414
+ per_request_limits: null;
1415
+ supported_parameters: string[];
1416
+ object?: undefined;
1417
+ owned_by?: undefined;
1418
+ version?: undefined;
1419
+ supported_generation_methods?: undefined;
1420
+ };
1421
+ } | {
1422
+ id: string;
1423
+ name: string;
1424
+ provider: string;
1425
+ family: string;
1426
+ created_at: string;
1427
+ context_window: number;
1428
+ max_output_tokens: null;
1429
+ knowledge_cutoff: null;
1430
+ modalities: {
1431
+ input: string[];
1432
+ output: string[];
1433
+ };
1434
+ capabilities: string[];
1435
+ pricing: {
1436
+ text_tokens: {
1437
+ standard: {
1438
+ input_per_million: number;
1439
+ output_per_million: number;
1440
+ reasoning_output_per_million?: undefined;
1441
+ cached_input_per_million?: undefined;
1442
+ };
1443
+ batch?: undefined;
1444
+ };
1445
+ embeddings?: undefined;
1446
+ };
1447
+ metadata: {
1448
+ description: string;
1449
+ architecture: {
1450
+ modality: string;
1451
+ input_modalities: string[];
1452
+ output_modalities: string[];
1453
+ tokenizer: string;
1454
+ instruct_type: string;
1455
+ };
1456
+ top_provider: {
1457
+ context_length: number;
1458
+ max_completion_tokens: null;
1459
+ is_moderated: boolean;
1460
+ };
1461
+ per_request_limits: null;
1462
+ supported_parameters: string[];
1463
+ object?: undefined;
1464
+ owned_by?: undefined;
1465
+ version?: undefined;
1466
+ supported_generation_methods?: undefined;
1467
+ };
1468
+ } | {
1469
+ id: string;
1470
+ name: string;
1471
+ provider: string;
1472
+ family: string;
1473
+ created_at: string;
1474
+ context_window: number;
1475
+ max_output_tokens: number;
1476
+ knowledge_cutoff: null;
1477
+ modalities: {
1478
+ input: string[];
1479
+ output: string[];
1480
+ };
1481
+ capabilities: string[];
1482
+ pricing: {
1483
+ text_tokens?: undefined;
1484
+ embeddings?: undefined;
1485
+ };
1486
+ metadata: {
1487
+ description: string;
1488
+ architecture: {
1489
+ modality: string;
1490
+ input_modalities: string[];
1491
+ output_modalities: string[];
1492
+ tokenizer: string;
1493
+ instruct_type: string;
1494
+ };
1495
+ top_provider: {
1496
+ context_length: number;
1497
+ max_completion_tokens: number;
1498
+ is_moderated: boolean;
1499
+ };
1500
+ per_request_limits: null;
1501
+ supported_parameters: string[];
1502
+ object?: undefined;
1503
+ owned_by?: undefined;
1504
+ version?: undefined;
1505
+ supported_generation_methods?: undefined;
1506
+ };
1507
+ } | {
1508
+ id: string;
1509
+ name: string;
1510
+ provider: string;
1511
+ family: string;
1512
+ created_at: string;
1513
+ context_window: number;
1514
+ max_output_tokens: number;
1515
+ knowledge_cutoff: null;
1516
+ modalities: {
1517
+ input: string[];
1518
+ output: string[];
1519
+ };
1520
+ capabilities: string[];
1521
+ pricing: {
1522
+ text_tokens?: undefined;
1523
+ embeddings?: undefined;
1524
+ };
1525
+ metadata: {
1526
+ description: string;
1527
+ architecture: {
1528
+ modality: string;
1529
+ input_modalities: string[];
1530
+ output_modalities: string[];
1531
+ tokenizer: string;
1532
+ instruct_type: null;
1533
+ };
1534
+ top_provider: {
1535
+ context_length: number;
1536
+ max_completion_tokens: number;
1537
+ is_moderated: boolean;
1538
+ };
1539
+ per_request_limits: null;
1540
+ supported_parameters: string[];
1541
+ object?: undefined;
1542
+ owned_by?: undefined;
1543
+ version?: undefined;
1544
+ supported_generation_methods?: undefined;
1545
+ };
1546
+ } | {
1547
+ id: string;
1548
+ name: string;
1549
+ provider: string;
1550
+ family: string;
1551
+ created_at: string;
1552
+ context_window: number;
1553
+ max_output_tokens: null;
1554
+ knowledge_cutoff: null;
1555
+ modalities: {
1556
+ input: string[];
1557
+ output: string[];
1558
+ };
1559
+ capabilities: string[];
1560
+ pricing: {
1561
+ text_tokens: {
1562
+ standard: {
1563
+ input_per_million: number;
1564
+ output_per_million: number;
1565
+ reasoning_output_per_million: number;
1566
+ cached_input_per_million?: undefined;
1567
+ };
1568
+ batch?: undefined;
1569
+ };
1570
+ embeddings?: undefined;
1571
+ };
1572
+ metadata: {
1573
+ description: string;
1574
+ architecture: {
1575
+ modality: string;
1576
+ input_modalities: string[];
1577
+ output_modalities: string[];
1578
+ tokenizer: string;
1579
+ instruct_type: string;
1580
+ };
1581
+ top_provider: {
1582
+ context_length: number;
1583
+ max_completion_tokens: null;
1584
+ is_moderated: boolean;
1585
+ };
1586
+ per_request_limits: null;
1587
+ supported_parameters: string[];
1588
+ object?: undefined;
1589
+ owned_by?: undefined;
1590
+ version?: undefined;
1591
+ supported_generation_methods?: undefined;
1592
+ };
1593
+ } | {
1594
+ id: string;
1595
+ name: string;
1596
+ provider: string;
1597
+ family: string;
1598
+ created_at: string;
1599
+ context_window: number;
1600
+ max_output_tokens: null;
1601
+ knowledge_cutoff: null;
1602
+ modalities: {
1603
+ input: string[];
1604
+ output: string[];
1605
+ };
1606
+ capabilities: string[];
1607
+ pricing: {
1608
+ text_tokens: {
1609
+ standard: {
1610
+ input_per_million: number;
1611
+ output_per_million: number;
1612
+ cached_input_per_million: number;
1613
+ reasoning_output_per_million?: undefined;
1614
+ };
1615
+ batch?: undefined;
1616
+ };
1617
+ embeddings?: undefined;
1618
+ };
1619
+ metadata: {
1620
+ description: string;
1621
+ architecture: {
1622
+ modality: string;
1623
+ input_modalities: string[];
1624
+ output_modalities: string[];
1625
+ tokenizer: string;
1626
+ instruct_type: null;
1627
+ };
1628
+ top_provider: {
1629
+ context_length: number;
1630
+ max_completion_tokens: null;
1631
+ is_moderated: boolean;
1632
+ };
1633
+ per_request_limits: null;
1634
+ supported_parameters: string[];
1635
+ object?: undefined;
1636
+ owned_by?: undefined;
1637
+ version?: undefined;
1638
+ supported_generation_methods?: undefined;
970
1639
  };
971
1640
  })[];
972
1641
  //# sourceMappingURL=models.d.ts.map