write-language 0.1.21 → 0.1.23

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.
@@ -1,1336 +1,1336 @@
1
- /**
2
- * List of default models for the chat providers and a list of models
3
- * @property {string} provider - The provider name
4
- * @property {string} docs - The documentation URL for the model
5
- * @property {string} api_key - The API key url for the model
6
- * @property {string} default - The default model for the chat provider
7
- * @property {Object[]} models - The list of models available for the chat provider
8
- * @category Generate
9
- */
10
- export const LANGUAGE_MODELS = [
11
- {
12
- provider: "NVIDIA",
13
- docs: "https://docs.api.nvidia.com/nim/reference/llm-apis",
14
- api_key: "https://build.nvidia.com/settings/api-keys",
15
- default: "nvidia/nemotron-3-super-120b-a12b",
16
- models: [
17
- {
18
- name: "Nemotron 3 Super 120B",
19
- id: "nvidia/nemotron-3-super-120b-a12b",
20
- contextLength: 1000000,
21
- },
22
- {
23
- name: "Moonshot AI Kimi K2.5",
24
- id: "moonshotai/kimi-k2.5",
25
- contextLength: 256000,
26
- },
27
- {
28
- name: "Nemotron Nano 12B v2 VL",
29
- id: "nvidia/nemotron-nano-12b-v2-vl",
30
- contextLength: 128000,
31
- },
32
- {
33
- name: "DeepSeek V3 (Open MoE 1M Context)",
34
- id: "deepseek/deepseek-v3",
35
- contextLength: 1000000,
36
- },
37
- {
38
- name: "Llama Nemotron",
39
- id: "nvidia/llama-nemotron",
40
- contextLength: 128000,
41
- },
42
- {
43
- name: "Qwen2.5",
44
- id: "qwen/qwen2.5",
45
- contextLength: 128000,
46
- },
47
- {
48
- name: "Llama 4",
49
- id: "meta/llama-4",
50
- contextLength: 128000,
51
- },
52
- ],
53
- },
54
- {
55
- provider: "Cloudflare",
56
- docs: "https://developers.cloudflare.com/workers-ai/",
57
- api_key: "https://dash.cloudflare.com/profile/api-tokens",
58
- default: "llama-4-scout-17b-16e-instruct",
59
- models: [
60
- {
61
- name: "Llama 4 Scout 17B 16E Instruct",
62
- id: "llama-4-scout-17b-16e-instruct",
63
- contextLength: 128000,
64
- },
65
- {
66
- name: "Llama 3.3 70B Instruct FP8 Fast",
67
- id: "llama-3.3-70b-instruct-fp8-fast",
68
- contextLength: 128000,
69
- },
70
- {
71
- name: "Llama 3.1 8B Instruct Fast",
72
- id: "llama-3.1-8b-instruct-fast",
73
- contextLength: 128000,
74
- },
75
- {
76
- name: "Gemma 3 12B IT",
77
- id: "gemma-3-12b-it",
78
- contextLength: 128000,
79
- },
80
- {
81
- name: "Mistral Small 3.1 24B Instruct",
82
- id: "mistral-small-3.1-24b-instruct",
83
- contextLength: 128000,
84
- },
85
- {
86
- name: "QwQ 32B",
87
- id: "qwq-32b",
88
- contextLength: 32768,
89
- },
90
- {
91
- name: "Qwen2.5 Coder 32B Instruct",
92
- id: "qwen2.5-coder-32b-instruct",
93
- contextLength: 32768,
94
- },
95
- {
96
- name: "Llama Guard 3 8B",
97
- id: "llama-guard-3-8b",
98
- contextLength: 8192,
99
- },
100
- {
101
- name: "DeepSeek R1 Distill Qwen 32B",
102
- id: "deepseek-r1-distill-qwen-32b",
103
- contextLength: 32768,
104
- },
105
- {
106
- name: "Llama 3.2 1B Instruct",
107
- id: "llama-3.2-1b-instruct",
108
- contextLength: 131072,
109
- },
110
- {
111
- name: "Llama 3.2 3B Instruct",
112
- id: "llama-3.2-3b-instruct",
113
- contextLength: 131072,
114
- },
115
- {
116
- name: "Llama 3.2 11B Vision Instruct",
117
- id: "llama-3.2-11b-vision-instruct",
118
- contextLength: 131072,
119
- },
120
- {
121
- name: "Llama 3.1 8B Instruct AWQ",
122
- id: "llama-3.1-8b-instruct-awq",
123
- contextLength: 128000,
124
- },
125
- {
126
- name: "Llama 3.1 8B Instruct FP8",
127
- id: "llama-3.1-8b-instruct-fp8",
128
- contextLength: 128000,
129
- },
130
- {
131
- name: "MeloTTS",
132
- id: "melotts",
133
- contextLength: 1024,
134
- },
135
- {
136
- name: "Llama 3.1 8B Instruct",
137
- id: "llama-3.1-8b-instruct",
138
- contextLength: 128000,
139
- },
140
- {
141
- name: "Meta Llama 3 8B Instruct",
142
- id: "meta-llama-3-8b-instruct",
143
- contextLength: 8192,
144
- },
145
- {
146
- name: "Whisper Large V3 Turbo",
147
- id: "whisper-large-v3-turbo",
148
- contextLength: 448000,
149
- },
150
- {
151
- name: "Llama 3 8B Instruct AWQ",
152
- id: "llama-3-8b-instruct-awq",
153
- contextLength: 8192,
154
- },
155
- {
156
- name: "LLaVA 1.5 7B HF",
157
- id: "llava-1.5-7b-hf",
158
- contextLength: 4096,
159
- },
160
- {
161
- name: "Una Cybertron 7B V2 BF16",
162
- id: "una-cybertron-7b-v2-bf16",
163
- contextLength: 32768,
164
- },
165
- {
166
- name: "Whisper Tiny EN",
167
- id: "whisper-tiny-en",
168
- contextLength: 448000,
169
- },
170
- {
171
- name: "Llama 3 8B Instruct",
172
- id: "llama-3-8b-instruct",
173
- contextLength: 8192,
174
- },
175
- {
176
- name: "Mistral 7B Instruct v0.2",
177
- id: "mistral-7b-instruct-v0.2",
178
- contextLength: 32768,
179
- },
180
- {
181
- name: "Gemma 7B IT LoRA",
182
- id: "gemma-7b-it-lora",
183
- contextLength: 8192,
184
- },
185
- {
186
- name: "Gemma 2B IT LoRA",
187
- id: "gemma-2b-it-lora",
188
- contextLength: 8192,
189
- },
190
- {
191
- name: "Llama 2 7B Chat HF LoRA",
192
- id: "llama-2-7b-chat-hf-lora",
193
- contextLength: 4096,
194
- },
195
- {
196
- name: "Gemma 7B IT",
197
- id: "gemma-7b-it",
198
- contextLength: 8192,
199
- },
200
- {
201
- name: "Starling LM 7B Beta",
202
- id: "starling-lm-7b-beta",
203
- contextLength: 8192,
204
- },
205
- {
206
- name: "Hermes 2 Pro Mistral 7B",
207
- id: "hermes-2-pro-mistral-7b",
208
- contextLength: 32768,
209
- },
210
- {
211
- name: "Mistral 7B Instruct v0.2 LoRA",
212
- id: "mistral-7b-instruct-v0.2-lora",
213
- contextLength: 32768,
214
- },
215
- {
216
- name: "Qwen1.5 1.8B Chat",
217
- id: "qwen1.5-1.8b-chat",
218
- contextLength: 32768,
219
- },
220
- {
221
- name: "UForm Gen2 Qwen 500M",
222
- id: "uform-gen2-qwen-500m",
223
- contextLength: 2048,
224
- },
225
- {
226
- name: "BART Large CNN",
227
- id: "bart-large-cnn",
228
- contextLength: 1024,
229
- },
230
- {
231
- name: "Phi-2",
232
- id: "phi-2",
233
- contextLength: 2048,
234
- },
235
- {
236
- name: "TinyLlama 1.1B Chat v1.0",
237
- id: "tinyllama-1.1b-chat-v1.0",
238
- contextLength: 2048,
239
- },
240
- {
241
- name: "Qwen1.5 14B Chat AWQ",
242
- id: "qwen1.5-14b-chat-awq",
243
- contextLength: 32768,
244
- },
245
- {
246
- name: "Qwen1.5 7B Chat AWQ",
247
- id: "qwen1.5-7b-chat-awq",
248
- contextLength: 32768,
249
- },
250
- {
251
- name: "Qwen1.5 0.5B Chat",
252
- id: "qwen1.5-0.5b-chat",
253
- contextLength: 32768,
254
- },
255
- {
256
- name: "DiscoLM German 7B v1 AWQ",
257
- id: "discolm-german-7b-v1-awq",
258
- contextLength: 32768,
259
- },
260
- {
261
- name: "Falcon 7B Instruct",
262
- id: "falcon-7b-instruct",
263
- contextLength: 2048,
264
- },
265
- {
266
- name: "OpenChat 3.5 0106",
267
- id: "openchat-3.5-0106",
268
- contextLength: 8192,
269
- },
270
- {
271
- name: "SQLCoder 7B 2",
272
- id: "sqlcoder-7b-2",
273
- contextLength: 16384,
274
- },
275
- {
276
- name: "DeepSeek Math 7B Instruct",
277
- id: "deepseek-math-7b-instruct",
278
- contextLength: 4096,
279
- },
280
- {
281
- name: "DETR ResNet-50",
282
- id: "detr-resnet-50",
283
- contextLength: 1024,
284
- },
285
- {
286
- name: "Stable Diffusion XL Lightning",
287
- id: "stable-diffusion-xl-lightning",
288
- contextLength: 77,
289
- },
290
- {
291
- name: "DreamShaper 8 LCM",
292
- id: "dreamshaper-8-lcm",
293
- contextLength: 77,
294
- },
295
- {
296
- name: "Stable Diffusion v1.5 Img2Img",
297
- id: "stable-diffusion-v1-5-img2img",
298
- contextLength: 77,
299
- },
300
- {
301
- name: "Stable Diffusion v1.5 Inpainting",
302
- id: "stable-diffusion-v1-5-inpainting",
303
- contextLength: 77,
304
- },
305
- {
306
- name: "DeepSeek Coder 6.7B Instruct AWQ",
307
- id: "deepseek-coder-6.7b-instruct-awq",
308
- contextLength: 16384,
309
- },
310
- {
311
- name: "DeepSeek Coder 6.7B Base AWQ",
312
- id: "deepseek-coder-6.7b-base-awq",
313
- contextLength: 16384,
314
- },
315
- {
316
- name: "LlamaGuard 7B AWQ",
317
- id: "llamaguard-7b-awq",
318
- contextLength: 4096,
319
- },
320
- {
321
- name: "Neural Chat 7B v3.1 AWQ",
322
- id: "neural-chat-7b-v3-1-awq",
323
- contextLength: 8192,
324
- },
325
- {
326
- name: "OpenHermes 2.5 Mistral 7B AWQ",
327
- id: "openhermes-2.5-mistral-7b-awq",
328
- contextLength: 8192,
329
- },
330
- {
331
- name: "Llama 2 13B Chat AWQ",
332
- id: "llama-2-13b-chat-awq",
333
- contextLength: 4096,
334
- },
335
- {
336
- name: "Mistral 7B Instruct v0.1 AWQ",
337
- id: "mistral-7b-instruct-v0.1-awq",
338
- contextLength: 8192,
339
- },
340
- {
341
- name: "Zephyr 7B Beta AWQ",
342
- id: "zephyr-7b-beta-awq",
343
- contextLength: 8192,
344
- },
345
- {
346
- name: "Stable Diffusion XL Base 1.0",
347
- id: "stable-diffusion-xl-base-1.0",
348
- contextLength: 77,
349
- },
350
- {
351
- name: "BGE Large EN v1.5",
352
- id: "bge-large-en-v1.5",
353
- contextLength: 512,
354
- },
355
- {
356
- name: "BGE Small EN v1.5",
357
- id: "bge-small-en-v1.5",
358
- contextLength: 512,
359
- },
360
- {
361
- name: "Llama 2 7B Chat FP16",
362
- id: "llama-2-7b-chat-fp16",
363
- contextLength: 4096,
364
- },
365
- {
366
- name: "Mistral 7B Instruct v0.1",
367
- id: "mistral-7b-instruct-v0.1",
368
- contextLength: 8192,
369
- },
370
- {
371
- name: "BGE Base EN v1.5",
372
- id: "bge-base-en-v1.5",
373
- contextLength: 512,
374
- },
375
- {
376
- name: "DistilBERT SST-2 Int8",
377
- id: "distilbert-sst-2-int8",
378
- contextLength: 512,
379
- },
380
- {
381
- name: "Llama 2 7B Chat Int8",
382
- id: "llama-2-7b-chat-int8",
383
- contextLength: 4096,
384
- },
385
- {
386
- name: "M2M100 1.2B",
387
- id: "m2m100-1.2b",
388
- contextLength: 1024,
389
- },
390
- {
391
- name: "ResNet-50",
392
- id: "resnet-50",
393
- contextLength: 224,
394
- },
395
- {
396
- name: "Whisper",
397
- id: "whisper",
398
- contextLength: 448000,
399
- },
400
- {
401
- name: "Llama 3.1 70B Instruct",
402
- id: "llama-3.1-70b-instruct",
403
- contextLength: 128000,
404
- },
405
- ],
406
- },
407
- {
408
- provider: "Perplexity",
409
- docs: "https://docs.perplexity.ai/models/model-cards",
410
- api_key: "https://www.perplexity.ai/account/api/keys",
411
- default: "sonar",
412
- models: [
413
- {
414
- name: "Sonar Pro",
415
- id: "sonar-pro",
416
- contextLength: 200000,
417
- },
418
- {
419
- name: "Sonar",
420
- id: "sonar",
421
- contextLength: 128000,
422
- },
423
- {
424
- name: "Sonar Reasoning Pro",
425
- id: "sonar-reasoning-pro",
426
- contextLength: 128000,
427
- },
428
- {
429
- name: "Sonar Reasoning",
430
- id: "sonar-reasoning",
431
- contextLength: 128000,
432
- },
433
- {
434
- name: "Sonar Deep Research",
435
- id: "sonar-deep-research",
436
- contextLength: 128000,
437
- },
438
- {
439
- name: "Llama 3.1 Sonar Small 128k Online",
440
- id: "llama-3.1-sonar-small-128k-online",
441
- contextLength: 127072,
442
- },
443
- {
444
- name: "Llama 3.1 Sonar Large 128k Online",
445
- id: "llama-3.1-sonar-large-128k-online",
446
- contextLength: 127072,
447
- },
448
- {
449
- name: "Llama 3.1 Sonar Huge 128k Online",
450
- id: "llama-3.1-sonar-huge-128k-online",
451
- contextLength: 127072,
452
- },
453
- ],
454
- },
455
- {
456
- provider: "Groq",
457
- docs: "https://console.groq.com/docs/overview",
458
- api_key: "https://console.groq.com/keys",
459
- default: "meta-llama/llama-4-maverick-17b-128e-instruct",
460
- models: [
461
- {
462
- name: "DeepSeek R1 Distill Llama 70B",
463
- id: "deepseek-r1-distill-llama-70b",
464
- contextLength: 131072,
465
- },
466
- {
467
- name: "Llama 4 Maverick 17B",
468
- id: "meta-llama/llama-4-maverick-17b-128e-instruct",
469
- contextLength: 131072,
470
- },
471
- {
472
- name: "Llama 4 Scout 17B",
473
- id: "meta-llama/llama-4-scout-17b-16e-instruct",
474
- contextLength: 131072,
475
- },
476
- {
477
- name: "Llama 3.3 70B Versatile",
478
- id: "llama-3.3-70b-versatile",
479
- contextLength: 131072,
480
- },
481
- {
482
- name: "Llama 3.3 70B SpecDec",
483
- id: "llama-3.3-70b-specdec",
484
- contextLength: 131072,
485
- },
486
-
487
- {
488
- name: "Llama 3.2 3B",
489
- id: "llama-3.2-3b-preview",
490
- contextLength: 8192,
491
- },
492
- {
493
- name: "Llama 3.2 11B Vision",
494
- id: "llama-3.2-11b-vision-preview",
495
- contextLength: 32768,
496
- },
497
- {
498
- name: "Llama 3.2 90B Vision",
499
- id: "llama-3.2-90b-vision-preview",
500
- contextLength: 131072,
501
- },
502
- {
503
- name: "Llama 3.1 70B",
504
- id: "llama-3.1-70b-versatile",
505
- contextLength: 65536,
506
- },
507
- {
508
- name: "Llama 3.1 8B",
509
- id: "llama-3.1-8b-instant",
510
- contextLength: 8192,
511
- },
512
- {
513
- name: "Mixtral 8x7B",
514
- id: "mixtral-8x7b-32768",
515
- contextLength: 32768,
516
- },
517
- {
518
- name: "Gemma2 9B",
519
- id: "gemma2-9b-it",
520
- contextLength: 16384,
521
- },
522
- ],
523
- },
524
- {
525
- provider: "OpenAI",
526
- docs: "https://platform.openai.com/docs/overview",
527
- api_key: "https://platform.openai.com/api-keys",
528
- default: "gpt-4o",
529
- models: [
530
- {
531
- name: "GPT-4 Omni",
532
- id: "gpt-4o",
533
- contextLength: 128000,
534
- },
535
- {
536
- name: "GPT-4 Omni Mini",
537
- id: "gpt-4o-mini",
538
- contextLength: 128000,
539
- },
540
- {
541
- name: "GPT-4 Turbo",
542
- id: "gpt-4-turbo",
543
- contextLength: 128000,
544
- },
545
- {
546
- name: "GPT-4",
547
- id: "gpt-4",
548
- contextLength: 8192,
549
- },
550
- {
551
- name: "GPT-3.5 Turbo",
552
- id: "gpt-3.5-turbo",
553
- contextLength: 16385,
554
- },
555
- ],
556
- },
557
- {
558
- provider: "Anthropic",
559
- docs: "https://docs.anthropic.com/en/docs/welcome",
560
- api_key: "https://console.anthropic.com/settings/keys",
561
- default: "claude-3-7-sonnet-20250219",
562
- models: [
563
- {
564
- name: "Claude 3.7 Sonnet",
565
- id: "claude-3-7-sonnet-20250219",
566
- contextLength: 200000,
567
- },
568
- {
569
- name: "Claude 3.5 Sonnet",
570
- id: "claude-3-5-sonnet-20241022",
571
- contextLength: 200000,
572
- },
573
- {
574
- name: "Claude 3 Opus",
575
- id: "claude-3-opus-20240229",
576
- contextLength: 200000,
577
- },
578
- {
579
- name: "Claude 3 Sonnet",
580
- id: "claude-3-sonnet-20240229",
581
- contextLength: 200000,
582
- },
583
- {
584
- name: "Claude 3 Haiku",
585
- id: "claude-3-haiku-20240307",
586
- contextLength: 200000,
587
- },
588
- ],
589
- },
590
- {
591
- provider: "TogetherAI",
592
- docs: "https://docs.together.ai/docs/quickstart",
593
- api_key: "https://api.together.xyz/settings/api-keys",
594
- default: "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
595
- models: [
596
- {
597
- name: "Llama 3.1 8B Instruct Turbo",
598
- id: "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
599
- contextLength: 131072,
600
- },
601
- {
602
- name: "Llama 3.1 70B Instruct Turbo",
603
- id: "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo",
604
- contextLength: 131072,
605
- },
606
- {
607
- name: "Llama 3.1 405B Instruct Turbo",
608
- id: "meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo",
609
- contextLength: 130815,
610
- },
611
- {
612
- name: "Llama 3 8B Instruct Turbo",
613
- id: "meta-llama/Meta-Llama-3-8B-Instruct-Turbo",
614
- contextLength: 8192,
615
- },
616
- {
617
- name: "Llama 3 70B Instruct Turbo",
618
- id: "meta-llama/Meta-Llama-3-70B-Instruct-Turbo",
619
- contextLength: 8192,
620
- },
621
- {
622
- name: "Llama 3.2 3B Instruct Turbo",
623
- id: "meta-llama/Llama-3.2-3B-Instruct-Turbo",
624
- contextLength: 131072,
625
- },
626
- {
627
- name: "Llama 3 8B Instruct Lite",
628
- id: "meta-llama/Meta-Llama-3-8B-Instruct-Lite",
629
- contextLength: 8192,
630
- },
631
- {
632
- name: "Llama 3 70B Instruct Lite",
633
- id: "meta-llama/Meta-Llama-3-70B-Instruct-Lite",
634
- contextLength: 8192,
635
- },
636
- {
637
- name: "Llama 3 8B Instruct Reference",
638
- id: "meta-llama/Llama-3-8b-chat-hf",
639
- contextLength: 8192,
640
- },
641
- {
642
- name: "Llama 3 70B Instruct Reference",
643
- id: "meta-llama/Llama-3-70b-chat-hf",
644
- contextLength: 8192,
645
- },
646
- {
647
- name: "Llama 3.1 Nemotron 70B",
648
- id: "nvidia/Llama-3.1-Nemotron-70B-Instruct-HF",
649
- contextLength: 32768,
650
- },
651
- {
652
- name: "Qwen 2.5 Coder 32B Instruct",
653
- id: "Qwen/Qwen2.5-Coder-32B-Instruct",
654
- contextLength: 32769,
655
- },
656
- {
657
- name: "WizardLM-2 8x22B",
658
- id: "microsoft/WizardLM-2-8x22B",
659
- contextLength: 65536,
660
- },
661
- {
662
- name: "Gemma 2 27B",
663
- id: "google/gemma-2-27b-it",
664
- contextLength: 8192,
665
- },
666
- {
667
- name: "Gemma 2 9B",
668
- id: "google/gemma-2-9b-it",
669
- contextLength: 8192,
670
- },
671
- {
672
- name: "DBRX Instruct",
673
- id: "databricks/dbrx-instruct",
674
- contextLength: 32768,
675
- },
676
- {
677
- name: "DeepSeek LLM Chat (67B)",
678
- id: "deepseek-ai/deepseek-llm-67b-chat",
679
- contextLength: 4096,
680
- },
681
- {
682
- name: "Gemma Instruct (2B)",
683
- id: "google/gemma-2b-it",
684
- contextLength: 8192,
685
- },
686
- {
687
- name: "MythoMax-L2 (13B)",
688
- id: "Gryphe/MythoMax-L2-13b",
689
- contextLength: 4096,
690
- },
691
- {
692
- name: "LLaMA-2 Chat (13B)",
693
- id: "meta-llama/Llama-2-13b-chat-hf",
694
- contextLength: 4096,
695
- },
696
- {
697
- name: "Mistral (7B) Instruct",
698
- id: "mistralai/Mistral-7B-Instruct-v0.1",
699
- contextLength: 8192,
700
- },
701
- {
702
- name: "Mistral (7B) Instruct v0.2",
703
- id: "mistralai/Mistral-7B-Instruct-v0.2",
704
- contextLength: 32768,
705
- },
706
- {
707
- name: "Mistral (7B) Instruct v0.3",
708
- id: "mistralai/Mistral-7B-Instruct-v0.3",
709
- contextLength: 32768,
710
- },
711
- {
712
- name: "Mixtral-8x7B Instruct (46.7B)",
713
- id: "mistralai/Mixtral-8x7B-Instruct-v0.1",
714
- contextLength: 32768,
715
- },
716
- {
717
- name: "Mixtral-8x22B Instruct (141B)",
718
- id: "mistralai/Mixtral-8x22B-Instruct-v0.1",
719
- contextLength: 65536,
720
- },
721
- {
722
- name: "Nous Hermes 2 - Mixtral 8x7B-DPO (46.7B)",
723
- id: "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
724
- contextLength: 32768,
725
- },
726
- {
727
- name: "Qwen 2.5 7B Instruct Turbo",
728
- id: "Qwen/Qwen2.5-7B-Instruct-Turbo",
729
- contextLength: 32768,
730
- },
731
- {
732
- name: "Qwen 2.5 72B Instruct Turbo",
733
- id: "Qwen/Qwen2.5-72B-Instruct-Turbo",
734
- contextLength: 32768,
735
- },
736
- {
737
- name: "Qwen 2 Instruct (72B)",
738
- id: "Qwen/Qwen2-72B-Instruct",
739
- contextLength: 32768,
740
- },
741
- {
742
- name: "StripedHyena Nous (7B)",
743
- id: "togethercomputer/StripedHyena-Nous-7B",
744
- contextLength: 32768,
745
- },
746
- {
747
- name: "Upstage SOLAR Instruct v1 (11B)",
748
- id: "upstage/SOLAR-10.7B-Instruct-v1.0",
749
- contextLength: 4096,
750
- },
751
- {
752
- name: "Llama 3.2 11B Vision Instruct Turbo (Free)",
753
- id: "meta-llama/Llama-Vision-Free",
754
- contextLength: 131072,
755
- },
756
- {
757
- name: "Llama 3.2 11B Vision Instruct Turbo",
758
- id: "meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo",
759
- contextLength: 131072,
760
- },
761
- {
762
- name: "Llama 3.2 90B Vision Instruct Turbo",
763
- id: "meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo",
764
- contextLength: 131072,
765
- },
766
- ],
767
- },
768
- {
769
- provider: "XAI",
770
- docs: "https://docs.x.ai/docs#models",
771
- api_key: "https://console.x.ai/",
772
- default: "grok-beta",
773
- models: [
774
- {
775
- name: "Grok",
776
- id: "grok-beta",
777
- contextLength: 131072,
778
- },
779
- {
780
- name: "Grok Vision",
781
- id: "grok-vision-beta",
782
- contextLength: 8192,
783
- },
784
- ],
785
- },
786
- {
787
- provider: "Google",
788
- docs: "https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models",
789
- api_key:
790
- "https://cloud.google.com/vertex-ai/generative-ai/docs/start/express-mode/overview#api-keys",
791
- models: [
792
- {
793
- name: "Gemini 2.5 Pro Preview",
794
- id: "gemini-2.5-pro-preview-05-06",
795
- contextLength: 1048576,
796
- },
797
- {
798
- name: "Gemini 2.5 Flash Preview",
799
- id: "gemini-2.5-flash-preview-04-17",
800
- contextLength: 1048576,
801
- },
802
- {
803
- name: "Gemini 2.0 Flash",
804
- id: "gemini-2.0-flash-001",
805
- contextLength: 1048576,
806
- },
807
- {
808
- name: "Gemini 2.0 Flash-Lite",
809
- id: "gemini-2.0-flash-lite-001",
810
- contextLength: 1048576,
811
- },
812
- {
813
- name: "Gemini 2.0 Flash-Live",
814
- id: "gemini-2.0-flash-live-preview-04-09",
815
- contextLength: 32768,
816
- },
817
- {
818
- name: "Imagen 3",
819
- id: "imagen-3.0-generate-002",
820
- contextLength: 480,
821
- },
822
- {
823
- name: "Imagen 3 Fast",
824
- id: "imagen-3.0-fast-generate-001",
825
- contextLength: 480,
826
- },
827
- {
828
- name: "Llama 3.2 90B Vision Instruct Turbo",
829
- id: "meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo",
830
- contextLength: 131072,
831
- },
832
- {
833
- name: "Llama 3.3 70B",
834
- id: "meta-llama/Llama-3.3-70B",
835
- contextLength: 131072,
836
- },
837
- {
838
- name: "Gemma 3",
839
- id: "gemma-3",
840
- contextLength: 131072,
841
- },
842
- {
843
- name: "Gemma 2",
844
- id: "gemma-2",
845
- contextLength: 131072,
846
- },
847
- {
848
- name: "Gemma",
849
- id: "gemma",
850
- contextLength: 131072,
851
- },
852
- ],
853
- },
854
- {
855
- provider: "Amazon",
856
- docs: "https://docs.aws.amazon.com/bedrock/",
857
- api_key: "https://console.aws.amazon.com/iam/home#/security_credentials",
858
- default: "anthropic.claude-3-5-sonnet-20241022-v2:0",
859
- models: [
860
- {
861
- name: "AI21 Jamba 1.5 Mini",
862
- id: "ai21.jamba-1-5-mini-v1:0",
863
- contextLength: 256000,
864
- provider: "AI21 Labs",
865
- },
866
- {
867
- name: "AI21 Jamba 1.5 Large",
868
- id: "ai21.jamba-1-5-large-v1:0",
869
- contextLength: 256000,
870
- provider: "AI21 Labs",
871
- },
872
- {
873
- name: "Amazon Nova Canvas",
874
- id: "amazon.nova-canvas-v1:0",
875
- contextLength: 77,
876
- provider: "Amazon",
877
- type: "image",
878
- },
879
- {
880
- name: "Amazon Nova Lite",
881
- id: "amazon.nova-lite-v1:0",
882
- contextLength: 300000,
883
- provider: "Amazon",
884
- },
885
- {
886
- name: "Amazon Nova Micro",
887
- id: "amazon.nova-micro-v1:0",
888
- contextLength: 128000,
889
- provider: "Amazon",
890
- },
891
- {
892
- name: "Amazon Nova Pro",
893
- id: "amazon.nova-pro-v1:0",
894
- contextLength: 300000,
895
- provider: "Amazon",
896
- },
897
- {
898
- name: "Amazon Nova Reel",
899
- id: "amazon.nova-reel-v1:0",
900
- contextLength: 10000,
901
- provider: "Amazon",
902
- type: "video",
903
- },
904
- {
905
- name: "Amazon Nova Reel V2 Lite",
906
- id: "amazon.nova-reel-v2-lite-v1:0",
907
- contextLength: 10000,
908
- provider: "Amazon",
909
- type: "video",
910
- },
911
- {
912
- name: "Amazon Nova Reel V2 Standard",
913
- id: "amazon.nova-reel-v2-standard-v1:0",
914
- contextLength: 10000,
915
- provider: "Amazon",
916
- type: "video",
917
- },
918
- {
919
- name: "Amazon Rerank",
920
- id: "amazon.rerank-v1:0",
921
- contextLength: 8192,
922
- provider: "Amazon",
923
- type: "reranker",
924
- },
925
- {
926
- name: "Amazon Titan Embeddings G1 - Text",
927
- id: "amazon.titan-embed-text-v1",
928
- contextLength: 8192,
929
- provider: "Amazon",
930
- type: "embedding",
931
- },
932
- {
933
- name: "Amazon Titan Embeddings G1 - Text v2",
934
- id: "amazon.titan-embed-text-v2:0",
935
- contextLength: 8192,
936
- provider: "Amazon",
937
- type: "embedding",
938
- },
939
- {
940
- name: "Amazon Titan Image Generator G1",
941
- id: "amazon.titan-image-generator-v1",
942
- contextLength: 128,
943
- provider: "Amazon",
944
- type: "image",
945
- },
946
- {
947
- name: "Amazon Titan Image Generator G2",
948
- id: "amazon.titan-image-generator-v2:0",
949
- contextLength: 128,
950
- provider: "Amazon",
951
- type: "image",
952
- },
953
- {
954
- name: "Amazon Titan Multimodal Embeddings G1",
955
- id: "amazon.titan-embed-image-v1",
956
- contextLength: 8192,
957
- provider: "Amazon",
958
- type: "embedding",
959
- },
960
- {
961
- name: "Amazon Titan Text G1 - Express",
962
- id: "amazon.titan-text-express-v1",
963
- contextLength: 8192,
964
- provider: "Amazon",
965
- },
966
- {
967
- name: "Amazon Titan Text G1 - Lite",
968
- id: "amazon.titan-text-lite-v1",
969
- contextLength: 4096,
970
- provider: "Amazon",
971
- },
972
- {
973
- name: "Amazon Titan Text G1 - Premier",
974
- id: "amazon.titan-text-premier-v1:0",
975
- contextLength: 32000,
976
- provider: "Amazon",
977
- },
978
- {
979
- name: "Claude 3.5 Sonnet v2",
980
- id: "anthropic.claude-3-5-sonnet-20241022-v2:0",
981
- contextLength: 200000,
982
- provider: "Anthropic",
983
- },
984
- {
985
- name: "Claude 3.5 Sonnet v1",
986
- id: "anthropic.claude-3-5-sonnet-20240620-v1:0",
987
- contextLength: 200000,
988
- provider: "Anthropic",
989
- },
990
- {
991
- name: "Claude 3.5 Haiku",
992
- id: "anthropic.claude-3-5-haiku-20241022-v1:0",
993
- contextLength: 200000,
994
- provider: "Anthropic",
995
- },
996
- {
997
- name: "Claude 3 Opus",
998
- id: "anthropic.claude-3-opus-20240229-v1:0",
999
- contextLength: 200000,
1000
- provider: "Anthropic",
1001
- },
1002
- {
1003
- name: "Claude 3 Sonnet",
1004
- id: "anthropic.claude-3-sonnet-20240229-v1:0",
1005
- contextLength: 200000,
1006
- provider: "Anthropic",
1007
- },
1008
- {
1009
- name: "Claude 3 Haiku",
1010
- id: "anthropic.claude-3-haiku-20240307-v1:0",
1011
- contextLength: 200000,
1012
- provider: "Anthropic",
1013
- },
1014
- {
1015
- name: "Claude Instant",
1016
- id: "anthropic.claude-instant-v1",
1017
- contextLength: 100000,
1018
- provider: "Anthropic",
1019
- },
1020
- {
1021
- name: "Cohere Command",
1022
- id: "cohere.command-text-v14",
1023
- contextLength: 4096,
1024
- provider: "Cohere",
1025
- },
1026
- {
1027
- name: "Cohere Command Light",
1028
- id: "cohere.command-light-text-v14",
1029
- contextLength: 4096,
1030
- provider: "Cohere",
1031
- },
1032
- {
1033
- name: "Cohere Command R",
1034
- id: "cohere.command-r-v1:0",
1035
- contextLength: 128000,
1036
- provider: "Cohere",
1037
- },
1038
- {
1039
- name: "Cohere Command R+",
1040
- id: "cohere.command-r-plus-v1:0",
1041
- contextLength: 128000,
1042
- provider: "Cohere",
1043
- },
1044
- {
1045
- name: "Cohere Embed English",
1046
- id: "cohere.embed-english-v3",
1047
- contextLength: 512,
1048
- provider: "Cohere",
1049
- type: "embedding",
1050
- },
1051
- {
1052
- name: "Cohere Embed Multilingual",
1053
- id: "cohere.embed-multilingual-v3",
1054
- contextLength: 512,
1055
- provider: "Cohere",
1056
- type: "embedding",
1057
- },
1058
- {
1059
- name: "Cohere Rerank English",
1060
- id: "cohere.rerank-english-v3:0",
1061
- contextLength: 4096,
1062
- provider: "Cohere",
1063
- type: "reranker",
1064
- },
1065
- {
1066
- name: "Cohere Rerank Multilingual",
1067
- id: "cohere.rerank-multilingual-v3:0",
1068
- contextLength: 4096,
1069
- provider: "Cohere",
1070
- type: "reranker",
1071
- },
1072
- {
1073
- name: "DeepSeek R1",
1074
- id: "deepseek.deepseek-r1-distill-qwen-32b-v1:0",
1075
- contextLength: 32768,
1076
- provider: "DeepSeek",
1077
- },
1078
- {
1079
- name: "Luma Dream Machine",
1080
- id: "luma.dream-machine-v1:0",
1081
- contextLength: 512,
1082
- provider: "Luma AI",
1083
- type: "video",
1084
- },
1085
-
1086
- {
1087
- name: "Llama 3.2 11B Vision Instruct",
1088
- id: "meta.llama3-2-11b-instruct-v1:0",
1089
- contextLength: 128000,
1090
- provider: "Meta",
1091
- },
1092
- {
1093
- name: "Llama 3.2 90B Vision Instruct",
1094
- id: "meta.llama3-2-90b-instruct-v1:0",
1095
- contextLength: 128000,
1096
- provider: "Meta",
1097
- },
1098
- {
1099
- name: "Mistral 7B Instruct",
1100
- id: "mistral.mistral-7b-instruct-v0:2",
1101
- contextLength: 32768,
1102
- provider: "Mistral AI",
1103
- },
1104
- {
1105
- name: "Mixtral 8x7B Instruct",
1106
- id: "mistral.mixtral-8x7b-instruct-v0:1",
1107
- contextLength: 32768,
1108
- provider: "Mistral AI",
1109
- },
1110
- {
1111
- name: "Mistral Small",
1112
- id: "mistral.mistral-small-2402-v1:0",
1113
- contextLength: 32768,
1114
- provider: "Mistral AI",
1115
- },
1116
- {
1117
- name: "Mistral Large",
1118
- id: "mistral.mistral-large-2402-v1:0",
1119
- contextLength: 32768,
1120
- provider: "Mistral AI",
1121
- },
1122
- {
1123
- name: "Mistral Large 2",
1124
- id: "mistral.mistral-large-2407-v1:0",
1125
- contextLength: 128000,
1126
- provider: "Mistral AI",
1127
- },
1128
- {
1129
- name: "Mistral Large 2411",
1130
- id: "mistral.mistral-large-2411-v1:0",
1131
- contextLength: 128000,
1132
- provider: "Mistral AI",
1133
- },
1134
- {
1135
- name: "Stable Diffusion XL",
1136
- id: "stability.stable-diffusion-xl-v1",
1137
- contextLength: 77,
1138
- provider: "Stability AI",
1139
- type: "image",
1140
- },
1141
- {
1142
- name: "SDXL 1.0",
1143
- id: "stability.stable-diffusion-xl-v0",
1144
- contextLength: 77,
1145
- provider: "Stability AI",
1146
- type: "image",
1147
- },
1148
- {
1149
- name: "Stable Image Ultra",
1150
- id: "stability.stable-image-ultra-v1:0",
1151
- contextLength: 77,
1152
- provider: "Stability AI",
1153
- type: "image",
1154
- },
1155
- {
1156
- name: "Stable Image Core",
1157
- id: "stability.stable-image-core-v1:0",
1158
- contextLength: 77,
1159
- provider: "Stability AI",
1160
- type: "image",
1161
- },
1162
- ],
1163
- },
1164
- ];
1165
-
1166
- /** List of available LLM provider services */
1167
- export const LANGUAGE_PROVIDERS = LANGUAGE_MODELS.map((p) =>
1168
- p.provider.toLocaleLowerCase(),
1169
- );
1170
-
1171
- /**
1172
- * Model capability types for filtering
1173
- */
1174
- export type ModelCapability = "text" | "vision" | "audio" | "code" | "reasoning";
1175
-
1176
- /**
1177
- * Extended model information with capabilities
1178
- */
1179
- export interface ModelInfo {
1180
- name: string;
1181
- id: string;
1182
- contextLength: number;
1183
- capabilities?: ModelCapability[];
1184
- provider: string;
1185
- }
1186
-
1187
- /**
1188
- * Get all models for a specific provider
1189
- * @param providerName - Name of the provider (case-insensitive)
1190
- * @returns Array of models for that provider
1191
- * @example
1192
- * const nvidiaModels = getModelsByProvider("nvidia");
1193
- */
1194
- export function getModelsByProvider(providerName: string): ModelInfo[] {
1195
- const provider = LANGUAGE_MODELS.find(
1196
- (p) => p.provider.toLowerCase() === providerName.toLowerCase()
1197
- );
1198
-
1199
- if (!provider) {
1200
- return [];
1201
- }
1202
-
1203
- return provider.models.map((model) => ({
1204
- ...model,
1205
- provider: provider.provider,
1206
- capabilities: inferModelCapabilities(model.name, model.id),
1207
- }));
1208
- }
1209
-
1210
- /**
1211
- * Get all available models across all providers
1212
- * @returns Array of all models with provider information
1213
- */
1214
- export function getAllModels(): ModelInfo[] {
1215
- return LANGUAGE_MODELS.flatMap((provider) =>
1216
- provider.models.map((model) => ({
1217
- ...model,
1218
- provider: provider.provider,
1219
- capabilities: inferModelCapabilities(model.name, model.id),
1220
- }))
1221
- );
1222
- }
1223
-
1224
- /**
1225
- * Filter models by capability (text-only, vision, etc.)
1226
- * @param capability - The capability to filter by
1227
- * @param providerName - Optional: filter by specific provider
1228
- * @returns Array of models with the specified capability
1229
- * @example
1230
- * const textOnlyModels = getModelsByCapability("text");
1231
- * const visionModels = getModelsByCapability("vision", "openai");
1232
- */
1233
- export function getModelsByCapability(
1234
- capability: ModelCapability,
1235
- providerName?: string
1236
- ): ModelInfo[] {
1237
- const allModels = providerName
1238
- ? getModelsByProvider(providerName)
1239
- : getAllModels();
1240
-
1241
- return allModels.filter((model) =>
1242
- model.capabilities?.includes(capability)
1243
- );
1244
- }
1245
-
1246
- /**
1247
- * Get text-only models (no vision, audio, etc.)
1248
- * @param providerName - Optional: filter by specific provider
1249
- * @returns Array of text-only models
1250
- * @example
1251
- * const textModels = getTextOnlyModels();
1252
- * const groqTextModels = getTextOnlyModels("groq");
1253
- */
1254
- export function getTextOnlyModels(providerName?: string): ModelInfo[] {
1255
- const allModels = providerName
1256
- ? getModelsByProvider(providerName)
1257
- : getAllModels();
1258
-
1259
- return allModels.filter((model) => {
1260
- const caps = model.capabilities || [];
1261
- return caps.includes("text") &&
1262
- !caps.includes("vision") &&
1263
- !caps.includes("audio");
1264
- });
1265
- }
1266
-
1267
- /**
1268
- * Get multimodal models (vision, audio, etc.)
1269
- * @param providerName - Optional: filter by specific provider
1270
- * @returns Array of multimodal models
1271
- * @example
1272
- * const multimodalModels = getMultimodalModels();
1273
- * const openaiMultimodal = getMultimodalModels("openai");
1274
- */
1275
- export function getMultimodalModels(providerName?: string): ModelInfo[] {
1276
- const allModels = providerName
1277
- ? getModelsByProvider(providerName)
1278
- : getAllModels();
1279
-
1280
- return allModels.filter((model) => {
1281
- const caps = model.capabilities || [];
1282
- return caps.includes("vision") || caps.includes("audio");
1283
- });
1284
- }
1285
-
1286
- /**
1287
- * Infer model capabilities from name and ID
1288
- * @param name - Model name
1289
- * @param id - Model ID
1290
- * @returns Array of inferred capabilities
1291
- */
1292
- function inferModelCapabilities(name: string, id: string): ModelCapability[] {
1293
- const capabilities: ModelCapability[] = ["text"]; // All models support text
1294
- const combined = `${name} ${id}`.toLowerCase();
1295
-
1296
- // Vision models
1297
- if (
1298
- combined.includes("vision") ||
1299
- combined.includes("-vl") ||
1300
- combined.includes("gpt-4o") ||
1301
- combined.includes("gemini") ||
1302
- combined.includes("claude") && combined.includes("3")
1303
- ) {
1304
- capabilities.push("vision");
1305
- }
1306
-
1307
- // Audio models
1308
- if (
1309
- combined.includes("whisper") ||
1310
- combined.includes("audio")
1311
- ) {
1312
- capabilities.push("audio");
1313
- }
1314
-
1315
- // Code-specialized models
1316
- if (
1317
- combined.includes("code") ||
1318
- combined.includes("codex") ||
1319
- combined.includes("codestral") ||
1320
- combined.includes("deepseek-coder")
1321
- ) {
1322
- capabilities.push("code");
1323
- }
1324
-
1325
- // Reasoning models
1326
- if (
1327
- combined.includes("reasoning") ||
1328
- combined.includes("o1") ||
1329
- combined.includes("o3") ||
1330
- combined.includes("thinking")
1331
- ) {
1332
- capabilities.push("reasoning");
1333
- }
1334
-
1335
- return capabilities;
1336
- }
1
+ /**
2
+ * List of default models for the chat providers and a list of models
3
+ * @property {string} provider - The provider name
4
+ * @property {string} docs - The documentation URL for the model
5
+ * @property {string} api_key - The API key url for the model
6
+ * @property {string} default - The default model for the chat provider
7
+ * @property {Object[]} models - The list of models available for the chat provider
8
+ * @category Generate
9
+ */
10
+ export const LANGUAGE_MODELS = [
11
+ {
12
+ provider: "NVIDIA",
13
+ docs: "https://docs.api.nvidia.com/nim/reference/llm-apis",
14
+ api_key: "https://build.nvidia.com/settings/api-keys",
15
+ default: "nvidia/nemotron-3-super-120b-a12b",
16
+ models: [
17
+ {
18
+ name: "Nemotron 3 Super 120B",
19
+ id: "nvidia/nemotron-3-super-120b-a12b",
20
+ contextLength: 1000000,
21
+ },
22
+ {
23
+ name: "Moonshot AI Kimi K2.5",
24
+ id: "moonshotai/kimi-k2.5",
25
+ contextLength: 256000,
26
+ },
27
+ {
28
+ name: "Nemotron Nano 12B v2 VL",
29
+ id: "nvidia/nemotron-nano-12b-v2-vl",
30
+ contextLength: 128000,
31
+ },
32
+ {
33
+ name: "DeepSeek V3 (Open MoE 1M Context)",
34
+ id: "deepseek/deepseek-v3",
35
+ contextLength: 1000000,
36
+ },
37
+ {
38
+ name: "Llama Nemotron",
39
+ id: "nvidia/llama-nemotron",
40
+ contextLength: 128000,
41
+ },
42
+ {
43
+ name: "Qwen2.5",
44
+ id: "qwen/qwen2.5",
45
+ contextLength: 128000,
46
+ },
47
+ {
48
+ name: "Llama 4",
49
+ id: "meta/llama-4",
50
+ contextLength: 128000,
51
+ },
52
+ ],
53
+ },
54
+ {
55
+ provider: "Cloudflare",
56
+ docs: "https://developers.cloudflare.com/workers-ai/",
57
+ api_key: "https://dash.cloudflare.com/profile/api-tokens",
58
+ default: "llama-4-scout-17b-16e-instruct",
59
+ models: [
60
+ {
61
+ name: "Llama 4 Scout 17B 16E Instruct",
62
+ id: "llama-4-scout-17b-16e-instruct",
63
+ contextLength: 128000,
64
+ },
65
+ {
66
+ name: "Llama 3.3 70B Instruct FP8 Fast",
67
+ id: "llama-3.3-70b-instruct-fp8-fast",
68
+ contextLength: 128000,
69
+ },
70
+ {
71
+ name: "Llama 3.1 8B Instruct Fast",
72
+ id: "llama-3.1-8b-instruct-fast",
73
+ contextLength: 128000,
74
+ },
75
+ {
76
+ name: "Gemma 3 12B IT",
77
+ id: "gemma-3-12b-it",
78
+ contextLength: 128000,
79
+ },
80
+ {
81
+ name: "Mistral Small 3.1 24B Instruct",
82
+ id: "mistral-small-3.1-24b-instruct",
83
+ contextLength: 128000,
84
+ },
85
+ {
86
+ name: "QwQ 32B",
87
+ id: "qwq-32b",
88
+ contextLength: 32768,
89
+ },
90
+ {
91
+ name: "Qwen2.5 Coder 32B Instruct",
92
+ id: "qwen2.5-coder-32b-instruct",
93
+ contextLength: 32768,
94
+ },
95
+ {
96
+ name: "Llama Guard 3 8B",
97
+ id: "llama-guard-3-8b",
98
+ contextLength: 8192,
99
+ },
100
+ {
101
+ name: "DeepSeek R1 Distill Qwen 32B",
102
+ id: "deepseek-r1-distill-qwen-32b",
103
+ contextLength: 32768,
104
+ },
105
+ {
106
+ name: "Llama 3.2 1B Instruct",
107
+ id: "llama-3.2-1b-instruct",
108
+ contextLength: 131072,
109
+ },
110
+ {
111
+ name: "Llama 3.2 3B Instruct",
112
+ id: "llama-3.2-3b-instruct",
113
+ contextLength: 131072,
114
+ },
115
+ {
116
+ name: "Llama 3.2 11B Vision Instruct",
117
+ id: "llama-3.2-11b-vision-instruct",
118
+ contextLength: 131072,
119
+ },
120
+ {
121
+ name: "Llama 3.1 8B Instruct AWQ",
122
+ id: "llama-3.1-8b-instruct-awq",
123
+ contextLength: 128000,
124
+ },
125
+ {
126
+ name: "Llama 3.1 8B Instruct FP8",
127
+ id: "llama-3.1-8b-instruct-fp8",
128
+ contextLength: 128000,
129
+ },
130
+ {
131
+ name: "MeloTTS",
132
+ id: "melotts",
133
+ contextLength: 1024,
134
+ },
135
+ {
136
+ name: "Llama 3.1 8B Instruct",
137
+ id: "llama-3.1-8b-instruct",
138
+ contextLength: 128000,
139
+ },
140
+ {
141
+ name: "Meta Llama 3 8B Instruct",
142
+ id: "meta-llama-3-8b-instruct",
143
+ contextLength: 8192,
144
+ },
145
+ {
146
+ name: "Whisper Large V3 Turbo",
147
+ id: "whisper-large-v3-turbo",
148
+ contextLength: 448000,
149
+ },
150
+ {
151
+ name: "Llama 3 8B Instruct AWQ",
152
+ id: "llama-3-8b-instruct-awq",
153
+ contextLength: 8192,
154
+ },
155
+ {
156
+ name: "LLaVA 1.5 7B HF",
157
+ id: "llava-1.5-7b-hf",
158
+ contextLength: 4096,
159
+ },
160
+ {
161
+ name: "Una Cybertron 7B V2 BF16",
162
+ id: "una-cybertron-7b-v2-bf16",
163
+ contextLength: 32768,
164
+ },
165
+ {
166
+ name: "Whisper Tiny EN",
167
+ id: "whisper-tiny-en",
168
+ contextLength: 448000,
169
+ },
170
+ {
171
+ name: "Llama 3 8B Instruct",
172
+ id: "llama-3-8b-instruct",
173
+ contextLength: 8192,
174
+ },
175
+ {
176
+ name: "Mistral 7B Instruct v0.2",
177
+ id: "mistral-7b-instruct-v0.2",
178
+ contextLength: 32768,
179
+ },
180
+ {
181
+ name: "Gemma 7B IT LoRA",
182
+ id: "gemma-7b-it-lora",
183
+ contextLength: 8192,
184
+ },
185
+ {
186
+ name: "Gemma 2B IT LoRA",
187
+ id: "gemma-2b-it-lora",
188
+ contextLength: 8192,
189
+ },
190
+ {
191
+ name: "Llama 2 7B Chat HF LoRA",
192
+ id: "llama-2-7b-chat-hf-lora",
193
+ contextLength: 4096,
194
+ },
195
+ {
196
+ name: "Gemma 7B IT",
197
+ id: "gemma-7b-it",
198
+ contextLength: 8192,
199
+ },
200
+ {
201
+ name: "Starling LM 7B Beta",
202
+ id: "starling-lm-7b-beta",
203
+ contextLength: 8192,
204
+ },
205
+ {
206
+ name: "Hermes 2 Pro Mistral 7B",
207
+ id: "hermes-2-pro-mistral-7b",
208
+ contextLength: 32768,
209
+ },
210
+ {
211
+ name: "Mistral 7B Instruct v0.2 LoRA",
212
+ id: "mistral-7b-instruct-v0.2-lora",
213
+ contextLength: 32768,
214
+ },
215
+ {
216
+ name: "Qwen1.5 1.8B Chat",
217
+ id: "qwen1.5-1.8b-chat",
218
+ contextLength: 32768,
219
+ },
220
+ {
221
+ name: "UForm Gen2 Qwen 500M",
222
+ id: "uform-gen2-qwen-500m",
223
+ contextLength: 2048,
224
+ },
225
+ {
226
+ name: "BART Large CNN",
227
+ id: "bart-large-cnn",
228
+ contextLength: 1024,
229
+ },
230
+ {
231
+ name: "Phi-2",
232
+ id: "phi-2",
233
+ contextLength: 2048,
234
+ },
235
+ {
236
+ name: "TinyLlama 1.1B Chat v1.0",
237
+ id: "tinyllama-1.1b-chat-v1.0",
238
+ contextLength: 2048,
239
+ },
240
+ {
241
+ name: "Qwen1.5 14B Chat AWQ",
242
+ id: "qwen1.5-14b-chat-awq",
243
+ contextLength: 32768,
244
+ },
245
+ {
246
+ name: "Qwen1.5 7B Chat AWQ",
247
+ id: "qwen1.5-7b-chat-awq",
248
+ contextLength: 32768,
249
+ },
250
+ {
251
+ name: "Qwen1.5 0.5B Chat",
252
+ id: "qwen1.5-0.5b-chat",
253
+ contextLength: 32768,
254
+ },
255
+ {
256
+ name: "DiscoLM German 7B v1 AWQ",
257
+ id: "discolm-german-7b-v1-awq",
258
+ contextLength: 32768,
259
+ },
260
+ {
261
+ name: "Falcon 7B Instruct",
262
+ id: "falcon-7b-instruct",
263
+ contextLength: 2048,
264
+ },
265
+ {
266
+ name: "OpenChat 3.5 0106",
267
+ id: "openchat-3.5-0106",
268
+ contextLength: 8192,
269
+ },
270
+ {
271
+ name: "SQLCoder 7B 2",
272
+ id: "sqlcoder-7b-2",
273
+ contextLength: 16384,
274
+ },
275
+ {
276
+ name: "DeepSeek Math 7B Instruct",
277
+ id: "deepseek-math-7b-instruct",
278
+ contextLength: 4096,
279
+ },
280
+ {
281
+ name: "DETR ResNet-50",
282
+ id: "detr-resnet-50",
283
+ contextLength: 1024,
284
+ },
285
+ {
286
+ name: "Stable Diffusion XL Lightning",
287
+ id: "stable-diffusion-xl-lightning",
288
+ contextLength: 77,
289
+ },
290
+ {
291
+ name: "DreamShaper 8 LCM",
292
+ id: "dreamshaper-8-lcm",
293
+ contextLength: 77,
294
+ },
295
+ {
296
+ name: "Stable Diffusion v1.5 Img2Img",
297
+ id: "stable-diffusion-v1-5-img2img",
298
+ contextLength: 77,
299
+ },
300
+ {
301
+ name: "Stable Diffusion v1.5 Inpainting",
302
+ id: "stable-diffusion-v1-5-inpainting",
303
+ contextLength: 77,
304
+ },
305
+ {
306
+ name: "DeepSeek Coder 6.7B Instruct AWQ",
307
+ id: "deepseek-coder-6.7b-instruct-awq",
308
+ contextLength: 16384,
309
+ },
310
+ {
311
+ name: "DeepSeek Coder 6.7B Base AWQ",
312
+ id: "deepseek-coder-6.7b-base-awq",
313
+ contextLength: 16384,
314
+ },
315
+ {
316
+ name: "LlamaGuard 7B AWQ",
317
+ id: "llamaguard-7b-awq",
318
+ contextLength: 4096,
319
+ },
320
+ {
321
+ name: "Neural Chat 7B v3.1 AWQ",
322
+ id: "neural-chat-7b-v3-1-awq",
323
+ contextLength: 8192,
324
+ },
325
+ {
326
+ name: "OpenHermes 2.5 Mistral 7B AWQ",
327
+ id: "openhermes-2.5-mistral-7b-awq",
328
+ contextLength: 8192,
329
+ },
330
+ {
331
+ name: "Llama 2 13B Chat AWQ",
332
+ id: "llama-2-13b-chat-awq",
333
+ contextLength: 4096,
334
+ },
335
+ {
336
+ name: "Mistral 7B Instruct v0.1 AWQ",
337
+ id: "mistral-7b-instruct-v0.1-awq",
338
+ contextLength: 8192,
339
+ },
340
+ {
341
+ name: "Zephyr 7B Beta AWQ",
342
+ id: "zephyr-7b-beta-awq",
343
+ contextLength: 8192,
344
+ },
345
+ {
346
+ name: "Stable Diffusion XL Base 1.0",
347
+ id: "stable-diffusion-xl-base-1.0",
348
+ contextLength: 77,
349
+ },
350
+ {
351
+ name: "BGE Large EN v1.5",
352
+ id: "bge-large-en-v1.5",
353
+ contextLength: 512,
354
+ },
355
+ {
356
+ name: "BGE Small EN v1.5",
357
+ id: "bge-small-en-v1.5",
358
+ contextLength: 512,
359
+ },
360
+ {
361
+ name: "Llama 2 7B Chat FP16",
362
+ id: "llama-2-7b-chat-fp16",
363
+ contextLength: 4096,
364
+ },
365
+ {
366
+ name: "Mistral 7B Instruct v0.1",
367
+ id: "mistral-7b-instruct-v0.1",
368
+ contextLength: 8192,
369
+ },
370
+ {
371
+ name: "BGE Base EN v1.5",
372
+ id: "bge-base-en-v1.5",
373
+ contextLength: 512,
374
+ },
375
+ {
376
+ name: "DistilBERT SST-2 Int8",
377
+ id: "distilbert-sst-2-int8",
378
+ contextLength: 512,
379
+ },
380
+ {
381
+ name: "Llama 2 7B Chat Int8",
382
+ id: "llama-2-7b-chat-int8",
383
+ contextLength: 4096,
384
+ },
385
+ {
386
+ name: "M2M100 1.2B",
387
+ id: "m2m100-1.2b",
388
+ contextLength: 1024,
389
+ },
390
+ {
391
+ name: "ResNet-50",
392
+ id: "resnet-50",
393
+ contextLength: 224,
394
+ },
395
+ {
396
+ name: "Whisper",
397
+ id: "whisper",
398
+ contextLength: 448000,
399
+ },
400
+ {
401
+ name: "Llama 3.1 70B Instruct",
402
+ id: "llama-3.1-70b-instruct",
403
+ contextLength: 128000,
404
+ },
405
+ ],
406
+ },
407
+ {
408
+ provider: "Perplexity",
409
+ docs: "https://docs.perplexity.ai/models/model-cards",
410
+ api_key: "https://www.perplexity.ai/account/api/keys",
411
+ default: "sonar",
412
+ models: [
413
+ {
414
+ name: "Sonar Pro",
415
+ id: "sonar-pro",
416
+ contextLength: 200000,
417
+ },
418
+ {
419
+ name: "Sonar",
420
+ id: "sonar",
421
+ contextLength: 128000,
422
+ },
423
+ {
424
+ name: "Sonar Reasoning Pro",
425
+ id: "sonar-reasoning-pro",
426
+ contextLength: 128000,
427
+ },
428
+ {
429
+ name: "Sonar Reasoning",
430
+ id: "sonar-reasoning",
431
+ contextLength: 128000,
432
+ },
433
+ {
434
+ name: "Sonar Deep Research",
435
+ id: "sonar-deep-research",
436
+ contextLength: 128000,
437
+ },
438
+ {
439
+ name: "Llama 3.1 Sonar Small 128k Online",
440
+ id: "llama-3.1-sonar-small-128k-online",
441
+ contextLength: 127072,
442
+ },
443
+ {
444
+ name: "Llama 3.1 Sonar Large 128k Online",
445
+ id: "llama-3.1-sonar-large-128k-online",
446
+ contextLength: 127072,
447
+ },
448
+ {
449
+ name: "Llama 3.1 Sonar Huge 128k Online",
450
+ id: "llama-3.1-sonar-huge-128k-online",
451
+ contextLength: 127072,
452
+ },
453
+ ],
454
+ },
455
+ {
456
+ provider: "Groq",
457
+ docs: "https://console.groq.com/docs/overview",
458
+ api_key: "https://console.groq.com/keys",
459
+ default: "meta-llama/llama-4-maverick-17b-128e-instruct",
460
+ models: [
461
+ {
462
+ name: "DeepSeek R1 Distill Llama 70B",
463
+ id: "deepseek-r1-distill-llama-70b",
464
+ contextLength: 131072,
465
+ },
466
+ {
467
+ name: "Llama 4 Maverick 17B",
468
+ id: "meta-llama/llama-4-maverick-17b-128e-instruct",
469
+ contextLength: 131072,
470
+ },
471
+ {
472
+ name: "Llama 4 Scout 17B",
473
+ id: "meta-llama/llama-4-scout-17b-16e-instruct",
474
+ contextLength: 131072,
475
+ },
476
+ {
477
+ name: "Llama 3.3 70B Versatile",
478
+ id: "llama-3.3-70b-versatile",
479
+ contextLength: 131072,
480
+ },
481
+ {
482
+ name: "Llama 3.3 70B SpecDec",
483
+ id: "llama-3.3-70b-specdec",
484
+ contextLength: 131072,
485
+ },
486
+
487
+ {
488
+ name: "Llama 3.2 3B",
489
+ id: "llama-3.2-3b-preview",
490
+ contextLength: 8192,
491
+ },
492
+ {
493
+ name: "Llama 3.2 11B Vision",
494
+ id: "llama-3.2-11b-vision-preview",
495
+ contextLength: 32768,
496
+ },
497
+ {
498
+ name: "Llama 3.2 90B Vision",
499
+ id: "llama-3.2-90b-vision-preview",
500
+ contextLength: 131072,
501
+ },
502
+ {
503
+ name: "Llama 3.1 70B",
504
+ id: "llama-3.1-70b-versatile",
505
+ contextLength: 65536,
506
+ },
507
+ {
508
+ name: "Llama 3.1 8B",
509
+ id: "llama-3.1-8b-instant",
510
+ contextLength: 8192,
511
+ },
512
+ {
513
+ name: "Mixtral 8x7B",
514
+ id: "mixtral-8x7b-32768",
515
+ contextLength: 32768,
516
+ },
517
+ {
518
+ name: "Gemma2 9B",
519
+ id: "gemma2-9b-it",
520
+ contextLength: 16384,
521
+ },
522
+ ],
523
+ },
524
+ {
525
+ provider: "OpenAI",
526
+ docs: "https://platform.openai.com/docs/overview",
527
+ api_key: "https://platform.openai.com/api-keys",
528
+ default: "gpt-4o",
529
+ models: [
530
+ {
531
+ name: "GPT-4 Omni",
532
+ id: "gpt-4o",
533
+ contextLength: 128000,
534
+ },
535
+ {
536
+ name: "GPT-4 Omni Mini",
537
+ id: "gpt-4o-mini",
538
+ contextLength: 128000,
539
+ },
540
+ {
541
+ name: "GPT-4 Turbo",
542
+ id: "gpt-4-turbo",
543
+ contextLength: 128000,
544
+ },
545
+ {
546
+ name: "GPT-4",
547
+ id: "gpt-4",
548
+ contextLength: 8192,
549
+ },
550
+ {
551
+ name: "GPT-3.5 Turbo",
552
+ id: "gpt-3.5-turbo",
553
+ contextLength: 16385,
554
+ },
555
+ ],
556
+ },
557
+ {
558
+ provider: "Anthropic",
559
+ docs: "https://docs.anthropic.com/en/docs/welcome",
560
+ api_key: "https://console.anthropic.com/settings/keys",
561
+ default: "claude-3-7-sonnet-20250219",
562
+ models: [
563
+ {
564
+ name: "Claude 3.7 Sonnet",
565
+ id: "claude-3-7-sonnet-20250219",
566
+ contextLength: 200000,
567
+ },
568
+ {
569
+ name: "Claude 3.5 Sonnet",
570
+ id: "claude-3-5-sonnet-20241022",
571
+ contextLength: 200000,
572
+ },
573
+ {
574
+ name: "Claude 3 Opus",
575
+ id: "claude-3-opus-20240229",
576
+ contextLength: 200000,
577
+ },
578
+ {
579
+ name: "Claude 3 Sonnet",
580
+ id: "claude-3-sonnet-20240229",
581
+ contextLength: 200000,
582
+ },
583
+ {
584
+ name: "Claude 3 Haiku",
585
+ id: "claude-3-haiku-20240307",
586
+ contextLength: 200000,
587
+ },
588
+ ],
589
+ },
590
+ {
591
+ provider: "TogetherAI",
592
+ docs: "https://docs.together.ai/docs/quickstart",
593
+ api_key: "https://api.together.xyz/settings/api-keys",
594
+ default: "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
595
+ models: [
596
+ {
597
+ name: "Llama 3.1 8B Instruct Turbo",
598
+ id: "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
599
+ contextLength: 131072,
600
+ },
601
+ {
602
+ name: "Llama 3.1 70B Instruct Turbo",
603
+ id: "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo",
604
+ contextLength: 131072,
605
+ },
606
+ {
607
+ name: "Llama 3.1 405B Instruct Turbo",
608
+ id: "meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo",
609
+ contextLength: 130815,
610
+ },
611
+ {
612
+ name: "Llama 3 8B Instruct Turbo",
613
+ id: "meta-llama/Meta-Llama-3-8B-Instruct-Turbo",
614
+ contextLength: 8192,
615
+ },
616
+ {
617
+ name: "Llama 3 70B Instruct Turbo",
618
+ id: "meta-llama/Meta-Llama-3-70B-Instruct-Turbo",
619
+ contextLength: 8192,
620
+ },
621
+ {
622
+ name: "Llama 3.2 3B Instruct Turbo",
623
+ id: "meta-llama/Llama-3.2-3B-Instruct-Turbo",
624
+ contextLength: 131072,
625
+ },
626
+ {
627
+ name: "Llama 3 8B Instruct Lite",
628
+ id: "meta-llama/Meta-Llama-3-8B-Instruct-Lite",
629
+ contextLength: 8192,
630
+ },
631
+ {
632
+ name: "Llama 3 70B Instruct Lite",
633
+ id: "meta-llama/Meta-Llama-3-70B-Instruct-Lite",
634
+ contextLength: 8192,
635
+ },
636
+ {
637
+ name: "Llama 3 8B Instruct Reference",
638
+ id: "meta-llama/Llama-3-8b-chat-hf",
639
+ contextLength: 8192,
640
+ },
641
+ {
642
+ name: "Llama 3 70B Instruct Reference",
643
+ id: "meta-llama/Llama-3-70b-chat-hf",
644
+ contextLength: 8192,
645
+ },
646
+ {
647
+ name: "Llama 3.1 Nemotron 70B",
648
+ id: "nvidia/Llama-3.1-Nemotron-70B-Instruct-HF",
649
+ contextLength: 32768,
650
+ },
651
+ {
652
+ name: "Qwen 2.5 Coder 32B Instruct",
653
+ id: "Qwen/Qwen2.5-Coder-32B-Instruct",
654
+ contextLength: 32769,
655
+ },
656
+ {
657
+ name: "WizardLM-2 8x22B",
658
+ id: "microsoft/WizardLM-2-8x22B",
659
+ contextLength: 65536,
660
+ },
661
+ {
662
+ name: "Gemma 2 27B",
663
+ id: "google/gemma-2-27b-it",
664
+ contextLength: 8192,
665
+ },
666
+ {
667
+ name: "Gemma 2 9B",
668
+ id: "google/gemma-2-9b-it",
669
+ contextLength: 8192,
670
+ },
671
+ {
672
+ name: "DBRX Instruct",
673
+ id: "databricks/dbrx-instruct",
674
+ contextLength: 32768,
675
+ },
676
+ {
677
+ name: "DeepSeek LLM Chat (67B)",
678
+ id: "deepseek-ai/deepseek-llm-67b-chat",
679
+ contextLength: 4096,
680
+ },
681
+ {
682
+ name: "Gemma Instruct (2B)",
683
+ id: "google/gemma-2b-it",
684
+ contextLength: 8192,
685
+ },
686
+ {
687
+ name: "MythoMax-L2 (13B)",
688
+ id: "Gryphe/MythoMax-L2-13b",
689
+ contextLength: 4096,
690
+ },
691
+ {
692
+ name: "LLaMA-2 Chat (13B)",
693
+ id: "meta-llama/Llama-2-13b-chat-hf",
694
+ contextLength: 4096,
695
+ },
696
+ {
697
+ name: "Mistral (7B) Instruct",
698
+ id: "mistralai/Mistral-7B-Instruct-v0.1",
699
+ contextLength: 8192,
700
+ },
701
+ {
702
+ name: "Mistral (7B) Instruct v0.2",
703
+ id: "mistralai/Mistral-7B-Instruct-v0.2",
704
+ contextLength: 32768,
705
+ },
706
+ {
707
+ name: "Mistral (7B) Instruct v0.3",
708
+ id: "mistralai/Mistral-7B-Instruct-v0.3",
709
+ contextLength: 32768,
710
+ },
711
+ {
712
+ name: "Mixtral-8x7B Instruct (46.7B)",
713
+ id: "mistralai/Mixtral-8x7B-Instruct-v0.1",
714
+ contextLength: 32768,
715
+ },
716
+ {
717
+ name: "Mixtral-8x22B Instruct (141B)",
718
+ id: "mistralai/Mixtral-8x22B-Instruct-v0.1",
719
+ contextLength: 65536,
720
+ },
721
+ {
722
+ name: "Nous Hermes 2 - Mixtral 8x7B-DPO (46.7B)",
723
+ id: "NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO",
724
+ contextLength: 32768,
725
+ },
726
+ {
727
+ name: "Qwen 2.5 7B Instruct Turbo",
728
+ id: "Qwen/Qwen2.5-7B-Instruct-Turbo",
729
+ contextLength: 32768,
730
+ },
731
+ {
732
+ name: "Qwen 2.5 72B Instruct Turbo",
733
+ id: "Qwen/Qwen2.5-72B-Instruct-Turbo",
734
+ contextLength: 32768,
735
+ },
736
+ {
737
+ name: "Qwen 2 Instruct (72B)",
738
+ id: "Qwen/Qwen2-72B-Instruct",
739
+ contextLength: 32768,
740
+ },
741
+ {
742
+ name: "StripedHyena Nous (7B)",
743
+ id: "togethercomputer/StripedHyena-Nous-7B",
744
+ contextLength: 32768,
745
+ },
746
+ {
747
+ name: "Upstage SOLAR Instruct v1 (11B)",
748
+ id: "upstage/SOLAR-10.7B-Instruct-v1.0",
749
+ contextLength: 4096,
750
+ },
751
+ {
752
+ name: "Llama 3.2 11B Vision Instruct Turbo (Free)",
753
+ id: "meta-llama/Llama-Vision-Free",
754
+ contextLength: 131072,
755
+ },
756
+ {
757
+ name: "Llama 3.2 11B Vision Instruct Turbo",
758
+ id: "meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo",
759
+ contextLength: 131072,
760
+ },
761
+ {
762
+ name: "Llama 3.2 90B Vision Instruct Turbo",
763
+ id: "meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo",
764
+ contextLength: 131072,
765
+ },
766
+ ],
767
+ },
768
+ {
769
+ provider: "XAI",
770
+ docs: "https://docs.x.ai/docs#models",
771
+ api_key: "https://console.x.ai/",
772
+ default: "grok-beta",
773
+ models: [
774
+ {
775
+ name: "Grok",
776
+ id: "grok-beta",
777
+ contextLength: 131072,
778
+ },
779
+ {
780
+ name: "Grok Vision",
781
+ id: "grok-vision-beta",
782
+ contextLength: 8192,
783
+ },
784
+ ],
785
+ },
786
+ {
787
+ provider: "Google",
788
+ docs: "https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models",
789
+ api_key:
790
+ "https://cloud.google.com/vertex-ai/generative-ai/docs/start/express-mode/overview#api-keys",
791
+ models: [
792
+ {
793
+ name: "Gemini 2.5 Pro Preview",
794
+ id: "gemini-2.5-pro-preview-05-06",
795
+ contextLength: 1048576,
796
+ },
797
+ {
798
+ name: "Gemini 2.5 Flash Preview",
799
+ id: "gemini-2.5-flash-preview-04-17",
800
+ contextLength: 1048576,
801
+ },
802
+ {
803
+ name: "Gemini 2.0 Flash",
804
+ id: "gemini-2.0-flash-001",
805
+ contextLength: 1048576,
806
+ },
807
+ {
808
+ name: "Gemini 2.0 Flash-Lite",
809
+ id: "gemini-2.0-flash-lite-001",
810
+ contextLength: 1048576,
811
+ },
812
+ {
813
+ name: "Gemini 2.0 Flash-Live",
814
+ id: "gemini-2.0-flash-live-preview-04-09",
815
+ contextLength: 32768,
816
+ },
817
+ {
818
+ name: "Imagen 3",
819
+ id: "imagen-3.0-generate-002",
820
+ contextLength: 480,
821
+ },
822
+ {
823
+ name: "Imagen 3 Fast",
824
+ id: "imagen-3.0-fast-generate-001",
825
+ contextLength: 480,
826
+ },
827
+ {
828
+ name: "Llama 3.2 90B Vision Instruct Turbo",
829
+ id: "meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo",
830
+ contextLength: 131072,
831
+ },
832
+ {
833
+ name: "Llama 3.3 70B",
834
+ id: "meta-llama/Llama-3.3-70B",
835
+ contextLength: 131072,
836
+ },
837
+ {
838
+ name: "Gemma 3",
839
+ id: "gemma-3",
840
+ contextLength: 131072,
841
+ },
842
+ {
843
+ name: "Gemma 2",
844
+ id: "gemma-2",
845
+ contextLength: 131072,
846
+ },
847
+ {
848
+ name: "Gemma",
849
+ id: "gemma",
850
+ contextLength: 131072,
851
+ },
852
+ ],
853
+ },
854
+ {
855
+ provider: "Amazon",
856
+ docs: "https://docs.aws.amazon.com/bedrock/",
857
+ api_key: "https://console.aws.amazon.com/iam/home#/security_credentials",
858
+ default: "anthropic.claude-3-5-sonnet-20241022-v2:0",
859
+ models: [
860
+ {
861
+ name: "AI21 Jamba 1.5 Mini",
862
+ id: "ai21.jamba-1-5-mini-v1:0",
863
+ contextLength: 256000,
864
+ provider: "AI21 Labs",
865
+ },
866
+ {
867
+ name: "AI21 Jamba 1.5 Large",
868
+ id: "ai21.jamba-1-5-large-v1:0",
869
+ contextLength: 256000,
870
+ provider: "AI21 Labs",
871
+ },
872
+ {
873
+ name: "Amazon Nova Canvas",
874
+ id: "amazon.nova-canvas-v1:0",
875
+ contextLength: 77,
876
+ provider: "Amazon",
877
+ type: "image",
878
+ },
879
+ {
880
+ name: "Amazon Nova Lite",
881
+ id: "amazon.nova-lite-v1:0",
882
+ contextLength: 300000,
883
+ provider: "Amazon",
884
+ },
885
+ {
886
+ name: "Amazon Nova Micro",
887
+ id: "amazon.nova-micro-v1:0",
888
+ contextLength: 128000,
889
+ provider: "Amazon",
890
+ },
891
+ {
892
+ name: "Amazon Nova Pro",
893
+ id: "amazon.nova-pro-v1:0",
894
+ contextLength: 300000,
895
+ provider: "Amazon",
896
+ },
897
+ {
898
+ name: "Amazon Nova Reel",
899
+ id: "amazon.nova-reel-v1:0",
900
+ contextLength: 10000,
901
+ provider: "Amazon",
902
+ type: "video",
903
+ },
904
+ {
905
+ name: "Amazon Nova Reel V2 Lite",
906
+ id: "amazon.nova-reel-v2-lite-v1:0",
907
+ contextLength: 10000,
908
+ provider: "Amazon",
909
+ type: "video",
910
+ },
911
+ {
912
+ name: "Amazon Nova Reel V2 Standard",
913
+ id: "amazon.nova-reel-v2-standard-v1:0",
914
+ contextLength: 10000,
915
+ provider: "Amazon",
916
+ type: "video",
917
+ },
918
+ {
919
+ name: "Amazon Rerank",
920
+ id: "amazon.rerank-v1:0",
921
+ contextLength: 8192,
922
+ provider: "Amazon",
923
+ type: "reranker",
924
+ },
925
+ {
926
+ name: "Amazon Titan Embeddings G1 - Text",
927
+ id: "amazon.titan-embed-text-v1",
928
+ contextLength: 8192,
929
+ provider: "Amazon",
930
+ type: "embedding",
931
+ },
932
+ {
933
+ name: "Amazon Titan Embeddings G1 - Text v2",
934
+ id: "amazon.titan-embed-text-v2:0",
935
+ contextLength: 8192,
936
+ provider: "Amazon",
937
+ type: "embedding",
938
+ },
939
+ {
940
+ name: "Amazon Titan Image Generator G1",
941
+ id: "amazon.titan-image-generator-v1",
942
+ contextLength: 128,
943
+ provider: "Amazon",
944
+ type: "image",
945
+ },
946
+ {
947
+ name: "Amazon Titan Image Generator G2",
948
+ id: "amazon.titan-image-generator-v2:0",
949
+ contextLength: 128,
950
+ provider: "Amazon",
951
+ type: "image",
952
+ },
953
+ {
954
+ name: "Amazon Titan Multimodal Embeddings G1",
955
+ id: "amazon.titan-embed-image-v1",
956
+ contextLength: 8192,
957
+ provider: "Amazon",
958
+ type: "embedding",
959
+ },
960
+ {
961
+ name: "Amazon Titan Text G1 - Express",
962
+ id: "amazon.titan-text-express-v1",
963
+ contextLength: 8192,
964
+ provider: "Amazon",
965
+ },
966
+ {
967
+ name: "Amazon Titan Text G1 - Lite",
968
+ id: "amazon.titan-text-lite-v1",
969
+ contextLength: 4096,
970
+ provider: "Amazon",
971
+ },
972
+ {
973
+ name: "Amazon Titan Text G1 - Premier",
974
+ id: "amazon.titan-text-premier-v1:0",
975
+ contextLength: 32000,
976
+ provider: "Amazon",
977
+ },
978
+ {
979
+ name: "Claude 3.5 Sonnet v2",
980
+ id: "anthropic.claude-3-5-sonnet-20241022-v2:0",
981
+ contextLength: 200000,
982
+ provider: "Anthropic",
983
+ },
984
+ {
985
+ name: "Claude 3.5 Sonnet v1",
986
+ id: "anthropic.claude-3-5-sonnet-20240620-v1:0",
987
+ contextLength: 200000,
988
+ provider: "Anthropic",
989
+ },
990
+ {
991
+ name: "Claude 3.5 Haiku",
992
+ id: "anthropic.claude-3-5-haiku-20241022-v1:0",
993
+ contextLength: 200000,
994
+ provider: "Anthropic",
995
+ },
996
+ {
997
+ name: "Claude 3 Opus",
998
+ id: "anthropic.claude-3-opus-20240229-v1:0",
999
+ contextLength: 200000,
1000
+ provider: "Anthropic",
1001
+ },
1002
+ {
1003
+ name: "Claude 3 Sonnet",
1004
+ id: "anthropic.claude-3-sonnet-20240229-v1:0",
1005
+ contextLength: 200000,
1006
+ provider: "Anthropic",
1007
+ },
1008
+ {
1009
+ name: "Claude 3 Haiku",
1010
+ id: "anthropic.claude-3-haiku-20240307-v1:0",
1011
+ contextLength: 200000,
1012
+ provider: "Anthropic",
1013
+ },
1014
+ {
1015
+ name: "Claude Instant",
1016
+ id: "anthropic.claude-instant-v1",
1017
+ contextLength: 100000,
1018
+ provider: "Anthropic",
1019
+ },
1020
+ {
1021
+ name: "Cohere Command",
1022
+ id: "cohere.command-text-v14",
1023
+ contextLength: 4096,
1024
+ provider: "Cohere",
1025
+ },
1026
+ {
1027
+ name: "Cohere Command Light",
1028
+ id: "cohere.command-light-text-v14",
1029
+ contextLength: 4096,
1030
+ provider: "Cohere",
1031
+ },
1032
+ {
1033
+ name: "Cohere Command R",
1034
+ id: "cohere.command-r-v1:0",
1035
+ contextLength: 128000,
1036
+ provider: "Cohere",
1037
+ },
1038
+ {
1039
+ name: "Cohere Command R+",
1040
+ id: "cohere.command-r-plus-v1:0",
1041
+ contextLength: 128000,
1042
+ provider: "Cohere",
1043
+ },
1044
+ {
1045
+ name: "Cohere Embed English",
1046
+ id: "cohere.embed-english-v3",
1047
+ contextLength: 512,
1048
+ provider: "Cohere",
1049
+ type: "embedding",
1050
+ },
1051
+ {
1052
+ name: "Cohere Embed Multilingual",
1053
+ id: "cohere.embed-multilingual-v3",
1054
+ contextLength: 512,
1055
+ provider: "Cohere",
1056
+ type: "embedding",
1057
+ },
1058
+ {
1059
+ name: "Cohere Rerank English",
1060
+ id: "cohere.rerank-english-v3:0",
1061
+ contextLength: 4096,
1062
+ provider: "Cohere",
1063
+ type: "reranker",
1064
+ },
1065
+ {
1066
+ name: "Cohere Rerank Multilingual",
1067
+ id: "cohere.rerank-multilingual-v3:0",
1068
+ contextLength: 4096,
1069
+ provider: "Cohere",
1070
+ type: "reranker",
1071
+ },
1072
+ {
1073
+ name: "DeepSeek R1",
1074
+ id: "deepseek.deepseek-r1-distill-qwen-32b-v1:0",
1075
+ contextLength: 32768,
1076
+ provider: "DeepSeek",
1077
+ },
1078
+ {
1079
+ name: "Luma Dream Machine",
1080
+ id: "luma.dream-machine-v1:0",
1081
+ contextLength: 512,
1082
+ provider: "Luma AI",
1083
+ type: "video",
1084
+ },
1085
+
1086
+ {
1087
+ name: "Llama 3.2 11B Vision Instruct",
1088
+ id: "meta.llama3-2-11b-instruct-v1:0",
1089
+ contextLength: 128000,
1090
+ provider: "Meta",
1091
+ },
1092
+ {
1093
+ name: "Llama 3.2 90B Vision Instruct",
1094
+ id: "meta.llama3-2-90b-instruct-v1:0",
1095
+ contextLength: 128000,
1096
+ provider: "Meta",
1097
+ },
1098
+ {
1099
+ name: "Mistral 7B Instruct",
1100
+ id: "mistral.mistral-7b-instruct-v0:2",
1101
+ contextLength: 32768,
1102
+ provider: "Mistral AI",
1103
+ },
1104
+ {
1105
+ name: "Mixtral 8x7B Instruct",
1106
+ id: "mistral.mixtral-8x7b-instruct-v0:1",
1107
+ contextLength: 32768,
1108
+ provider: "Mistral AI",
1109
+ },
1110
+ {
1111
+ name: "Mistral Small",
1112
+ id: "mistral.mistral-small-2402-v1:0",
1113
+ contextLength: 32768,
1114
+ provider: "Mistral AI",
1115
+ },
1116
+ {
1117
+ name: "Mistral Large",
1118
+ id: "mistral.mistral-large-2402-v1:0",
1119
+ contextLength: 32768,
1120
+ provider: "Mistral AI",
1121
+ },
1122
+ {
1123
+ name: "Mistral Large 2",
1124
+ id: "mistral.mistral-large-2407-v1:0",
1125
+ contextLength: 128000,
1126
+ provider: "Mistral AI",
1127
+ },
1128
+ {
1129
+ name: "Mistral Large 2411",
1130
+ id: "mistral.mistral-large-2411-v1:0",
1131
+ contextLength: 128000,
1132
+ provider: "Mistral AI",
1133
+ },
1134
+ {
1135
+ name: "Stable Diffusion XL",
1136
+ id: "stability.stable-diffusion-xl-v1",
1137
+ contextLength: 77,
1138
+ provider: "Stability AI",
1139
+ type: "image",
1140
+ },
1141
+ {
1142
+ name: "SDXL 1.0",
1143
+ id: "stability.stable-diffusion-xl-v0",
1144
+ contextLength: 77,
1145
+ provider: "Stability AI",
1146
+ type: "image",
1147
+ },
1148
+ {
1149
+ name: "Stable Image Ultra",
1150
+ id: "stability.stable-image-ultra-v1:0",
1151
+ contextLength: 77,
1152
+ provider: "Stability AI",
1153
+ type: "image",
1154
+ },
1155
+ {
1156
+ name: "Stable Image Core",
1157
+ id: "stability.stable-image-core-v1:0",
1158
+ contextLength: 77,
1159
+ provider: "Stability AI",
1160
+ type: "image",
1161
+ },
1162
+ ],
1163
+ },
1164
+ ];
1165
+
1166
+ /** List of available LLM provider services */
1167
+ export const LANGUAGE_PROVIDERS = LANGUAGE_MODELS.map((p) =>
1168
+ p.provider.toLocaleLowerCase(),
1169
+ );
1170
+
1171
+ /**
1172
+ * Model capability types for filtering
1173
+ */
1174
+ export type ModelCapability = "text" | "vision" | "audio" | "code" | "reasoning";
1175
+
1176
+ /**
1177
+ * Extended model information with capabilities
1178
+ */
1179
+ export interface ModelInfo {
1180
+ name: string;
1181
+ id: string;
1182
+ contextLength: number;
1183
+ capabilities?: ModelCapability[];
1184
+ provider: string;
1185
+ }
1186
+
1187
+ /**
1188
+ * Get all models for a specific provider
1189
+ * @param providerName - Name of the provider (case-insensitive)
1190
+ * @returns Array of models for that provider
1191
+ * @example
1192
+ * const nvidiaModels = getModelsByProvider("nvidia");
1193
+ */
1194
+ export function getModelsByProvider(providerName: string): ModelInfo[] {
1195
+ const provider = LANGUAGE_MODELS.find(
1196
+ (p) => p.provider.toLowerCase() === providerName.toLowerCase()
1197
+ );
1198
+
1199
+ if (!provider) {
1200
+ return [];
1201
+ }
1202
+
1203
+ return provider.models.map((model) => ({
1204
+ ...model,
1205
+ provider: provider.provider,
1206
+ capabilities: inferModelCapabilities(model.name, model.id),
1207
+ }));
1208
+ }
1209
+
1210
+ /**
1211
+ * Get all available models across all providers
1212
+ * @returns Array of all models with provider information
1213
+ */
1214
+ export function getAllModels(): ModelInfo[] {
1215
+ return LANGUAGE_MODELS.flatMap((provider) =>
1216
+ provider.models.map((model) => ({
1217
+ ...model,
1218
+ provider: provider.provider,
1219
+ capabilities: inferModelCapabilities(model.name, model.id),
1220
+ }))
1221
+ );
1222
+ }
1223
+
1224
+ /**
1225
+ * Filter models by capability (text-only, vision, etc.)
1226
+ * @param capability - The capability to filter by
1227
+ * @param providerName - Optional: filter by specific provider
1228
+ * @returns Array of models with the specified capability
1229
+ * @example
1230
+ * const textOnlyModels = getModelsByCapability("text");
1231
+ * const visionModels = getModelsByCapability("vision", "openai");
1232
+ */
1233
+ export function getModelsByCapability(
1234
+ capability: ModelCapability,
1235
+ providerName?: string
1236
+ ): ModelInfo[] {
1237
+ const allModels = providerName
1238
+ ? getModelsByProvider(providerName)
1239
+ : getAllModels();
1240
+
1241
+ return allModels.filter((model) =>
1242
+ model.capabilities?.includes(capability)
1243
+ );
1244
+ }
1245
+
1246
+ /**
1247
+ * Get text-only models (no vision, audio, etc.)
1248
+ * @param providerName - Optional: filter by specific provider
1249
+ * @returns Array of text-only models
1250
+ * @example
1251
+ * const textModels = getTextOnlyModels();
1252
+ * const groqTextModels = getTextOnlyModels("groq");
1253
+ */
1254
+ export function getTextOnlyModels(providerName?: string): ModelInfo[] {
1255
+ const allModels = providerName
1256
+ ? getModelsByProvider(providerName)
1257
+ : getAllModels();
1258
+
1259
+ return allModels.filter((model) => {
1260
+ const caps = model.capabilities || [];
1261
+ return caps.includes("text") &&
1262
+ !caps.includes("vision") &&
1263
+ !caps.includes("audio");
1264
+ });
1265
+ }
1266
+
1267
+ /**
1268
+ * Get multimodal models (vision, audio, etc.)
1269
+ * @param providerName - Optional: filter by specific provider
1270
+ * @returns Array of multimodal models
1271
+ * @example
1272
+ * const multimodalModels = getMultimodalModels();
1273
+ * const openaiMultimodal = getMultimodalModels("openai");
1274
+ */
1275
+ export function getMultimodalModels(providerName?: string): ModelInfo[] {
1276
+ const allModels = providerName
1277
+ ? getModelsByProvider(providerName)
1278
+ : getAllModels();
1279
+
1280
+ return allModels.filter((model) => {
1281
+ const caps = model.capabilities || [];
1282
+ return caps.includes("vision") || caps.includes("audio");
1283
+ });
1284
+ }
1285
+
1286
+ /**
1287
+ * Infer model capabilities from name and ID
1288
+ * @param name - Model name
1289
+ * @param id - Model ID
1290
+ * @returns Array of inferred capabilities
1291
+ */
1292
+ function inferModelCapabilities(name: string, id: string): ModelCapability[] {
1293
+ const capabilities: ModelCapability[] = ["text"]; // All models support text
1294
+ const combined = `${name} ${id}`.toLowerCase();
1295
+
1296
+ // Vision models
1297
+ if (
1298
+ combined.includes("vision") ||
1299
+ combined.includes("-vl") ||
1300
+ combined.includes("gpt-4o") ||
1301
+ combined.includes("gemini") ||
1302
+ combined.includes("claude") && combined.includes("3")
1303
+ ) {
1304
+ capabilities.push("vision");
1305
+ }
1306
+
1307
+ // Audio models
1308
+ if (
1309
+ combined.includes("whisper") ||
1310
+ combined.includes("audio")
1311
+ ) {
1312
+ capabilities.push("audio");
1313
+ }
1314
+
1315
+ // Code-specialized models
1316
+ if (
1317
+ combined.includes("code") ||
1318
+ combined.includes("codex") ||
1319
+ combined.includes("codestral") ||
1320
+ combined.includes("deepseek-coder")
1321
+ ) {
1322
+ capabilities.push("code");
1323
+ }
1324
+
1325
+ // Reasoning models
1326
+ if (
1327
+ combined.includes("reasoning") ||
1328
+ combined.includes("o1") ||
1329
+ combined.includes("o3") ||
1330
+ combined.includes("thinking")
1331
+ ) {
1332
+ capabilities.push("reasoning");
1333
+ }
1334
+
1335
+ return capabilities;
1336
+ }