@dreb/ai 2.34.1 → 2.34.3

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.
@@ -368,10 +368,10 @@ export const MODELS = {
368
368
  reasoning: true,
369
369
  input: ["text", "image"],
370
370
  cost: {
371
- input: 1,
372
- output: 5,
373
- cacheRead: 0.1,
374
- cacheWrite: 1.25,
371
+ input: 1.1,
372
+ output: 5.5,
373
+ cacheRead: 0.11,
374
+ cacheWrite: 1.375,
375
375
  },
376
376
  contextWindow: 200000,
377
377
  maxTokens: 64000,
@@ -385,10 +385,10 @@ export const MODELS = {
385
385
  reasoning: true,
386
386
  input: ["text", "image"],
387
387
  cost: {
388
- input: 5,
389
- output: 25,
390
- cacheRead: 0.5,
391
- cacheWrite: 6.25,
388
+ input: 5.5,
389
+ output: 27.5,
390
+ cacheRead: 0.55,
391
+ cacheWrite: 6.875,
392
392
  },
393
393
  contextWindow: 200000,
394
394
  maxTokens: 64000,
@@ -1600,6 +1600,23 @@ export const MODELS = {
1600
1600
  contextWindow: 1040000,
1601
1601
  maxTokens: 8192,
1602
1602
  },
1603
+ "xai.grok-4.3": {
1604
+ id: "xai.grok-4.3",
1605
+ name: "Grok 4.3",
1606
+ api: "bedrock-converse-stream",
1607
+ provider: "amazon-bedrock",
1608
+ baseUrl: "https://bedrock-runtime.us-east-1.amazonaws.com",
1609
+ reasoning: true,
1610
+ input: ["text", "image"],
1611
+ cost: {
1612
+ input: 1.25,
1613
+ output: 2.5,
1614
+ cacheRead: 0.2,
1615
+ cacheWrite: 0,
1616
+ },
1617
+ contextWindow: 1000000,
1618
+ maxTokens: 131072,
1619
+ },
1603
1620
  "zai.glm-4.7": {
1604
1621
  id: "zai.glm-4.7",
1605
1622
  name: "GLM-4.7",
@@ -1653,40 +1670,6 @@ export const MODELS = {
1653
1670
  },
1654
1671
  },
1655
1672
  "anthropic": {
1656
- "claude-3-5-haiku-20241022": {
1657
- id: "claude-3-5-haiku-20241022",
1658
- name: "Claude Haiku 3.5",
1659
- api: "anthropic-messages",
1660
- provider: "anthropic",
1661
- baseUrl: "https://api.anthropic.com",
1662
- reasoning: false,
1663
- input: ["text", "image"],
1664
- cost: {
1665
- input: 0.8,
1666
- output: 4,
1667
- cacheRead: 0.08,
1668
- cacheWrite: 1,
1669
- },
1670
- contextWindow: 200000,
1671
- maxTokens: 8192,
1672
- },
1673
- "claude-3-5-haiku-latest": {
1674
- id: "claude-3-5-haiku-latest",
1675
- name: "Claude Haiku 3.5 (latest)",
1676
- api: "anthropic-messages",
1677
- provider: "anthropic",
1678
- baseUrl: "https://api.anthropic.com",
1679
- reasoning: false,
1680
- input: ["text", "image"],
1681
- cost: {
1682
- input: 0.8,
1683
- output: 4,
1684
- cacheRead: 0.08,
1685
- cacheWrite: 1,
1686
- },
1687
- contextWindow: 200000,
1688
- maxTokens: 8192,
1689
- },
1690
1673
  "claude-3-5-sonnet-20240620": {
1691
1674
  id: "claude-3-5-sonnet-20240620",
1692
1675
  name: "Claude Sonnet 3.5",
@@ -4054,7 +4037,7 @@ export const MODELS = {
4054
4037
  cost: {
4055
4038
  input: 0.075,
4056
4039
  output: 0.3,
4057
- cacheRead: 0.037,
4040
+ cacheRead: 0,
4058
4041
  cacheWrite: 0,
4059
4042
  },
4060
4043
  contextWindow: 131072,
@@ -4727,6 +4710,24 @@ export const MODELS = {
4727
4710
  contextWindow: 262144,
4728
4711
  maxTokens: 262144,
4729
4712
  },
4713
+ "openai/gpt-oss-120b": {
4714
+ id: "openai/gpt-oss-120b",
4715
+ name: "GPT OSS 120B",
4716
+ api: "openai-completions",
4717
+ provider: "huggingface",
4718
+ baseUrl: "https://router.huggingface.co/v1",
4719
+ compat: { "supportsDeveloperRole": false },
4720
+ reasoning: true,
4721
+ input: ["text"],
4722
+ cost: {
4723
+ input: 0.25,
4724
+ output: 0.69,
4725
+ cacheRead: 0,
4726
+ cacheWrite: 0,
4727
+ },
4728
+ contextWindow: 131072,
4729
+ maxTokens: 32768,
4730
+ },
4730
4731
  "stepfun-ai/Step-3.5-Flash": {
4731
4732
  id: "stepfun-ai/Step-3.5-Flash",
4732
4733
  name: "Step 3.5 Flash",
@@ -7649,23 +7650,6 @@ export const MODELS = {
7649
7650
  contextWindow: 1000000,
7650
7651
  maxTokens: 128000,
7651
7652
  },
7652
- "anthropic/claude-opus-4.6-fast": {
7653
- id: "anthropic/claude-opus-4.6-fast",
7654
- name: "Anthropic: Claude Opus 4.6 (Fast)",
7655
- api: "openai-completions",
7656
- provider: "openrouter",
7657
- baseUrl: "https://openrouter.ai/api/v1",
7658
- reasoning: true,
7659
- input: ["text", "image"],
7660
- cost: {
7661
- input: 30,
7662
- output: 150,
7663
- cacheRead: 3,
7664
- cacheWrite: 37.5,
7665
- },
7666
- contextWindow: 1000000,
7667
- maxTokens: 128000,
7668
- },
7669
7653
  "anthropic/claude-opus-4.7": {
7670
7654
  id: "anthropic/claude-opus-4.7",
7671
7655
  name: "Anthropic: Claude Opus 4.7",
@@ -9092,7 +9076,7 @@ export const MODELS = {
9092
9076
  cacheWrite: 0,
9093
9077
  },
9094
9078
  contextWindow: 131072,
9095
- maxTokens: 32768,
9079
+ maxTokens: 100352,
9096
9080
  },
9097
9081
  "moonshotai/kimi-k2-0905": {
9098
9082
  id: "moonshotai/kimi-k2-0905",
@@ -9109,7 +9093,7 @@ export const MODELS = {
9109
9093
  cacheWrite: 0,
9110
9094
  },
9111
9095
  contextWindow: 262144,
9112
- maxTokens: 262144,
9096
+ maxTokens: 100352,
9113
9097
  },
9114
9098
  "moonshotai/kimi-k2-thinking": {
9115
9099
  id: "moonshotai/kimi-k2-thinking",
@@ -9154,9 +9138,9 @@ export const MODELS = {
9154
9138
  reasoning: true,
9155
9139
  input: ["text", "image"],
9156
9140
  cost: {
9157
- input: 0.66,
9158
- output: 3.41,
9159
- cacheRead: 0.144,
9141
+ input: 0.55,
9142
+ output: 3.1999999999999997,
9143
+ cacheRead: 0.11,
9160
9144
  cacheWrite: 0,
9161
9145
  },
9162
9146
  contextWindow: 262144,
@@ -11075,8 +11059,8 @@ export const MODELS = {
11075
11059
  reasoning: true,
11076
11060
  input: ["text", "image"],
11077
11061
  cost: {
11078
- input: 0.28850000000000003,
11079
- output: 2.65,
11062
+ input: 0.2596,
11063
+ output: 2.3850000000000002,
11080
11064
  cacheRead: 0,
11081
11065
  cacheWrite: 0,
11082
11066
  },
@@ -11262,13 +11246,13 @@ export const MODELS = {
11262
11246
  reasoning: true,
11263
11247
  input: ["text"],
11264
11248
  cost: {
11265
- input: 0.09,
11249
+ input: 0.09999999999999999,
11266
11250
  output: 0.3,
11267
- cacheRead: 0.02,
11251
+ cacheRead: 0,
11268
11252
  cacheWrite: 0,
11269
11253
  },
11270
11254
  contextWindow: 262144,
11271
- maxTokens: 16384,
11255
+ maxTokens: 65536,
11272
11256
  },
11273
11257
  "stepfun/step-3.7-flash": {
11274
11258
  id: "stepfun/step-3.7-flash",
@@ -11602,13 +11586,13 @@ export const MODELS = {
11602
11586
  reasoning: true,
11603
11587
  input: ["text"],
11604
11588
  cost: {
11605
- input: 0.95,
11589
+ input: 0.94,
11606
11590
  output: 3,
11607
11591
  cacheRead: 0.18,
11608
11592
  cacheWrite: 0,
11609
11593
  },
11610
11594
  contextWindow: 1048576,
11611
- maxTokens: 32768,
11595
+ maxTokens: 4096,
11612
11596
  },
11613
11597
  "z-ai/glm-5v-turbo": {
11614
11598
  id: "z-ai/glm-5v-turbo",
@@ -11738,9 +11722,9 @@ export const MODELS = {
11738
11722
  reasoning: true,
11739
11723
  input: ["text", "image"],
11740
11724
  cost: {
11741
- input: 0.66,
11742
- output: 3.41,
11743
- cacheRead: 0.144,
11725
+ input: 0.55,
11726
+ output: 3.1999999999999997,
11727
+ cacheRead: 0.11,
11744
11728
  cacheWrite: 0,
11745
11729
  },
11746
11730
  contextWindow: 262144,
@@ -12607,13 +12591,13 @@ export const MODELS = {
12607
12591
  reasoning: true,
12608
12592
  input: ["text"],
12609
12593
  cost: {
12610
- input: 0.56,
12611
- output: 1.68,
12612
- cacheRead: 0.28,
12594
+ input: 0.6,
12595
+ output: 1.7,
12596
+ cacheRead: 0,
12613
12597
  cacheWrite: 0,
12614
12598
  },
12615
- contextWindow: 163840,
12616
- maxTokens: 8192,
12599
+ contextWindow: 128000,
12600
+ maxTokens: 128000,
12617
12601
  },
12618
12602
  "deepseek/deepseek-v3.1-terminus": {
12619
12603
  id: "deepseek/deepseek-v3.1-terminus",
@@ -13559,13 +13543,13 @@ export const MODELS = {
13559
13543
  reasoning: true,
13560
13544
  input: ["text"],
13561
13545
  cost: {
13562
- input: 0.6,
13563
- output: 2.5,
13564
- cacheRead: 0.15,
13546
+ input: 0.47,
13547
+ output: 2,
13548
+ cacheRead: 0.14100000000000001,
13565
13549
  cacheWrite: 0,
13566
13550
  },
13567
- contextWindow: 262114,
13568
- maxTokens: 262114,
13551
+ contextWindow: 216144,
13552
+ maxTokens: 216144,
13569
13553
  },
13570
13554
  "moonshotai/kimi-k2.5": {
13571
13555
  id: "moonshotai/kimi-k2.5",
@@ -14239,13 +14223,13 @@ export const MODELS = {
14239
14223
  reasoning: true,
14240
14224
  input: ["text"],
14241
14225
  cost: {
14242
- input: 0.35,
14243
- output: 0.75,
14244
- cacheRead: 0.25,
14226
+ input: 0.09999999999999999,
14227
+ output: 0.5,
14228
+ cacheRead: 0,
14245
14229
  cacheWrite: 0,
14246
14230
  },
14247
14231
  contextWindow: 131072,
14248
- maxTokens: 131000,
14232
+ maxTokens: 131072,
14249
14233
  },
14250
14234
  "openai/gpt-oss-20b": {
14251
14235
  id: "openai/gpt-oss-20b",
@@ -14674,7 +14658,7 @@ export const MODELS = {
14674
14658
  },
14675
14659
  "zai/glm-4.5": {
14676
14660
  id: "zai/glm-4.5",
14677
- name: "GLM-4.5",
14661
+ name: "GLM 4.5",
14678
14662
  api: "anthropic-messages",
14679
14663
  provider: "vercel-ai-gateway",
14680
14664
  baseUrl: "https://ai-gateway.vercel.sh",
@@ -14783,13 +14767,13 @@ export const MODELS = {
14783
14767
  reasoning: true,
14784
14768
  input: ["text"],
14785
14769
  cost: {
14786
- input: 2.25,
14787
- output: 2.75,
14788
- cacheRead: 2.25,
14770
+ input: 0.6,
14771
+ output: 2.2,
14772
+ cacheRead: 0.12,
14789
14773
  cacheWrite: 0,
14790
14774
  },
14791
- contextWindow: 131000,
14792
- maxTokens: 40000,
14775
+ contextWindow: 200000,
14776
+ maxTokens: 120000,
14793
14777
  },
14794
14778
  "zai/glm-4.7-flash": {
14795
14779
  id: "zai/glm-4.7-flash",
@@ -14834,8 +14818,8 @@ export const MODELS = {
14834
14818
  reasoning: true,
14835
14819
  input: ["text"],
14836
14820
  cost: {
14837
- input: 1,
14838
- output: 3.1999999999999997,
14821
+ input: 0.95,
14822
+ output: 3.15,
14839
14823
  cacheRead: 0.19999999999999998,
14840
14824
  cacheWrite: 0,
14841
14825
  },
@@ -14868,13 +14852,13 @@ export const MODELS = {
14868
14852
  reasoning: true,
14869
14853
  input: ["text"],
14870
14854
  cost: {
14871
- input: 1.4,
14872
- output: 4.4,
14855
+ input: 1.3,
14856
+ output: 4.300000000000001,
14873
14857
  cacheRead: 0.26,
14874
14858
  cacheWrite: 0,
14875
14859
  },
14876
- contextWindow: 202800,
14877
- maxTokens: 64000,
14860
+ contextWindow: 202000,
14861
+ maxTokens: 202000,
14878
14862
  },
14879
14863
  "zai/glm-5.2": {
14880
14864
  id: "zai/glm-5.2",