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.js CHANGED
@@ -631,7 +631,7 @@ var anthropic_models_default = {
631
631
  creator: "anthropic",
632
632
  models: [
633
633
  {
634
- id: "claude-3-opus",
634
+ id: "claude-3-opus-20240229",
635
635
  name: "Claude 3 Opus",
636
636
  license: "proprietary",
637
637
  providers: ["anthropic", "aws", "google"],
@@ -649,17 +649,10 @@ var anthropic_models_default = {
649
649
  maxOutput: 4096,
650
650
  outputIsFixed: 1
651
651
  },
652
- aliases: ["claude-3-opus-latest"]
653
- },
654
- {
655
- id: "claude-3-opus-20240229",
656
- extends: "claude-3-opus",
657
- overrides: {
658
- name: "Claude 3 Opus (2024-02-29)"
659
- }
652
+ aliases: ["claude-3-opus-latest", "claude-3-opus"]
660
653
  },
661
654
  {
662
- id: "claude-3-sonnet",
655
+ id: "claude-3-sonnet-20240229",
663
656
  name: "Claude 3 Sonnet",
664
657
  license: "proprietary",
665
658
  providers: ["anthropic", "aws", "google"],
@@ -677,17 +670,10 @@ var anthropic_models_default = {
677
670
  maxOutput: 4096,
678
671
  outputIsFixed: 1
679
672
  },
680
- aliases: ["claude-3-sonnet-latest"]
681
- },
682
- {
683
- id: "claude-3-sonnet-20240229",
684
- extends: "claude-3-sonnet",
685
- overrides: {
686
- name: "Claude 3 Sonnet (2024-02-29)"
687
- }
673
+ aliases: ["claude-3-sonnet-latest", "claude-3-sonnet"]
688
674
  },
689
675
  {
690
- id: "claude-3-haiku",
676
+ id: "claude-3-haiku-20240307",
691
677
  name: "Claude 3 Haiku",
692
678
  license: "proprietary",
693
679
  providers: ["anthropic", "aws", "google"],
@@ -704,17 +690,11 @@ var anthropic_models_default = {
704
690
  total: 2e5,
705
691
  maxOutput: 4096,
706
692
  outputIsFixed: 1
707
- }
708
- },
709
- {
710
- id: "claude-3-haiku-20240307",
711
- extends: "claude-3-haiku",
712
- overrides: {
713
- name: "Claude 3 Haiku (2024-03-07)"
714
- }
693
+ },
694
+ aliases: ["claude-3-haiku"]
715
695
  },
716
696
  {
717
- id: "claude-3-5-sonnet",
697
+ id: "claude-3-5-sonnet-20241022",
718
698
  name: "Claude 3.5 Sonnet",
719
699
  license: "proprietary",
720
700
  providers: ["anthropic", "aws", "google"],
@@ -732,17 +712,30 @@ var anthropic_models_default = {
732
712
  maxOutput: 8192,
733
713
  outputIsFixed: 1
734
714
  },
735
- aliases: ["claude-3-5-sonnet-latest"]
715
+ aliases: ["claude-3-5-sonnet-latest", "claude-3-5-sonnet"]
736
716
  },
737
717
  {
738
- id: "claude-3-5-sonnet-20241022",
739
- extends: "claude-3-5-sonnet",
740
- overrides: {
741
- name: "Claude 3.5 Sonnet (2024-10-22)"
718
+ id: "claude-3-5-sonnet-20240620",
719
+ name: "Claude 3.5 Sonnet (2024-06-20)",
720
+ license: "proprietary",
721
+ providers: ["anthropic", "aws", "google"],
722
+ can: [
723
+ "chat",
724
+ "text-in",
725
+ "text-out",
726
+ "img-in",
727
+ "json-out",
728
+ "function-out"
729
+ ],
730
+ context: {
731
+ type: "token",
732
+ total: 2e5,
733
+ maxOutput: 8192,
734
+ outputIsFixed: 1
742
735
  }
743
736
  },
744
737
  {
745
- id: "claude-3-5-haiku",
738
+ id: "claude-3-5-haiku-20241022",
746
739
  name: "Claude 3.5 Haiku",
747
740
  license: "proprietary",
748
741
  providers: ["anthropic", "aws", "google"],
@@ -759,14 +752,7 @@ var anthropic_models_default = {
759
752
  maxOutput: 8192,
760
753
  outputIsFixed: 1
761
754
  },
762
- aliases: ["claude-3-5-haiku-latest"]
763
- },
764
- {
765
- id: "claude-3-5-haiku-20241022",
766
- extends: "claude-3-5-haiku",
767
- overrides: {
768
- name: "Claude 3.5 Haiku (2024-10-22)"
769
- }
755
+ aliases: ["claude-3-5-haiku-latest", "claude-3-5-haiku"]
770
756
  }
771
757
  ]
772
758
  };
@@ -1149,8 +1135,15 @@ var cohere_models_default = {
1149
1135
  name: "Command R7B",
1150
1136
  creator: "cohere",
1151
1137
  license: "proprietary",
1152
- providers: ["cohere"],
1153
- can: ["chat", "text-in", "text-out", "reason", "function-out"],
1138
+ providers: [
1139
+ "cohere"
1140
+ ],
1141
+ can: [
1142
+ "chat",
1143
+ "text-in",
1144
+ "text-out",
1145
+ "function-out"
1146
+ ],
1154
1147
  context: {
1155
1148
  type: "token",
1156
1149
  total: 128e3,
@@ -1162,36 +1155,70 @@ var cohere_models_default = {
1162
1155
  name: "Command R+",
1163
1156
  creator: "cohere",
1164
1157
  license: "proprietary",
1165
- providers: ["cohere", "bedrock", "azure", "oracle"],
1166
- can: ["chat", "text-in", "text-out", "reason", "function-out"],
1158
+ providers: [
1159
+ "cohere",
1160
+ "bedrock",
1161
+ "azure",
1162
+ "oracle"
1163
+ ],
1164
+ can: [
1165
+ "chat",
1166
+ "text-in",
1167
+ "text-out",
1168
+ "reason",
1169
+ "function-out"
1170
+ ],
1167
1171
  context: {
1168
1172
  type: "token",
1169
1173
  total: 128e3,
1170
1174
  maxOutput: 4096
1171
1175
  },
1172
- aliases: ["command-r-plus"]
1176
+ aliases: [
1177
+ "command-r-plus"
1178
+ ]
1173
1179
  },
1174
1180
  {
1175
1181
  id: "command-r-03-2024",
1176
1182
  name: "Command R",
1177
1183
  creator: "cohere",
1178
1184
  license: "proprietary",
1179
- providers: ["cohere", "bedrock", "azure", "oracle"],
1180
- can: ["chat", "text-in", "text-out", "reason", "function-out"],
1185
+ providers: [
1186
+ "cohere",
1187
+ "bedrock",
1188
+ "azure",
1189
+ "oracle"
1190
+ ],
1191
+ can: [
1192
+ "chat",
1193
+ "text-in",
1194
+ "text-out",
1195
+ "reason",
1196
+ "function-out"
1197
+ ],
1181
1198
  context: {
1182
1199
  type: "token",
1183
1200
  total: 128e3,
1184
1201
  maxOutput: 4096
1185
1202
  },
1186
- aliases: ["command-r"]
1203
+ aliases: [
1204
+ "command-r"
1205
+ ]
1187
1206
  },
1188
1207
  {
1189
1208
  id: "command",
1190
1209
  name: "Command",
1191
1210
  creator: "cohere",
1192
1211
  license: "proprietary",
1193
- providers: ["cohere", "bedrock", "oracle"],
1194
- can: ["chat", "text-in", "text-out"],
1212
+ providers: [
1213
+ "cohere",
1214
+ "bedrock",
1215
+ "oracle"
1216
+ ],
1217
+ can: [
1218
+ "chat",
1219
+ "text-in",
1220
+ "text-out"
1221
+ ],
1195
1222
  context: {
1196
1223
  type: "token",
1197
1224
  total: 4096,
@@ -1203,8 +1230,16 @@ var cohere_models_default = {
1203
1230
  name: "Command Light",
1204
1231
  creator: "cohere",
1205
1232
  license: "proprietary",
1206
- providers: ["cohere", "bedrock", "oracle"],
1207
- can: ["chat", "text-in", "text-out"],
1233
+ providers: [
1234
+ "cohere",
1235
+ "bedrock",
1236
+ "oracle"
1237
+ ],
1238
+ can: [
1239
+ "chat",
1240
+ "text-in",
1241
+ "text-out"
1242
+ ],
1208
1243
  context: {
1209
1244
  type: "token",
1210
1245
  total: 4096,
@@ -1216,8 +1251,17 @@ var cohere_models_default = {
1216
1251
  name: "Embed English v3.0",
1217
1252
  creator: "cohere",
1218
1253
  license: "proprietary",
1219
- providers: ["cohere", "bedrock", "azure", "oracle"],
1220
- can: ["text-in", "img-in", "vectors-out"],
1254
+ providers: [
1255
+ "cohere",
1256
+ "bedrock",
1257
+ "azure",
1258
+ "oracle"
1259
+ ],
1260
+ can: [
1261
+ "text-in",
1262
+ "img-in",
1263
+ "vectors-out"
1264
+ ],
1221
1265
  context: {
1222
1266
  type: "token",
1223
1267
  total: 512,
@@ -1229,8 +1273,15 @@ var cohere_models_default = {
1229
1273
  name: "Embed English Light v3.0",
1230
1274
  creator: "cohere",
1231
1275
  license: "proprietary",
1232
- providers: ["cohere", "oracle"],
1233
- can: ["text-in", "img-in", "vectors-out"],
1276
+ providers: [
1277
+ "cohere",
1278
+ "oracle"
1279
+ ],
1280
+ can: [
1281
+ "text-in",
1282
+ "img-in",
1283
+ "vectors-out"
1284
+ ],
1234
1285
  context: {
1235
1286
  type: "token",
1236
1287
  total: 512,
@@ -1242,8 +1293,17 @@ var cohere_models_default = {
1242
1293
  name: "Embed Multilingual v3.0",
1243
1294
  creator: "cohere",
1244
1295
  license: "proprietary",
1245
- providers: ["cohere", "bedrock", "azure", "oracle"],
1246
- can: ["text-in", "img-in", "vectors-out"],
1296
+ providers: [
1297
+ "cohere",
1298
+ "bedrock",
1299
+ "azure",
1300
+ "oracle"
1301
+ ],
1302
+ can: [
1303
+ "text-in",
1304
+ "img-in",
1305
+ "vectors-out"
1306
+ ],
1247
1307
  context: {
1248
1308
  type: "token",
1249
1309
  total: 512,
@@ -1255,8 +1315,15 @@ var cohere_models_default = {
1255
1315
  name: "Embed Multilingual Light v3.0",
1256
1316
  creator: "cohere",
1257
1317
  license: "proprietary",
1258
- providers: ["cohere", "oracle"],
1259
- can: ["text-in", "img-in", "vectors-out"],
1318
+ providers: [
1319
+ "cohere",
1320
+ "oracle"
1321
+ ],
1322
+ can: [
1323
+ "text-in",
1324
+ "img-in",
1325
+ "vectors-out"
1326
+ ],
1260
1327
  context: {
1261
1328
  type: "token",
1262
1329
  total: 512,
@@ -1268,8 +1335,15 @@ var cohere_models_default = {
1268
1335
  name: "Rerank v3.5",
1269
1336
  creator: "cohere",
1270
1337
  license: "proprietary",
1271
- providers: ["cohere", "bedrock", "azure"],
1272
- can: ["text-in", "text-out"],
1338
+ providers: [
1339
+ "cohere",
1340
+ "bedrock",
1341
+ "azure"
1342
+ ],
1343
+ can: [
1344
+ "text-in",
1345
+ "text-out"
1346
+ ],
1273
1347
  context: {
1274
1348
  type: "token",
1275
1349
  total: 4096,
@@ -1281,8 +1355,14 @@ var cohere_models_default = {
1281
1355
  name: "Rerank English v3.0",
1282
1356
  creator: "cohere",
1283
1357
  license: "proprietary",
1284
- providers: ["cohere", "azure"],
1285
- can: ["text-in", "text-out"],
1358
+ providers: [
1359
+ "cohere",
1360
+ "azure"
1361
+ ],
1362
+ can: [
1363
+ "text-in",
1364
+ "text-out"
1365
+ ],
1286
1366
  context: {
1287
1367
  type: "token",
1288
1368
  total: 4096,
@@ -1294,8 +1374,14 @@ var cohere_models_default = {
1294
1374
  name: "Rerank Multilingual v3.0",
1295
1375
  creator: "cohere",
1296
1376
  license: "proprietary",
1297
- providers: ["cohere", "azure"],
1298
- can: ["text-in", "text-out"],
1377
+ providers: [
1378
+ "cohere",
1379
+ "azure"
1380
+ ],
1381
+ can: [
1382
+ "text-in",
1383
+ "text-out"
1384
+ ],
1299
1385
  context: {
1300
1386
  type: "token",
1301
1387
  total: 4096,
@@ -1479,43 +1565,169 @@ var openai_provider_default = {
1479
1565
  apiUrl: "https://api.openai.com/v1",
1480
1566
  defaultModel: "gpt-4o",
1481
1567
  models: {
1482
- "gpt-4o": {
1568
+ "chatgpt-4o-latest": {
1483
1569
  type: "token",
1484
- input: 20,
1485
- output: 80
1570
+ input: 5,
1571
+ output: 15
1572
+ },
1573
+ "gpt-4": {
1574
+ type: "token",
1575
+ input: 30,
1576
+ output: 60
1577
+ },
1578
+ "gpt-4-0613": {
1579
+ type: "token",
1580
+ input: 30,
1581
+ output: 60
1582
+ },
1583
+ "gpt-4-32k": {
1584
+ type: "token",
1585
+ input: 60,
1586
+ output: 120
1587
+ },
1588
+ "gpt-4-turbo": {
1589
+ type: "token",
1590
+ input: 10,
1591
+ output: 30
1592
+ },
1593
+ "gpt-4-turbo-2024-04-09": {
1594
+ type: "token",
1595
+ input: 10,
1596
+ output: 30
1486
1597
  },
1487
1598
  "gpt-3.5-turbo": {
1599
+ type: "token",
1600
+ input: 0.5,
1601
+ output: 1.5
1602
+ },
1603
+ "gpt-3.5-turbo-0125": {
1604
+ type: "token",
1605
+ input: 0.5,
1606
+ output: 1.5
1607
+ },
1608
+ "gpt-3.5-turbo-instruct": {
1609
+ type: "token",
1610
+ input: 1.5,
1611
+ output: 2
1612
+ },
1613
+ "gpt-3.5-turbo-16k-0613": {
1614
+ type: "token",
1615
+ input: 3,
1616
+ output: 4
1617
+ },
1618
+ "davinci-002": {
1619
+ type: "token",
1620
+ input: 2,
1621
+ output: 2
1622
+ },
1623
+ "babbage-002": {
1624
+ type: "token",
1625
+ input: 0.4,
1626
+ output: 0.4
1627
+ },
1628
+ "gpt-4o": {
1629
+ type: "token",
1630
+ input: 2.5,
1631
+ input_cached: 1.25,
1632
+ output: 10
1633
+ },
1634
+ "gpt-4o-2024-08-06": {
1635
+ type: "token",
1636
+ input: 2.5,
1637
+ input_cached: 1.25,
1638
+ output: 10
1639
+ },
1640
+ "gpt-4o-audio-preview": {
1641
+ type: "token",
1642
+ input: 2.5,
1643
+ output: 10
1644
+ },
1645
+ "gpt-4o-audio-preview-2024-12-17": {
1646
+ type: "token",
1647
+ input: 2.5,
1648
+ output: 10
1649
+ },
1650
+ "gpt-4o-realtime-preview": {
1651
+ type: "token",
1652
+ input: 5,
1653
+ input_cached: 2.5,
1654
+ output: 20
1655
+ },
1656
+ "gpt-4o-realtime-preview-2024-12-17": {
1488
1657
  type: "token",
1489
1658
  input: 5,
1659
+ input_cached: 2.5,
1490
1660
  output: 20
1491
1661
  },
1492
- "gpt-4o-vision": {
1662
+ "gpt-4o-mini": {
1663
+ type: "token",
1664
+ input: 0.15,
1665
+ input_cached: 0.075,
1666
+ output: 0.6
1667
+ },
1668
+ "gpt-4o-mini-2024-07-18": {
1669
+ type: "token",
1670
+ input: 0.15,
1671
+ input_cached: 0.075,
1672
+ output: 0.6
1673
+ },
1674
+ "gpt-4o-mini-audio-preview": {
1675
+ type: "token",
1676
+ input: 0.15,
1677
+ output: 0.6
1678
+ },
1679
+ "gpt-4o-mini-audio-preview-2024-12-17": {
1680
+ type: "token",
1681
+ input: 0.15,
1682
+ output: 0.6
1683
+ },
1684
+ "gpt-4o-mini-realtime-preview": {
1685
+ type: "token",
1686
+ input: 0.6,
1687
+ input_cached: 0.3,
1688
+ output: 2.4
1689
+ },
1690
+ "gpt-4o-mini-realtime-preview-2024-12-17": {
1691
+ type: "token",
1692
+ input: 0.6,
1693
+ input_cached: 0.3,
1694
+ output: 2.4
1695
+ },
1696
+ o1: {
1493
1697
  type: "token",
1494
1698
  input: 15,
1495
1699
  input_cached: 7.5,
1496
1700
  output: 60
1497
1701
  },
1498
- "o1-mini": {
1702
+ "o1-2024-12-17": {
1499
1703
  type: "token",
1500
- input: 3,
1501
- input_cached: 1.5,
1502
- output: 15
1704
+ input: 15,
1705
+ input_cached: 7.5,
1706
+ output: 60
1503
1707
  },
1504
1708
  "o3-mini": {
1505
1709
  type: "token",
1506
- input: 3,
1507
- input_cached: 1.5,
1508
- output: 15
1710
+ input: 1.1,
1711
+ input_cached: 0.55,
1712
+ output: 4.4
1509
1713
  },
1510
- "gpt-4o-audio-preview": {
1714
+ "o3-mini-2025-01-31": {
1511
1715
  type: "token",
1512
- input: 20,
1513
- output: 80
1716
+ input: 1.1,
1717
+ input_cached: 0.55,
1718
+ output: 4.4
1514
1719
  },
1515
- "gpt-4o-vision-preview": {
1720
+ "o1-mini": {
1516
1721
  type: "token",
1517
- input: 20,
1518
- output: 80
1722
+ input: 1.1,
1723
+ input_cached: 0.55,
1724
+ output: 4.4
1725
+ },
1726
+ "o1-mini-2024-09-12": {
1727
+ type: "token",
1728
+ input: 1.1,
1729
+ input_cached: 0.55,
1730
+ output: 4.4
1519
1731
  },
1520
1732
  "whisper-1": {
1521
1733
  type: "minute",
@@ -1568,22 +1780,37 @@ var anthropic_provider_default = {
1568
1780
  name: "Anthropic",
1569
1781
  websiteUrl: "https://www.anthropic.com/",
1570
1782
  apiUrl: "https://api.anthropic.com/v1",
1571
- defaultModel: "claude-3-sonnet",
1783
+ defaultModel: "claude-3-5-sonnet-20241022",
1572
1784
  models: {
1573
- "claude-3-opus": {
1785
+ "claude-3-opus-20240229": {
1574
1786
  type: "token",
1575
1787
  input: 15,
1576
1788
  output: 75
1577
1789
  },
1578
- "claude-3-sonnet": {
1790
+ "claude-3-sonnet-20240229": {
1579
1791
  type: "token",
1580
1792
  input: 3,
1581
1793
  output: 15
1582
1794
  },
1583
- "claude-3-haiku": {
1795
+ "claude-3-haiku-20240307": {
1584
1796
  type: "token",
1585
- input: 2.5,
1586
- output: 12.5
1797
+ input: 0.25,
1798
+ output: 1.25
1799
+ },
1800
+ "claude-3-5-sonnet-20241022": {
1801
+ type: "token",
1802
+ input: 3,
1803
+ output: 15
1804
+ },
1805
+ "claude-3-5-sonnet-20240620": {
1806
+ type: "token",
1807
+ input: 3,
1808
+ output: 15
1809
+ },
1810
+ "claude-3-5-haiku-20241022": {
1811
+ type: "token",
1812
+ input: 0.8,
1813
+ output: 4
1587
1814
  }
1588
1815
  }
1589
1816
  };
@@ -1609,6 +1836,206 @@ var mistral_provider_default = {
1609
1836
  }
1610
1837
  };
1611
1838
 
1839
+ // src/data/providers/cohere-provider.json
1840
+ var cohere_provider_default = {
1841
+ id: "cohere",
1842
+ name: "Cohere",
1843
+ websiteUrl: "https://cohere.com",
1844
+ apiUrl: "https://docs.cohere.com/reference",
1845
+ models: {
1846
+ "command-r7b-12-2024": {
1847
+ type: "token",
1848
+ input: 0.0375,
1849
+ output: 0.15
1850
+ },
1851
+ "command-r-plus-08-2024": {
1852
+ type: "token",
1853
+ input: 2.5,
1854
+ output: 10
1855
+ },
1856
+ "command-r-03-2024": {
1857
+ type: "token",
1858
+ input: 0.15,
1859
+ output: 0.6
1860
+ },
1861
+ command: {
1862
+ type: "token",
1863
+ input: 1500,
1864
+ output: 2e3
1865
+ },
1866
+ "command-light": {
1867
+ type: "token",
1868
+ input: 300,
1869
+ output: 600
1870
+ },
1871
+ "embed-english-v3.0": {
1872
+ type: "token",
1873
+ input: 0.1,
1874
+ output: 0
1875
+ },
1876
+ "embed-english-light-v3.0": {
1877
+ type: "token",
1878
+ input: 30,
1879
+ output: 0
1880
+ },
1881
+ "embed-multilingual-v3.0": {
1882
+ type: "token",
1883
+ input: 100,
1884
+ output: 0
1885
+ },
1886
+ "embed-multilingual-light-v3.0": {
1887
+ type: "token",
1888
+ input: 30,
1889
+ output: 0
1890
+ },
1891
+ "rerank-v3.5": {
1892
+ type: "token",
1893
+ input: 100,
1894
+ output: 0
1895
+ },
1896
+ "rerank-english-v3.0": {
1897
+ type: "token",
1898
+ input: 100,
1899
+ output: 0
1900
+ },
1901
+ "rerank-multilingual-v3.0": {
1902
+ type: "token",
1903
+ input: 100,
1904
+ output: 0
1905
+ }
1906
+ }
1907
+ };
1908
+
1909
+ // src/data/providers/xai-provider.json
1910
+ var xai_provider_default = {
1911
+ id: "xai",
1912
+ name: "X.AI",
1913
+ websiteUrl: "https://x.ai",
1914
+ apiUrl: "https://x.ai/api",
1915
+ models: {
1916
+ "grok-2-vision-1212": {
1917
+ type: "token",
1918
+ input: 2,
1919
+ output: 10
1920
+ },
1921
+ "grok-2-1212": {
1922
+ type: "token",
1923
+ input: 2,
1924
+ output: 10
1925
+ },
1926
+ "grok-vision-beta": {
1927
+ type: "token",
1928
+ input: 5,
1929
+ output: 15
1930
+ },
1931
+ "grok-beta": {
1932
+ type: "token",
1933
+ input: 5,
1934
+ output: 15
1935
+ }
1936
+ }
1937
+ };
1938
+
1939
+ // src/data/providers/google-provider.json
1940
+ var google_provider_default = {
1941
+ id: "google",
1942
+ name: "Google",
1943
+ websiteUrl: "https://ai.google.dev",
1944
+ apiUrl: "https://ai.google.dev/docs",
1945
+ models: {
1946
+ "gemini-2.0-flash": {
1947
+ type: "token",
1948
+ input: 0.1,
1949
+ output: 0.4
1950
+ },
1951
+ "gemini-2.0-flash-lite": {
1952
+ type: "token",
1953
+ input: 0.075,
1954
+ output: 0.3
1955
+ },
1956
+ "gemini-1.5-flash": {
1957
+ type: "token",
1958
+ input: 0.075,
1959
+ output: 0.3
1960
+ },
1961
+ "gemini-1.5-flash-8b": {
1962
+ type: "token",
1963
+ input: 0.0375,
1964
+ output: 0.15
1965
+ },
1966
+ "gemini-1.5-pro": {
1967
+ type: "token",
1968
+ input: 1.25,
1969
+ output: 5
1970
+ },
1971
+ "text-embedding-004": {
1972
+ type: "token",
1973
+ input: 0,
1974
+ output: 0
1975
+ }
1976
+ }
1977
+ };
1978
+
1979
+ // src/data/providers/deepseek-provider.json
1980
+ var deepseek_provider_default = {
1981
+ id: "deepseek",
1982
+ name: "DeepSeek",
1983
+ websiteUrl: "https://deepseek.com/",
1984
+ apiUrl: "https://api.deepseek.com/v1",
1985
+ defaultModel: "deepseek-chat",
1986
+ models: {
1987
+ "deepseek-chat": {
1988
+ type: "token",
1989
+ input: 0.2,
1990
+ output: 0.2
1991
+ },
1992
+ "deepseek-reasoner": {
1993
+ type: "token",
1994
+ input: 0.3,
1995
+ output: 0.3
1996
+ }
1997
+ }
1998
+ };
1999
+
2000
+ // src/data/providers/groq-provider.json
2001
+ var groq_provider_default = {
2002
+ id: "groq",
2003
+ name: "Groq",
2004
+ websiteUrl: "https://groq.com",
2005
+ apiUrl: "https://api.groq.com/openai/v1",
2006
+ defaultModel: "llama3-70b-8192",
2007
+ models: {
2008
+ "llama3-70b-8192": {
2009
+ type: "token",
2010
+ input: 0.7,
2011
+ output: 0.7
2012
+ },
2013
+ "llama3-8b-8192": {
2014
+ type: "token",
2015
+ input: 0.1,
2016
+ output: 0.1
2017
+ },
2018
+ "mixtral-8x7b-32768": {
2019
+ type: "token",
2020
+ input: 0.5,
2021
+ output: 0.5
2022
+ },
2023
+ "gemma2-9b-it": {
2024
+ type: "token",
2025
+ input: 0.2,
2026
+ output: 0.2
2027
+ },
2028
+ "whisper-large-v3": {
2029
+ type: "minute",
2030
+ price: 6e-3
2031
+ },
2032
+ "whisper-large-v3-turbo": {
2033
+ type: "minute",
2034
+ price: 6e-3
2035
+ }
2036
+ }
2037
+ };
2038
+
1612
2039
  // src/builders/providers.ts
1613
2040
  function isTokenPrice(price) {
1614
2041
  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";
@@ -1622,6 +2049,9 @@ function isCharacterPrice(price) {
1622
2049
  function isMinutePrice(price) {
1623
2050
  return typeof price === "object" && price !== null && "type" in price && price.type === "minute" && "price" in price && typeof price.price === "number";
1624
2051
  }
2052
+ function isSearchPrice(price) {
2053
+ return typeof price === "object" && price !== null && "type" in price && price.type === "search" && "price" in price && typeof price.price === "number";
2054
+ }
1625
2055
  function validateProvider(raw) {
1626
2056
  if (typeof raw !== "object" || raw === null) {
1627
2057
  throw new Error("Provider data must be an object");
@@ -1644,7 +2074,7 @@ function validateProvider(raw) {
1644
2074
  }
1645
2075
  const models2 = provider.models;
1646
2076
  Object.values(models2).forEach((price) => {
1647
- if (!isTokenPrice(price) && !isImagePrice(price) && !isCharacterPrice(price) && !isMinutePrice(price)) {
2077
+ if (!isTokenPrice(price) && !isImagePrice(price) && !isCharacterPrice(price) && !isMinutePrice(price) && !isSearchPrice(price)) {
1648
2078
  throw new Error(`Invalid price data: ${JSON.stringify(price)}`);
1649
2079
  }
1650
2080
  });
@@ -1660,7 +2090,12 @@ function buildAllProviders() {
1660
2090
  return [
1661
2091
  validateProvider(openai_provider_default),
1662
2092
  validateProvider(anthropic_provider_default),
1663
- validateProvider(mistral_provider_default)
2093
+ validateProvider(mistral_provider_default),
2094
+ validateProvider(cohere_provider_default),
2095
+ validateProvider(xai_provider_default),
2096
+ validateProvider(google_provider_default),
2097
+ validateProvider(deepseek_provider_default),
2098
+ validateProvider(groq_provider_default)
1664
2099
  ];
1665
2100
  }
1666
2101
  function buildProvidersData() {