aimodels 0.3.6 → 0.3.8

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 (3) hide show
  1. package/dist/index.js +528 -93
  2. package/dist/index.mjs +528 -93
  3. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -602,7 +602,7 @@ var anthropic_models_default = {
602
602
  creator: "anthropic",
603
603
  models: [
604
604
  {
605
- id: "claude-3-opus",
605
+ id: "claude-3-opus-20240229",
606
606
  name: "Claude 3 Opus",
607
607
  license: "proprietary",
608
608
  providers: ["anthropic", "aws", "google"],
@@ -620,17 +620,10 @@ var anthropic_models_default = {
620
620
  maxOutput: 4096,
621
621
  outputIsFixed: 1
622
622
  },
623
- aliases: ["claude-3-opus-latest"]
624
- },
625
- {
626
- id: "claude-3-opus-20240229",
627
- extends: "claude-3-opus",
628
- overrides: {
629
- name: "Claude 3 Opus (2024-02-29)"
630
- }
623
+ aliases: ["claude-3-opus-latest", "claude-3-opus"]
631
624
  },
632
625
  {
633
- id: "claude-3-sonnet",
626
+ id: "claude-3-sonnet-20240229",
634
627
  name: "Claude 3 Sonnet",
635
628
  license: "proprietary",
636
629
  providers: ["anthropic", "aws", "google"],
@@ -648,17 +641,10 @@ var anthropic_models_default = {
648
641
  maxOutput: 4096,
649
642
  outputIsFixed: 1
650
643
  },
651
- aliases: ["claude-3-sonnet-latest"]
652
- },
653
- {
654
- id: "claude-3-sonnet-20240229",
655
- extends: "claude-3-sonnet",
656
- overrides: {
657
- name: "Claude 3 Sonnet (2024-02-29)"
658
- }
644
+ aliases: ["claude-3-sonnet-latest", "claude-3-sonnet"]
659
645
  },
660
646
  {
661
- id: "claude-3-haiku",
647
+ id: "claude-3-haiku-20240307",
662
648
  name: "Claude 3 Haiku",
663
649
  license: "proprietary",
664
650
  providers: ["anthropic", "aws", "google"],
@@ -675,17 +661,11 @@ var anthropic_models_default = {
675
661
  total: 2e5,
676
662
  maxOutput: 4096,
677
663
  outputIsFixed: 1
678
- }
679
- },
680
- {
681
- id: "claude-3-haiku-20240307",
682
- extends: "claude-3-haiku",
683
- overrides: {
684
- name: "Claude 3 Haiku (2024-03-07)"
685
- }
664
+ },
665
+ aliases: ["claude-3-haiku"]
686
666
  },
687
667
  {
688
- id: "claude-3-5-sonnet",
668
+ id: "claude-3-5-sonnet-20241022",
689
669
  name: "Claude 3.5 Sonnet",
690
670
  license: "proprietary",
691
671
  providers: ["anthropic", "aws", "google"],
@@ -703,17 +683,30 @@ var anthropic_models_default = {
703
683
  maxOutput: 8192,
704
684
  outputIsFixed: 1
705
685
  },
706
- aliases: ["claude-3-5-sonnet-latest"]
686
+ aliases: ["claude-3-5-sonnet-latest", "claude-3-5-sonnet"]
707
687
  },
708
688
  {
709
- id: "claude-3-5-sonnet-20241022",
710
- extends: "claude-3-5-sonnet",
711
- overrides: {
712
- name: "Claude 3.5 Sonnet (2024-10-22)"
689
+ id: "claude-3-5-sonnet-20240620",
690
+ name: "Claude 3.5 Sonnet (2024-06-20)",
691
+ license: "proprietary",
692
+ providers: ["anthropic", "aws", "google"],
693
+ can: [
694
+ "chat",
695
+ "text-in",
696
+ "text-out",
697
+ "img-in",
698
+ "json-out",
699
+ "function-out"
700
+ ],
701
+ context: {
702
+ type: "token",
703
+ total: 2e5,
704
+ maxOutput: 8192,
705
+ outputIsFixed: 1
713
706
  }
714
707
  },
715
708
  {
716
- id: "claude-3-5-haiku",
709
+ id: "claude-3-5-haiku-20241022",
717
710
  name: "Claude 3.5 Haiku",
718
711
  license: "proprietary",
719
712
  providers: ["anthropic", "aws", "google"],
@@ -730,14 +723,7 @@ var anthropic_models_default = {
730
723
  maxOutput: 8192,
731
724
  outputIsFixed: 1
732
725
  },
733
- aliases: ["claude-3-5-haiku-latest"]
734
- },
735
- {
736
- id: "claude-3-5-haiku-20241022",
737
- extends: "claude-3-5-haiku",
738
- overrides: {
739
- name: "Claude 3.5 Haiku (2024-10-22)"
740
- }
726
+ aliases: ["claude-3-5-haiku-latest", "claude-3-5-haiku"]
741
727
  }
742
728
  ]
743
729
  };
@@ -1120,8 +1106,15 @@ var cohere_models_default = {
1120
1106
  name: "Command R7B",
1121
1107
  creator: "cohere",
1122
1108
  license: "proprietary",
1123
- providers: ["cohere"],
1124
- can: ["chat", "text-in", "text-out", "reason", "function-out"],
1109
+ providers: [
1110
+ "cohere"
1111
+ ],
1112
+ can: [
1113
+ "chat",
1114
+ "text-in",
1115
+ "text-out",
1116
+ "function-out"
1117
+ ],
1125
1118
  context: {
1126
1119
  type: "token",
1127
1120
  total: 128e3,
@@ -1133,36 +1126,70 @@ var cohere_models_default = {
1133
1126
  name: "Command R+",
1134
1127
  creator: "cohere",
1135
1128
  license: "proprietary",
1136
- providers: ["cohere", "bedrock", "azure", "oracle"],
1137
- can: ["chat", "text-in", "text-out", "reason", "function-out"],
1129
+ providers: [
1130
+ "cohere",
1131
+ "bedrock",
1132
+ "azure",
1133
+ "oracle"
1134
+ ],
1135
+ can: [
1136
+ "chat",
1137
+ "text-in",
1138
+ "text-out",
1139
+ "reason",
1140
+ "function-out"
1141
+ ],
1138
1142
  context: {
1139
1143
  type: "token",
1140
1144
  total: 128e3,
1141
1145
  maxOutput: 4096
1142
1146
  },
1143
- aliases: ["command-r-plus"]
1147
+ aliases: [
1148
+ "command-r-plus"
1149
+ ]
1144
1150
  },
1145
1151
  {
1146
1152
  id: "command-r-03-2024",
1147
1153
  name: "Command R",
1148
1154
  creator: "cohere",
1149
1155
  license: "proprietary",
1150
- providers: ["cohere", "bedrock", "azure", "oracle"],
1151
- can: ["chat", "text-in", "text-out", "reason", "function-out"],
1156
+ providers: [
1157
+ "cohere",
1158
+ "bedrock",
1159
+ "azure",
1160
+ "oracle"
1161
+ ],
1162
+ can: [
1163
+ "chat",
1164
+ "text-in",
1165
+ "text-out",
1166
+ "reason",
1167
+ "function-out"
1168
+ ],
1152
1169
  context: {
1153
1170
  type: "token",
1154
1171
  total: 128e3,
1155
1172
  maxOutput: 4096
1156
1173
  },
1157
- aliases: ["command-r"]
1174
+ aliases: [
1175
+ "command-r"
1176
+ ]
1158
1177
  },
1159
1178
  {
1160
1179
  id: "command",
1161
1180
  name: "Command",
1162
1181
  creator: "cohere",
1163
1182
  license: "proprietary",
1164
- providers: ["cohere", "bedrock", "oracle"],
1165
- can: ["chat", "text-in", "text-out"],
1183
+ providers: [
1184
+ "cohere",
1185
+ "bedrock",
1186
+ "oracle"
1187
+ ],
1188
+ can: [
1189
+ "chat",
1190
+ "text-in",
1191
+ "text-out"
1192
+ ],
1166
1193
  context: {
1167
1194
  type: "token",
1168
1195
  total: 4096,
@@ -1174,8 +1201,16 @@ var cohere_models_default = {
1174
1201
  name: "Command Light",
1175
1202
  creator: "cohere",
1176
1203
  license: "proprietary",
1177
- providers: ["cohere", "bedrock", "oracle"],
1178
- can: ["chat", "text-in", "text-out"],
1204
+ providers: [
1205
+ "cohere",
1206
+ "bedrock",
1207
+ "oracle"
1208
+ ],
1209
+ can: [
1210
+ "chat",
1211
+ "text-in",
1212
+ "text-out"
1213
+ ],
1179
1214
  context: {
1180
1215
  type: "token",
1181
1216
  total: 4096,
@@ -1187,8 +1222,17 @@ var cohere_models_default = {
1187
1222
  name: "Embed English v3.0",
1188
1223
  creator: "cohere",
1189
1224
  license: "proprietary",
1190
- providers: ["cohere", "bedrock", "azure", "oracle"],
1191
- can: ["text-in", "img-in", "vectors-out"],
1225
+ providers: [
1226
+ "cohere",
1227
+ "bedrock",
1228
+ "azure",
1229
+ "oracle"
1230
+ ],
1231
+ can: [
1232
+ "text-in",
1233
+ "img-in",
1234
+ "vectors-out"
1235
+ ],
1192
1236
  context: {
1193
1237
  type: "token",
1194
1238
  total: 512,
@@ -1200,8 +1244,15 @@ var cohere_models_default = {
1200
1244
  name: "Embed English Light v3.0",
1201
1245
  creator: "cohere",
1202
1246
  license: "proprietary",
1203
- providers: ["cohere", "oracle"],
1204
- can: ["text-in", "img-in", "vectors-out"],
1247
+ providers: [
1248
+ "cohere",
1249
+ "oracle"
1250
+ ],
1251
+ can: [
1252
+ "text-in",
1253
+ "img-in",
1254
+ "vectors-out"
1255
+ ],
1205
1256
  context: {
1206
1257
  type: "token",
1207
1258
  total: 512,
@@ -1213,8 +1264,17 @@ var cohere_models_default = {
1213
1264
  name: "Embed Multilingual v3.0",
1214
1265
  creator: "cohere",
1215
1266
  license: "proprietary",
1216
- providers: ["cohere", "bedrock", "azure", "oracle"],
1217
- can: ["text-in", "img-in", "vectors-out"],
1267
+ providers: [
1268
+ "cohere",
1269
+ "bedrock",
1270
+ "azure",
1271
+ "oracle"
1272
+ ],
1273
+ can: [
1274
+ "text-in",
1275
+ "img-in",
1276
+ "vectors-out"
1277
+ ],
1218
1278
  context: {
1219
1279
  type: "token",
1220
1280
  total: 512,
@@ -1226,8 +1286,15 @@ var cohere_models_default = {
1226
1286
  name: "Embed Multilingual Light v3.0",
1227
1287
  creator: "cohere",
1228
1288
  license: "proprietary",
1229
- providers: ["cohere", "oracle"],
1230
- can: ["text-in", "img-in", "vectors-out"],
1289
+ providers: [
1290
+ "cohere",
1291
+ "oracle"
1292
+ ],
1293
+ can: [
1294
+ "text-in",
1295
+ "img-in",
1296
+ "vectors-out"
1297
+ ],
1231
1298
  context: {
1232
1299
  type: "token",
1233
1300
  total: 512,
@@ -1239,8 +1306,15 @@ var cohere_models_default = {
1239
1306
  name: "Rerank v3.5",
1240
1307
  creator: "cohere",
1241
1308
  license: "proprietary",
1242
- providers: ["cohere", "bedrock", "azure"],
1243
- can: ["text-in", "text-out"],
1309
+ providers: [
1310
+ "cohere",
1311
+ "bedrock",
1312
+ "azure"
1313
+ ],
1314
+ can: [
1315
+ "text-in",
1316
+ "text-out"
1317
+ ],
1244
1318
  context: {
1245
1319
  type: "token",
1246
1320
  total: 4096,
@@ -1252,8 +1326,14 @@ var cohere_models_default = {
1252
1326
  name: "Rerank English v3.0",
1253
1327
  creator: "cohere",
1254
1328
  license: "proprietary",
1255
- providers: ["cohere", "azure"],
1256
- can: ["text-in", "text-out"],
1329
+ providers: [
1330
+ "cohere",
1331
+ "azure"
1332
+ ],
1333
+ can: [
1334
+ "text-in",
1335
+ "text-out"
1336
+ ],
1257
1337
  context: {
1258
1338
  type: "token",
1259
1339
  total: 4096,
@@ -1265,8 +1345,14 @@ var cohere_models_default = {
1265
1345
  name: "Rerank Multilingual v3.0",
1266
1346
  creator: "cohere",
1267
1347
  license: "proprietary",
1268
- providers: ["cohere", "azure"],
1269
- can: ["text-in", "text-out"],
1348
+ providers: [
1349
+ "cohere",
1350
+ "azure"
1351
+ ],
1352
+ can: [
1353
+ "text-in",
1354
+ "text-out"
1355
+ ],
1270
1356
  context: {
1271
1357
  type: "token",
1272
1358
  total: 4096,
@@ -1450,43 +1536,169 @@ var openai_provider_default = {
1450
1536
  apiUrl: "https://api.openai.com/v1",
1451
1537
  defaultModel: "gpt-4o",
1452
1538
  models: {
1453
- "gpt-4o": {
1539
+ "chatgpt-4o-latest": {
1454
1540
  type: "token",
1455
- input: 20,
1456
- output: 80
1541
+ input: 5,
1542
+ output: 15
1543
+ },
1544
+ "gpt-4": {
1545
+ type: "token",
1546
+ input: 30,
1547
+ output: 60
1548
+ },
1549
+ "gpt-4-0613": {
1550
+ type: "token",
1551
+ input: 30,
1552
+ output: 60
1553
+ },
1554
+ "gpt-4-32k": {
1555
+ type: "token",
1556
+ input: 60,
1557
+ output: 120
1558
+ },
1559
+ "gpt-4-turbo": {
1560
+ type: "token",
1561
+ input: 10,
1562
+ output: 30
1563
+ },
1564
+ "gpt-4-turbo-2024-04-09": {
1565
+ type: "token",
1566
+ input: 10,
1567
+ output: 30
1457
1568
  },
1458
1569
  "gpt-3.5-turbo": {
1570
+ type: "token",
1571
+ input: 0.5,
1572
+ output: 1.5
1573
+ },
1574
+ "gpt-3.5-turbo-0125": {
1575
+ type: "token",
1576
+ input: 0.5,
1577
+ output: 1.5
1578
+ },
1579
+ "gpt-3.5-turbo-instruct": {
1580
+ type: "token",
1581
+ input: 1.5,
1582
+ output: 2
1583
+ },
1584
+ "gpt-3.5-turbo-16k-0613": {
1585
+ type: "token",
1586
+ input: 3,
1587
+ output: 4
1588
+ },
1589
+ "davinci-002": {
1590
+ type: "token",
1591
+ input: 2,
1592
+ output: 2
1593
+ },
1594
+ "babbage-002": {
1595
+ type: "token",
1596
+ input: 0.4,
1597
+ output: 0.4
1598
+ },
1599
+ "gpt-4o": {
1600
+ type: "token",
1601
+ input: 2.5,
1602
+ input_cached: 1.25,
1603
+ output: 10
1604
+ },
1605
+ "gpt-4o-2024-08-06": {
1606
+ type: "token",
1607
+ input: 2.5,
1608
+ input_cached: 1.25,
1609
+ output: 10
1610
+ },
1611
+ "gpt-4o-audio-preview": {
1612
+ type: "token",
1613
+ input: 2.5,
1614
+ output: 10
1615
+ },
1616
+ "gpt-4o-audio-preview-2024-12-17": {
1617
+ type: "token",
1618
+ input: 2.5,
1619
+ output: 10
1620
+ },
1621
+ "gpt-4o-realtime-preview": {
1622
+ type: "token",
1623
+ input: 5,
1624
+ input_cached: 2.5,
1625
+ output: 20
1626
+ },
1627
+ "gpt-4o-realtime-preview-2024-12-17": {
1459
1628
  type: "token",
1460
1629
  input: 5,
1630
+ input_cached: 2.5,
1461
1631
  output: 20
1462
1632
  },
1463
- "gpt-4o-vision": {
1633
+ "gpt-4o-mini": {
1634
+ type: "token",
1635
+ input: 0.15,
1636
+ input_cached: 0.075,
1637
+ output: 0.6
1638
+ },
1639
+ "gpt-4o-mini-2024-07-18": {
1640
+ type: "token",
1641
+ input: 0.15,
1642
+ input_cached: 0.075,
1643
+ output: 0.6
1644
+ },
1645
+ "gpt-4o-mini-audio-preview": {
1646
+ type: "token",
1647
+ input: 0.15,
1648
+ output: 0.6
1649
+ },
1650
+ "gpt-4o-mini-audio-preview-2024-12-17": {
1651
+ type: "token",
1652
+ input: 0.15,
1653
+ output: 0.6
1654
+ },
1655
+ "gpt-4o-mini-realtime-preview": {
1656
+ type: "token",
1657
+ input: 0.6,
1658
+ input_cached: 0.3,
1659
+ output: 2.4
1660
+ },
1661
+ "gpt-4o-mini-realtime-preview-2024-12-17": {
1662
+ type: "token",
1663
+ input: 0.6,
1664
+ input_cached: 0.3,
1665
+ output: 2.4
1666
+ },
1667
+ o1: {
1464
1668
  type: "token",
1465
1669
  input: 15,
1466
1670
  input_cached: 7.5,
1467
1671
  output: 60
1468
1672
  },
1469
- "o1-mini": {
1673
+ "o1-2024-12-17": {
1470
1674
  type: "token",
1471
- input: 3,
1472
- input_cached: 1.5,
1473
- output: 15
1675
+ input: 15,
1676
+ input_cached: 7.5,
1677
+ output: 60
1474
1678
  },
1475
1679
  "o3-mini": {
1476
1680
  type: "token",
1477
- input: 3,
1478
- input_cached: 1.5,
1479
- output: 15
1681
+ input: 1.1,
1682
+ input_cached: 0.55,
1683
+ output: 4.4
1480
1684
  },
1481
- "gpt-4o-audio-preview": {
1685
+ "o3-mini-2025-01-31": {
1482
1686
  type: "token",
1483
- input: 20,
1484
- output: 80
1687
+ input: 1.1,
1688
+ input_cached: 0.55,
1689
+ output: 4.4
1485
1690
  },
1486
- "gpt-4o-vision-preview": {
1691
+ "o1-mini": {
1487
1692
  type: "token",
1488
- input: 20,
1489
- output: 80
1693
+ input: 1.1,
1694
+ input_cached: 0.55,
1695
+ output: 4.4
1696
+ },
1697
+ "o1-mini-2024-09-12": {
1698
+ type: "token",
1699
+ input: 1.1,
1700
+ input_cached: 0.55,
1701
+ output: 4.4
1490
1702
  },
1491
1703
  "whisper-1": {
1492
1704
  type: "minute",
@@ -1539,22 +1751,37 @@ var anthropic_provider_default = {
1539
1751
  name: "Anthropic",
1540
1752
  websiteUrl: "https://www.anthropic.com/",
1541
1753
  apiUrl: "https://api.anthropic.com/v1",
1542
- defaultModel: "claude-3-sonnet",
1754
+ defaultModel: "claude-3-5-sonnet-20241022",
1543
1755
  models: {
1544
- "claude-3-opus": {
1756
+ "claude-3-opus-20240229": {
1545
1757
  type: "token",
1546
1758
  input: 15,
1547
1759
  output: 75
1548
1760
  },
1549
- "claude-3-sonnet": {
1761
+ "claude-3-sonnet-20240229": {
1550
1762
  type: "token",
1551
1763
  input: 3,
1552
1764
  output: 15
1553
1765
  },
1554
- "claude-3-haiku": {
1766
+ "claude-3-haiku-20240307": {
1555
1767
  type: "token",
1556
- input: 2.5,
1557
- output: 12.5
1768
+ input: 0.25,
1769
+ output: 1.25
1770
+ },
1771
+ "claude-3-5-sonnet-20241022": {
1772
+ type: "token",
1773
+ input: 3,
1774
+ output: 15
1775
+ },
1776
+ "claude-3-5-sonnet-20240620": {
1777
+ type: "token",
1778
+ input: 3,
1779
+ output: 15
1780
+ },
1781
+ "claude-3-5-haiku-20241022": {
1782
+ type: "token",
1783
+ input: 0.8,
1784
+ output: 4
1558
1785
  }
1559
1786
  }
1560
1787
  };
@@ -1580,6 +1807,206 @@ var mistral_provider_default = {
1580
1807
  }
1581
1808
  };
1582
1809
 
1810
+ // src/data/providers/cohere-provider.json
1811
+ var cohere_provider_default = {
1812
+ id: "cohere",
1813
+ name: "Cohere",
1814
+ websiteUrl: "https://cohere.com",
1815
+ apiUrl: "https://docs.cohere.com/reference",
1816
+ models: {
1817
+ "command-r7b-12-2024": {
1818
+ type: "token",
1819
+ input: 0.0375,
1820
+ output: 0.15
1821
+ },
1822
+ "command-r-plus-08-2024": {
1823
+ type: "token",
1824
+ input: 2.5,
1825
+ output: 10
1826
+ },
1827
+ "command-r-03-2024": {
1828
+ type: "token",
1829
+ input: 0.15,
1830
+ output: 0.6
1831
+ },
1832
+ command: {
1833
+ type: "token",
1834
+ input: 1500,
1835
+ output: 2e3
1836
+ },
1837
+ "command-light": {
1838
+ type: "token",
1839
+ input: 300,
1840
+ output: 600
1841
+ },
1842
+ "embed-english-v3.0": {
1843
+ type: "token",
1844
+ input: 0.1,
1845
+ output: 0
1846
+ },
1847
+ "embed-english-light-v3.0": {
1848
+ type: "token",
1849
+ input: 30,
1850
+ output: 0
1851
+ },
1852
+ "embed-multilingual-v3.0": {
1853
+ type: "token",
1854
+ input: 100,
1855
+ output: 0
1856
+ },
1857
+ "embed-multilingual-light-v3.0": {
1858
+ type: "token",
1859
+ input: 30,
1860
+ output: 0
1861
+ },
1862
+ "rerank-v3.5": {
1863
+ type: "token",
1864
+ input: 100,
1865
+ output: 0
1866
+ },
1867
+ "rerank-english-v3.0": {
1868
+ type: "token",
1869
+ input: 100,
1870
+ output: 0
1871
+ },
1872
+ "rerank-multilingual-v3.0": {
1873
+ type: "token",
1874
+ input: 100,
1875
+ output: 0
1876
+ }
1877
+ }
1878
+ };
1879
+
1880
+ // src/data/providers/xai-provider.json
1881
+ var xai_provider_default = {
1882
+ id: "xai",
1883
+ name: "X.AI",
1884
+ websiteUrl: "https://x.ai",
1885
+ apiUrl: "https://x.ai/api",
1886
+ models: {
1887
+ "grok-2-vision-1212": {
1888
+ type: "token",
1889
+ input: 2,
1890
+ output: 10
1891
+ },
1892
+ "grok-2-1212": {
1893
+ type: "token",
1894
+ input: 2,
1895
+ output: 10
1896
+ },
1897
+ "grok-vision-beta": {
1898
+ type: "token",
1899
+ input: 5,
1900
+ output: 15
1901
+ },
1902
+ "grok-beta": {
1903
+ type: "token",
1904
+ input: 5,
1905
+ output: 15
1906
+ }
1907
+ }
1908
+ };
1909
+
1910
+ // src/data/providers/google-provider.json
1911
+ var google_provider_default = {
1912
+ id: "google",
1913
+ name: "Google",
1914
+ websiteUrl: "https://ai.google.dev",
1915
+ apiUrl: "https://ai.google.dev/docs",
1916
+ models: {
1917
+ "gemini-2.0-flash": {
1918
+ type: "token",
1919
+ input: 0.1,
1920
+ output: 0.4
1921
+ },
1922
+ "gemini-2.0-flash-lite": {
1923
+ type: "token",
1924
+ input: 0.075,
1925
+ output: 0.3
1926
+ },
1927
+ "gemini-1.5-flash": {
1928
+ type: "token",
1929
+ input: 0.075,
1930
+ output: 0.3
1931
+ },
1932
+ "gemini-1.5-flash-8b": {
1933
+ type: "token",
1934
+ input: 0.0375,
1935
+ output: 0.15
1936
+ },
1937
+ "gemini-1.5-pro": {
1938
+ type: "token",
1939
+ input: 1.25,
1940
+ output: 5
1941
+ },
1942
+ "text-embedding-004": {
1943
+ type: "token",
1944
+ input: 0,
1945
+ output: 0
1946
+ }
1947
+ }
1948
+ };
1949
+
1950
+ // src/data/providers/deepseek-provider.json
1951
+ var deepseek_provider_default = {
1952
+ id: "deepseek",
1953
+ name: "DeepSeek",
1954
+ websiteUrl: "https://deepseek.com/",
1955
+ apiUrl: "https://api.deepseek.com/v1",
1956
+ defaultModel: "deepseek-chat",
1957
+ models: {
1958
+ "deepseek-chat": {
1959
+ type: "token",
1960
+ input: 0.2,
1961
+ output: 0.2
1962
+ },
1963
+ "deepseek-reasoner": {
1964
+ type: "token",
1965
+ input: 0.3,
1966
+ output: 0.3
1967
+ }
1968
+ }
1969
+ };
1970
+
1971
+ // src/data/providers/groq-provider.json
1972
+ var groq_provider_default = {
1973
+ id: "groq",
1974
+ name: "Groq",
1975
+ websiteUrl: "https://groq.com",
1976
+ apiUrl: "https://api.groq.com/openai/v1",
1977
+ defaultModel: "llama3-70b-8192",
1978
+ models: {
1979
+ "llama3-70b-8192": {
1980
+ type: "token",
1981
+ input: 0.7,
1982
+ output: 0.7
1983
+ },
1984
+ "llama3-8b-8192": {
1985
+ type: "token",
1986
+ input: 0.1,
1987
+ output: 0.1
1988
+ },
1989
+ "mixtral-8x7b-32768": {
1990
+ type: "token",
1991
+ input: 0.5,
1992
+ output: 0.5
1993
+ },
1994
+ "gemma2-9b-it": {
1995
+ type: "token",
1996
+ input: 0.2,
1997
+ output: 0.2
1998
+ },
1999
+ "whisper-large-v3": {
2000
+ type: "minute",
2001
+ price: 6e-3
2002
+ },
2003
+ "whisper-large-v3-turbo": {
2004
+ type: "minute",
2005
+ price: 6e-3
2006
+ }
2007
+ }
2008
+ };
2009
+
1583
2010
  // src/builders/providers.ts
1584
2011
  function isTokenPrice(price) {
1585
2012
  return typeof price === "object" && price !== null && "type" in price && price.type === "token" && "input" in price && typeof price.input === "number" && "output" in price && typeof price.output === "number";
@@ -1593,6 +2020,9 @@ function isCharacterPrice(price) {
1593
2020
  function isMinutePrice(price) {
1594
2021
  return typeof price === "object" && price !== null && "type" in price && price.type === "minute" && "price" in price && typeof price.price === "number";
1595
2022
  }
2023
+ function isSearchPrice(price) {
2024
+ return typeof price === "object" && price !== null && "type" in price && price.type === "search" && "price" in price && typeof price.price === "number";
2025
+ }
1596
2026
  function validateProvider(raw) {
1597
2027
  if (typeof raw !== "object" || raw === null) {
1598
2028
  throw new Error("Provider data must be an object");
@@ -1615,7 +2045,7 @@ function validateProvider(raw) {
1615
2045
  }
1616
2046
  const models2 = provider.models;
1617
2047
  Object.values(models2).forEach((price) => {
1618
- if (!isTokenPrice(price) && !isImagePrice(price) && !isCharacterPrice(price) && !isMinutePrice(price)) {
2048
+ if (!isTokenPrice(price) && !isImagePrice(price) && !isCharacterPrice(price) && !isMinutePrice(price) && !isSearchPrice(price)) {
1619
2049
  throw new Error(`Invalid price data: ${JSON.stringify(price)}`);
1620
2050
  }
1621
2051
  });
@@ -1631,7 +2061,12 @@ function buildAllProviders() {
1631
2061
  return [
1632
2062
  validateProvider(openai_provider_default),
1633
2063
  validateProvider(anthropic_provider_default),
1634
- validateProvider(mistral_provider_default)
2064
+ validateProvider(mistral_provider_default),
2065
+ validateProvider(cohere_provider_default),
2066
+ validateProvider(xai_provider_default),
2067
+ validateProvider(google_provider_default),
2068
+ validateProvider(deepseek_provider_default),
2069
+ validateProvider(groq_provider_default)
1635
2070
  ];
1636
2071
  }
1637
2072
  function buildProvidersData() {