@dreb/ai 2.66.0 → 2.66.1

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 (36) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +0 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +0 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/models.generated.d.ts +35 -103
  7. package/dist/models.generated.d.ts.map +1 -1
  8. package/dist/models.generated.js +94 -162
  9. package/dist/models.generated.js.map +1 -1
  10. package/dist/providers/amazon-bedrock.d.ts.map +1 -1
  11. package/dist/providers/amazon-bedrock.js +3 -0
  12. package/dist/providers/amazon-bedrock.js.map +1 -1
  13. package/dist/providers/google-gemini-cli.d.ts.map +1 -1
  14. package/dist/providers/google-gemini-cli.js +1 -1
  15. package/dist/providers/google-gemini-cli.js.map +1 -1
  16. package/dist/providers/google-vertex.d.ts.map +1 -1
  17. package/dist/providers/google-vertex.js +10 -22
  18. package/dist/providers/google-vertex.js.map +1 -1
  19. package/dist/providers/google.d.ts.map +1 -1
  20. package/dist/providers/google.js +10 -22
  21. package/dist/providers/google.js.map +1 -1
  22. package/dist/providers/openai-codex-responses.d.ts.map +1 -1
  23. package/dist/providers/openai-codex-responses.js +3 -0
  24. package/dist/providers/openai-codex-responses.js.map +1 -1
  25. package/dist/providers/openai-responses-shared.d.ts.map +1 -1
  26. package/dist/providers/openai-responses-shared.js +5 -1
  27. package/dist/providers/openai-responses-shared.js.map +1 -1
  28. package/dist/providers/simple-options.d.ts +0 -8
  29. package/dist/providers/simple-options.d.ts.map +1 -1
  30. package/dist/providers/simple-options.js +4 -10
  31. package/dist/providers/simple-options.js.map +1 -1
  32. package/dist/utils/overflow.d.ts +13 -3
  33. package/dist/utils/overflow.d.ts.map +1 -1
  34. package/dist/utils/overflow.js +22 -9
  35. package/dist/utils/overflow.js.map +1 -1
  36. package/package.json +1 -1
@@ -6535,7 +6535,7 @@ export const MODELS = {
6535
6535
  },
6536
6536
  "kimi-for-coding": {
6537
6537
  id: "kimi-for-coding",
6538
- name: "Kimi K2.7 Code",
6538
+ name: "kimi-for-coding",
6539
6539
  api: "anthropic-messages",
6540
6540
  provider: "kimi-coding",
6541
6541
  baseUrl: "https://api.kimi.com/coding",
@@ -6547,7 +6547,7 @@ export const MODELS = {
6547
6547
  cacheRead: 0,
6548
6548
  cacheWrite: 0,
6549
6549
  },
6550
- contextWindow: 262144,
6550
+ contextWindow: 1048576,
6551
6551
  maxTokens: 32768,
6552
6552
  },
6553
6553
  "kimi-for-coding-highspeed": {
@@ -10609,9 +10609,9 @@ export const MODELS = {
10609
10609
  reasoning: true,
10610
10610
  input: ["text"],
10611
10611
  cost: {
10612
- input: 0.08553999999999999,
10613
- output: 0.17107999999999998,
10614
- cacheRead: 0.017108,
10612
+ input: 0.08707999999999999,
10613
+ output: 0.17415999999999998,
10614
+ cacheRead: 0.017415999999999997,
10615
10615
  cacheWrite: 0,
10616
10616
  },
10617
10617
  contextWindow: 1048576,
@@ -10711,13 +10711,13 @@ export const MODELS = {
10711
10711
  reasoning: true,
10712
10712
  input: ["text"],
10713
10713
  cost: {
10714
- input: 0.66,
10715
- output: 1.9800000000000002,
10716
- cacheRead: 0.022,
10714
+ input: 0.57948,
10715
+ output: 1.73844,
10716
+ cacheRead: 0.018438,
10717
10717
  cacheWrite: 0,
10718
10718
  },
10719
10719
  contextWindow: 1048576,
10720
- maxTokens: 384000,
10720
+ maxTokens: 393216,
10721
10721
  },
10722
10722
  "deepseek/deepseek-v4-pro-0813:batch": {
10723
10723
  id: "deepseek/deepseek-v4-pro-0813:batch",
@@ -10872,23 +10872,6 @@ export const MODELS = {
10872
10872
  contextWindow: 1048576,
10873
10873
  maxTokens: 65536,
10874
10874
  },
10875
- "google/gemini-2.5-pro-preview-05-06": {
10876
- id: "google/gemini-2.5-pro-preview-05-06",
10877
- name: "Google: Gemini 2.5 Pro Preview 05-06",
10878
- api: "openai-completions",
10879
- provider: "openrouter",
10880
- baseUrl: "https://openrouter.ai/api/v1",
10881
- reasoning: true,
10882
- input: ["text", "image"],
10883
- cost: {
10884
- input: 1.25,
10885
- output: 10,
10886
- cacheRead: 0.125,
10887
- cacheWrite: 0.375,
10888
- },
10889
- contextWindow: 1048576,
10890
- maxTokens: 65535,
10891
- },
10892
10875
  "google/gemini-2.5-pro:batch": {
10893
10876
  id: "google/gemini-2.5-pro:batch",
10894
10877
  name: "Google: Gemini 2.5 Pro (batch)",
@@ -11629,13 +11612,13 @@ export const MODELS = {
11629
11612
  reasoning: false,
11630
11613
  input: ["text", "image"],
11631
11614
  cost: {
11632
- input: 0.19999999999999998,
11633
- output: 0.696,
11615
+ input: 0.1875,
11616
+ output: 0.6525,
11634
11617
  cacheRead: 0,
11635
11618
  cacheWrite: 0,
11636
11619
  },
11637
11620
  contextWindow: 1048576,
11638
- maxTokens: 115200,
11621
+ maxTokens: 16384,
11639
11622
  },
11640
11623
  "meta-llama/llama-4-scout": {
11641
11624
  id: "meta-llama/llama-4-scout",
@@ -12691,23 +12674,6 @@ export const MODELS = {
12691
12674
  contextWindow: 128000,
12692
12675
  maxTokens: 4096,
12693
12676
  },
12694
- "openai/gpt-4-turbo-preview": {
12695
- id: "openai/gpt-4-turbo-preview",
12696
- name: "OpenAI: GPT-4 Turbo Preview",
12697
- api: "openai-completions",
12698
- provider: "openrouter",
12699
- baseUrl: "https://openrouter.ai/api/v1",
12700
- reasoning: false,
12701
- input: ["text"],
12702
- cost: {
12703
- input: 10,
12704
- output: 30,
12705
- cacheRead: 0,
12706
- cacheWrite: 0,
12707
- },
12708
- contextWindow: 128000,
12709
- maxTokens: 4096,
12710
- },
12711
12677
  "openai/gpt-4-turbo:batch": {
12712
12678
  id: "openai/gpt-4-turbo:batch",
12713
12679
  name: "OpenAI: GPT-4 Turbo (batch)",
@@ -14559,7 +14525,7 @@ export const MODELS = {
14559
14525
  cacheWrite: 0,
14560
14526
  },
14561
14527
  contextWindow: 262144,
14562
- maxTokens: 235929,
14528
+ maxTokens: 32768,
14563
14529
  },
14564
14530
  "qwen/qwen3-vl-235b-a22b-instruct": {
14565
14531
  id: "qwen/qwen3-vl-235b-a22b-instruct",
@@ -14723,13 +14689,13 @@ export const MODELS = {
14723
14689
  reasoning: true,
14724
14690
  input: ["text", "image"],
14725
14691
  cost: {
14726
- input: 0.3125,
14727
- output: 1.25,
14728
- cacheRead: 0.15625,
14692
+ input: 0.1625,
14693
+ output: 1.3,
14694
+ cacheRead: 0,
14729
14695
  cacheWrite: 0,
14730
14696
  },
14731
14697
  contextWindow: 262144,
14732
- maxTokens: 16384,
14698
+ maxTokens: 65536,
14733
14699
  },
14734
14700
  "qwen/qwen3.5-397b-a17b": {
14735
14701
  id: "qwen/qwen3.5-397b-a17b",
@@ -15216,9 +15182,9 @@ export const MODELS = {
15216
15182
  reasoning: true,
15217
15183
  input: ["text"],
15218
15184
  cost: {
15219
- input: 0.13199999999999998,
15220
- output: 0.5279999999999999,
15221
- cacheRead: 0.032999999999999995,
15185
+ input: 0.0825,
15186
+ output: 0.33,
15187
+ cacheRead: 0.020625,
15222
15188
  cacheWrite: 0,
15223
15189
  },
15224
15190
  contextWindow: 262144,
@@ -15726,13 +15692,13 @@ export const MODELS = {
15726
15692
  reasoning: true,
15727
15693
  input: ["text"],
15728
15694
  cost: {
15729
- input: 0.6832,
15730
- output: 2.1471999999999998,
15731
- cacheRead: 0.12688000000000002,
15695
+ input: 1.4,
15696
+ output: 4.4,
15697
+ cacheRead: 0.14,
15732
15698
  cacheWrite: 0,
15733
15699
  },
15734
15700
  contextWindow: 1048576,
15735
- maxTokens: 131072,
15701
+ maxTokens: 128000,
15736
15702
  },
15737
15703
  "z-ai/glm-5.2:batch": {
15738
15704
  id: "z-ai/glm-5.2:batch",
@@ -15777,9 +15743,9 @@ export const MODELS = {
15777
15743
  reasoning: true,
15778
15744
  input: ["text", "image"],
15779
15745
  cost: {
15780
- input: 0.15,
15781
- output: 0.5,
15782
- cacheRead: 0.03,
15746
+ input: 0.075,
15747
+ output: 0.25,
15748
+ cacheRead: 0.015,
15783
15749
  cacheWrite: 0,
15784
15750
  },
15785
15751
  contextWindow: 1310720,
@@ -15904,6 +15870,40 @@ export const MODELS = {
15904
15870
  contextWindow: 1000000,
15905
15871
  maxTokens: 128000,
15906
15872
  },
15873
+ "~deepseek/deepseek-flash-latest": {
15874
+ id: "~deepseek/deepseek-flash-latest",
15875
+ name: "DeepSeek: DeepSeek Flash Latest",
15876
+ api: "openai-completions",
15877
+ provider: "openrouter",
15878
+ baseUrl: "https://openrouter.ai/api/v1",
15879
+ reasoning: true,
15880
+ input: ["text", "image"],
15881
+ cost: {
15882
+ input: 0.15,
15883
+ output: 0.6,
15884
+ cacheRead: 0.015,
15885
+ cacheWrite: 0,
15886
+ },
15887
+ contextWindow: 1048576,
15888
+ maxTokens: 393216,
15889
+ },
15890
+ "~deepseek/deepseek-pro-latest": {
15891
+ id: "~deepseek/deepseek-pro-latest",
15892
+ name: "DeepSeek: DeepSeek Pro Latest",
15893
+ api: "openai-completions",
15894
+ provider: "openrouter",
15895
+ baseUrl: "https://openrouter.ai/api/v1",
15896
+ reasoning: true,
15897
+ input: ["text"],
15898
+ cost: {
15899
+ input: 0.57948,
15900
+ output: 1.73844,
15901
+ cacheRead: 0.018438,
15902
+ cacheWrite: 0,
15903
+ },
15904
+ contextWindow: 1048576,
15905
+ maxTokens: 393216,
15906
+ },
15907
15907
  "~deepseek/deepseek-v4-flash-latest": {
15908
15908
  id: "~deepseek/deepseek-v4-flash-latest",
15909
15909
  name: "DeepSeek: DeepSeek V4 Flash Latest",
@@ -16100,13 +16100,13 @@ export const MODELS = {
16100
16100
  reasoning: true,
16101
16101
  input: ["text"],
16102
16102
  cost: {
16103
- input: 0.9199999999999999,
16104
- output: 3.1372,
16105
- cacheRead: 0.184,
16103
+ input: 0.8775,
16104
+ output: 2.9699999999999998,
16105
+ cacheRead: 0.1755,
16106
16106
  cacheWrite: 0,
16107
16107
  },
16108
16108
  contextWindow: 1310720,
16109
- maxTokens: 943718,
16109
+ maxTokens: 235929,
16110
16110
  },
16111
16111
  },
16112
16112
  "vercel-ai-gateway": {
@@ -16189,7 +16189,7 @@ export const MODELS = {
16189
16189
  cost: {
16190
16190
  input: 1.3,
16191
16191
  output: 7.8,
16192
- cacheRead: 0.26,
16192
+ cacheRead: 0.13,
16193
16193
  cacheWrite: 1.625,
16194
16194
  },
16195
16195
  contextWindow: 240000,
@@ -16427,7 +16427,7 @@ export const MODELS = {
16427
16427
  cost: {
16428
16428
  input: 0.09999999999999999,
16429
16429
  output: 0.39999999999999997,
16430
- cacheRead: 0.001,
16430
+ cacheRead: 0.01,
16431
16431
  cacheWrite: 0.125,
16432
16432
  },
16433
16433
  contextWindow: 1000000,
@@ -16443,7 +16443,7 @@ export const MODELS = {
16443
16443
  input: ["text", "image"],
16444
16444
  cost: {
16445
16445
  input: 0.39999999999999997,
16446
- output: 2.4,
16446
+ output: 2.5,
16447
16447
  cacheRead: 0.04,
16448
16448
  cacheWrite: 0.5,
16449
16449
  },
@@ -16478,7 +16478,7 @@ export const MODELS = {
16478
16478
  cost: {
16479
16479
  input: 0.5,
16480
16480
  output: 3,
16481
- cacheRead: 0.09999999999999999,
16481
+ cacheRead: 0.049999999999999996,
16482
16482
  cacheWrite: 0.625,
16483
16483
  },
16484
16484
  contextWindow: 1000000,
@@ -16578,7 +16578,7 @@ export const MODELS = {
16578
16578
  reasoning: true,
16579
16579
  input: ["text", "image"],
16580
16580
  cost: {
16581
- input: 0.16,
16581
+ input: 0.15,
16582
16582
  output: 0.47,
16583
16583
  cacheRead: 0.016,
16584
16584
  cacheWrite: 0.19999999999999998,
@@ -17513,9 +17513,9 @@ export const MODELS = {
17513
17513
  reasoning: true,
17514
17514
  input: ["text"],
17515
17515
  cost: {
17516
- input: 0.06,
17517
- output: 0.18,
17518
- cacheRead: 0.012,
17516
+ input: 0.020999999999999998,
17517
+ output: 0.063,
17518
+ cacheRead: 0.004200000000000001,
17519
17519
  cacheWrite: 0,
17520
17520
  },
17521
17521
  contextWindow: 256000,
@@ -18042,46 +18042,12 @@ export const MODELS = {
18042
18042
  cost: {
18043
18043
  input: 0.3,
18044
18044
  output: 0.8999999999999999,
18045
- cacheRead: 0,
18045
+ cacheRead: 0.03,
18046
18046
  cacheWrite: 0,
18047
18047
  },
18048
18048
  contextWindow: 128000,
18049
18049
  maxTokens: 4000,
18050
18050
  },
18051
- "mistral/devstral-2": {
18052
- id: "mistral/devstral-2",
18053
- name: "Devstral 2",
18054
- api: "anthropic-messages",
18055
- provider: "vercel-ai-gateway",
18056
- baseUrl: "https://ai-gateway.vercel.sh",
18057
- reasoning: false,
18058
- input: ["text"],
18059
- cost: {
18060
- input: 0.39999999999999997,
18061
- output: 2,
18062
- cacheRead: 0,
18063
- cacheWrite: 0,
18064
- },
18065
- contextWindow: 256000,
18066
- maxTokens: 256000,
18067
- },
18068
- "mistral/devstral-small-2": {
18069
- id: "mistral/devstral-small-2",
18070
- name: "Devstral Small 2",
18071
- api: "anthropic-messages",
18072
- provider: "vercel-ai-gateway",
18073
- baseUrl: "https://ai-gateway.vercel.sh",
18074
- reasoning: false,
18075
- input: ["text", "image"],
18076
- cost: {
18077
- input: 0.09999999999999999,
18078
- output: 0.3,
18079
- cacheRead: 0,
18080
- cacheWrite: 0,
18081
- },
18082
- contextWindow: 256000,
18083
- maxTokens: 256000,
18084
- },
18085
18051
  "mistral/ministral-14b": {
18086
18052
  id: "mistral/ministral-14b",
18087
18053
  name: "Ministral 14B",
@@ -18093,10 +18059,10 @@ export const MODELS = {
18093
18059
  cost: {
18094
18060
  input: 0.19999999999999998,
18095
18061
  output: 0.19999999999999998,
18096
- cacheRead: 0,
18062
+ cacheRead: 0.02,
18097
18063
  cacheWrite: 0,
18098
18064
  },
18099
- contextWindow: 256000,
18065
+ contextWindow: 262144,
18100
18066
  maxTokens: 256000,
18101
18067
  },
18102
18068
  "mistral/ministral-3b": {
@@ -18110,10 +18076,10 @@ export const MODELS = {
18110
18076
  cost: {
18111
18077
  input: 0.09999999999999999,
18112
18078
  output: 0.09999999999999999,
18113
- cacheRead: 0,
18079
+ cacheRead: 0.01,
18114
18080
  cacheWrite: 0,
18115
18081
  },
18116
- contextWindow: 128000,
18082
+ contextWindow: 131072,
18117
18083
  maxTokens: 4000,
18118
18084
  },
18119
18085
  "mistral/ministral-8b": {
@@ -18127,10 +18093,10 @@ export const MODELS = {
18127
18093
  cost: {
18128
18094
  input: 0.15,
18129
18095
  output: 0.15,
18130
- cacheRead: 0,
18096
+ cacheRead: 0.015,
18131
18097
  cacheWrite: 0,
18132
18098
  },
18133
- contextWindow: 128000,
18099
+ contextWindow: 262144,
18134
18100
  maxTokens: 4000,
18135
18101
  },
18136
18102
  "mistral/mistral-large-3": {
@@ -18144,29 +18110,12 @@ export const MODELS = {
18144
18110
  cost: {
18145
18111
  input: 0.5,
18146
18112
  output: 1.5,
18147
- cacheRead: 0,
18113
+ cacheRead: 0.049999999999999996,
18148
18114
  cacheWrite: 0,
18149
18115
  },
18150
- contextWindow: 256000,
18116
+ contextWindow: 262144,
18151
18117
  maxTokens: 256000,
18152
18118
  },
18153
- "mistral/mistral-medium": {
18154
- id: "mistral/mistral-medium",
18155
- name: "Mistral Medium 3.1",
18156
- api: "anthropic-messages",
18157
- provider: "vercel-ai-gateway",
18158
- baseUrl: "https://ai-gateway.vercel.sh",
18159
- reasoning: false,
18160
- input: ["text", "image"],
18161
- cost: {
18162
- input: 0.39999999999999997,
18163
- output: 2,
18164
- cacheRead: 0,
18165
- cacheWrite: 0,
18166
- },
18167
- contextWindow: 128000,
18168
- maxTokens: 64000,
18169
- },
18170
18119
  "mistral/mistral-medium-3.5": {
18171
18120
  id: "mistral/mistral-medium-3.5",
18172
18121
  name: "Mistral Medium Latest",
@@ -18178,10 +18127,10 @@ export const MODELS = {
18178
18127
  cost: {
18179
18128
  input: 1.5,
18180
18129
  output: 7.5,
18181
- cacheRead: 0,
18130
+ cacheRead: 0.15,
18182
18131
  cacheWrite: 0,
18183
18132
  },
18184
- contextWindow: 256000,
18133
+ contextWindow: 262144,
18185
18134
  maxTokens: 256000,
18186
18135
  },
18187
18136
  "mistral/mistral-nemo": {
@@ -18191,15 +18140,15 @@ export const MODELS = {
18191
18140
  provider: "vercel-ai-gateway",
18192
18141
  baseUrl: "https://ai-gateway.vercel.sh",
18193
18142
  reasoning: false,
18194
- input: ["text", "image"],
18143
+ input: ["text"],
18195
18144
  cost: {
18196
- input: 0.15,
18197
- output: 0.15,
18145
+ input: 0.04,
18146
+ output: 0.16999999999999998,
18198
18147
  cacheRead: 0,
18199
18148
  cacheWrite: 0,
18200
18149
  },
18201
- contextWindow: 128000,
18202
- maxTokens: 128000,
18150
+ contextWindow: 60288,
18151
+ maxTokens: 16000,
18203
18152
  },
18204
18153
  "mistral/mistral-small": {
18205
18154
  id: "mistral/mistral-small",
@@ -18209,30 +18158,13 @@ export const MODELS = {
18209
18158
  baseUrl: "https://ai-gateway.vercel.sh",
18210
18159
  reasoning: false,
18211
18160
  input: ["text", "image"],
18212
- cost: {
18213
- input: 0.09999999999999999,
18214
- output: 0.3,
18215
- cacheRead: 0,
18216
- cacheWrite: 0,
18217
- },
18218
- contextWindow: 32000,
18219
- maxTokens: 4000,
18220
- },
18221
- "mistral/pixtral-12b": {
18222
- id: "mistral/pixtral-12b",
18223
- name: "Pixtral 12B 2409",
18224
- api: "anthropic-messages",
18225
- provider: "vercel-ai-gateway",
18226
- baseUrl: "https://ai-gateway.vercel.sh",
18227
- reasoning: false,
18228
- input: ["text", "image"],
18229
18161
  cost: {
18230
18162
  input: 0.15,
18231
- output: 0.15,
18232
- cacheRead: 0,
18163
+ output: 0.6,
18164
+ cacheRead: 0.015,
18233
18165
  cacheWrite: 0,
18234
18166
  },
18235
- contextWindow: 128000,
18167
+ contextWindow: 262144,
18236
18168
  maxTokens: 4000,
18237
18169
  },
18238
18170
  "moonshotai/kimi-k2": {
@@ -18381,8 +18313,8 @@ export const MODELS = {
18381
18313
  input: ["text"],
18382
18314
  cost: {
18383
18315
  input: 0.049999999999999996,
18384
- output: 0.24,
18385
- cacheRead: 0,
18316
+ output: 0.19999999999999998,
18317
+ cacheRead: 0.024999999999999998,
18386
18318
  cacheWrite: 0,
18387
18319
  },
18388
18320
  contextWindow: 262144,