@caupulican/pi-ai 0.86.17 → 0.90.2
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.
- package/dist/models.generated.d.ts +120 -1
- package/dist/models.generated.d.ts.map +1 -1
- package/dist/models.generated.js +146 -27
- package/dist/models.generated.js.map +1 -1
- package/dist/stream.d.ts +22 -1
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +43 -21
- package/dist/stream.js.map +1 -1
- package/dist/utils/tool-repair/registry.d.ts +20 -20
- package/dist/utils/tool-repair/registry.d.ts.map +1 -1
- package/dist/utils/tool-repair/registry.js +49 -49
- package/dist/utils/tool-repair/registry.js.map +1 -1
- package/dist/utils/tool-repair/text-protocol-history.js +2 -2
- package/dist/utils/tool-repair/text-protocol-history.js.map +1 -1
- package/dist/utils/tool-repair/text-protocol.js +6 -6
- package/dist/utils/tool-repair/text-protocol.js.map +1 -1
- package/package.json +1 -1
package/dist/models.generated.js
CHANGED
|
@@ -1435,7 +1435,7 @@ export const MODELS = {
|
|
|
1435
1435
|
cacheRead: 0.022,
|
|
1436
1436
|
cacheWrite: 0.275,
|
|
1437
1437
|
},
|
|
1438
|
-
contextWindow:
|
|
1438
|
+
contextWindow: 1050000,
|
|
1439
1439
|
maxTokens: 128000,
|
|
1440
1440
|
},
|
|
1441
1441
|
"openai.gpt-5.6-sol": {
|
|
@@ -1452,9 +1452,9 @@ export const MODELS = {
|
|
|
1452
1452
|
input: 5.5,
|
|
1453
1453
|
output: 33,
|
|
1454
1454
|
cacheRead: 0.55,
|
|
1455
|
-
cacheWrite: 6.
|
|
1455
|
+
cacheWrite: 6.875,
|
|
1456
1456
|
},
|
|
1457
|
-
contextWindow:
|
|
1457
|
+
contextWindow: 1050000,
|
|
1458
1458
|
maxTokens: 128000,
|
|
1459
1459
|
},
|
|
1460
1460
|
"openai.gpt-5.6-terra": {
|
|
@@ -1473,7 +1473,7 @@ export const MODELS = {
|
|
|
1473
1473
|
cacheRead: 0.22,
|
|
1474
1474
|
cacheWrite: 2.75,
|
|
1475
1475
|
},
|
|
1476
|
-
contextWindow:
|
|
1476
|
+
contextWindow: 1050000,
|
|
1477
1477
|
maxTokens: 128000,
|
|
1478
1478
|
},
|
|
1479
1479
|
"openai.gpt-oss-120b": {
|
|
@@ -9713,9 +9713,9 @@ export const MODELS = {
|
|
|
9713
9713
|
contextWindow: 1000000,
|
|
9714
9714
|
maxTokens: 128000,
|
|
9715
9715
|
},
|
|
9716
|
-
"
|
|
9717
|
-
id: "
|
|
9718
|
-
name: "
|
|
9716
|
+
"nemotron-3.5-lightning-free": {
|
|
9717
|
+
id: "nemotron-3.5-lightning-free",
|
|
9718
|
+
name: "Nemotron 3.5 Lightning Free",
|
|
9719
9719
|
api: "openai-completions",
|
|
9720
9720
|
provider: "opencode",
|
|
9721
9721
|
baseUrl: "https://opencode.ai/zen/v1",
|
|
@@ -9727,8 +9727,8 @@ export const MODELS = {
|
|
|
9727
9727
|
cacheRead: 0,
|
|
9728
9728
|
cacheWrite: 0,
|
|
9729
9729
|
},
|
|
9730
|
-
contextWindow:
|
|
9731
|
-
maxTokens:
|
|
9730
|
+
contextWindow: 262144,
|
|
9731
|
+
maxTokens: 262144,
|
|
9732
9732
|
},
|
|
9733
9733
|
"qwen3.5-plus": {
|
|
9734
9734
|
id: "qwen3.5-plus",
|
|
@@ -10841,6 +10841,23 @@ export const MODELS = {
|
|
|
10841
10841
|
contextWindow: 262144,
|
|
10842
10842
|
maxTokens: 32768,
|
|
10843
10843
|
},
|
|
10844
|
+
"bytedance-seed/seed-2.0-code": {
|
|
10845
|
+
id: "bytedance-seed/seed-2.0-code",
|
|
10846
|
+
name: "ByteDance Seed: Seed-2.0-Code",
|
|
10847
|
+
api: "openai-completions",
|
|
10848
|
+
provider: "openrouter",
|
|
10849
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
10850
|
+
reasoning: true,
|
|
10851
|
+
input: ["text", "image"],
|
|
10852
|
+
cost: {
|
|
10853
|
+
input: 0.5,
|
|
10854
|
+
output: 3,
|
|
10855
|
+
cacheRead: 0,
|
|
10856
|
+
cacheWrite: 0,
|
|
10857
|
+
},
|
|
10858
|
+
contextWindow: 262144,
|
|
10859
|
+
maxTokens: 131072,
|
|
10860
|
+
},
|
|
10844
10861
|
"bytedance-seed/seed-2.0-lite": {
|
|
10845
10862
|
id: "bytedance-seed/seed-2.0-lite",
|
|
10846
10863
|
name: "ByteDance Seed: Seed-2.0-Lite",
|
|
@@ -11111,13 +11128,13 @@ export const MODELS = {
|
|
|
11111
11128
|
thinkingLevelMap: { "minimal": null, "low": null, "medium": null, "high": "high", "xhigh": "xhigh" },
|
|
11112
11129
|
input: ["text"],
|
|
11113
11130
|
cost: {
|
|
11114
|
-
input: 0.
|
|
11115
|
-
output:
|
|
11116
|
-
cacheRead: 0.
|
|
11131
|
+
input: 0.63168,
|
|
11132
|
+
output: 1.26336,
|
|
11133
|
+
cacheRead: 0.053298,
|
|
11117
11134
|
cacheWrite: 0,
|
|
11118
11135
|
},
|
|
11119
11136
|
contextWindow: 1048576,
|
|
11120
|
-
maxTokens:
|
|
11137
|
+
maxTokens: 393216,
|
|
11121
11138
|
},
|
|
11122
11139
|
"google/gemini-2.5-flash": {
|
|
11123
11140
|
id: "google/gemini-2.5-flash",
|
|
@@ -11885,6 +11902,23 @@ export const MODELS = {
|
|
|
11885
11902
|
contextWindow: 1310720,
|
|
11886
11903
|
maxTokens: 16384,
|
|
11887
11904
|
},
|
|
11905
|
+
"meta/muse-glimmer-30b": {
|
|
11906
|
+
id: "meta/muse-glimmer-30b",
|
|
11907
|
+
name: "Meta: Muse Glimmer 30B",
|
|
11908
|
+
api: "openai-completions",
|
|
11909
|
+
provider: "openrouter",
|
|
11910
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
11911
|
+
reasoning: true,
|
|
11912
|
+
input: ["text", "image"],
|
|
11913
|
+
cost: {
|
|
11914
|
+
input: 0.35,
|
|
11915
|
+
output: 1.5,
|
|
11916
|
+
cacheRead: 0.04,
|
|
11917
|
+
cacheWrite: 0,
|
|
11918
|
+
},
|
|
11919
|
+
contextWindow: 131072,
|
|
11920
|
+
maxTokens: 4096,
|
|
11921
|
+
},
|
|
11888
11922
|
"meta/muse-spark-1.1": {
|
|
11889
11923
|
id: "meta/muse-spark-1.1",
|
|
11890
11924
|
name: "Meta: Muse Spark 1.1",
|
|
@@ -12617,6 +12651,23 @@ export const MODELS = {
|
|
|
12617
12651
|
contextWindow: 1000000,
|
|
12618
12652
|
maxTokens: 65536,
|
|
12619
12653
|
},
|
|
12654
|
+
"nvidia/nemotron-3.5-lightning:free": {
|
|
12655
|
+
id: "nvidia/nemotron-3.5-lightning:free",
|
|
12656
|
+
name: "NVIDIA: Nemotron 3.5 Lightning (free)",
|
|
12657
|
+
api: "openai-completions",
|
|
12658
|
+
provider: "openrouter",
|
|
12659
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
12660
|
+
reasoning: true,
|
|
12661
|
+
input: ["text"],
|
|
12662
|
+
cost: {
|
|
12663
|
+
input: 0,
|
|
12664
|
+
output: 0,
|
|
12665
|
+
cacheRead: 0,
|
|
12666
|
+
cacheWrite: 0,
|
|
12667
|
+
},
|
|
12668
|
+
contextWindow: 1000000,
|
|
12669
|
+
maxTokens: 65536,
|
|
12670
|
+
},
|
|
12620
12671
|
"nvidia/nemotron-nano-12b-v2-vl:free": {
|
|
12621
12672
|
id: "nvidia/nemotron-nano-12b-v2-vl:free",
|
|
12622
12673
|
name: "NVIDIA: Nemotron Nano 12B 2 VL (free)",
|
|
@@ -14579,12 +14630,12 @@ export const MODELS = {
|
|
|
14579
14630
|
input: ["text"],
|
|
14580
14631
|
cost: {
|
|
14581
14632
|
input: 0.07,
|
|
14582
|
-
output: 0.
|
|
14633
|
+
output: 0.28,
|
|
14583
14634
|
cacheRead: 0,
|
|
14584
14635
|
cacheWrite: 0,
|
|
14585
14636
|
},
|
|
14586
14637
|
contextWindow: 262144,
|
|
14587
|
-
maxTokens:
|
|
14638
|
+
maxTokens: 262144,
|
|
14588
14639
|
},
|
|
14589
14640
|
"qwen/qwen3-coder-flash": {
|
|
14590
14641
|
id: "qwen/qwen3-coder-flash",
|
|
@@ -14703,7 +14754,7 @@ export const MODELS = {
|
|
|
14703
14754
|
cacheWrite: 0,
|
|
14704
14755
|
},
|
|
14705
14756
|
contextWindow: 262144,
|
|
14706
|
-
maxTokens:
|
|
14757
|
+
maxTokens: 262144,
|
|
14707
14758
|
},
|
|
14708
14759
|
"qwen/qwen3-vl-235b-a22b-instruct": {
|
|
14709
14760
|
id: "qwen/qwen3-vl-235b-a22b-instruct",
|
|
@@ -14884,13 +14935,13 @@ export const MODELS = {
|
|
|
14884
14935
|
reasoning: true,
|
|
14885
14936
|
input: ["text", "image"],
|
|
14886
14937
|
cost: {
|
|
14887
|
-
input: 0.
|
|
14888
|
-
output:
|
|
14889
|
-
cacheRead: 0,
|
|
14938
|
+
input: 0.5,
|
|
14939
|
+
output: 3.5999999999999996,
|
|
14940
|
+
cacheRead: 0.3,
|
|
14890
14941
|
cacheWrite: 0,
|
|
14891
14942
|
},
|
|
14892
14943
|
contextWindow: 262144,
|
|
14893
|
-
maxTokens:
|
|
14944
|
+
maxTokens: 262144,
|
|
14894
14945
|
},
|
|
14895
14946
|
"qwen/qwen3.5-9b": {
|
|
14896
14947
|
id: "qwen/qwen3.5-9b",
|
|
@@ -15164,6 +15215,23 @@ export const MODELS = {
|
|
|
15164
15215
|
contextWindow: 1000000,
|
|
15165
15216
|
maxTokens: 128000,
|
|
15166
15217
|
},
|
|
15218
|
+
"sakana/sakana-namazu": {
|
|
15219
|
+
id: "sakana/sakana-namazu",
|
|
15220
|
+
name: "Sakana: Sakana Namazu",
|
|
15221
|
+
api: "openai-completions",
|
|
15222
|
+
provider: "openrouter",
|
|
15223
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
15224
|
+
reasoning: true,
|
|
15225
|
+
input: ["text", "image"],
|
|
15226
|
+
cost: {
|
|
15227
|
+
input: 0.95,
|
|
15228
|
+
output: 4,
|
|
15229
|
+
cacheRead: 0.15,
|
|
15230
|
+
cacheWrite: 0,
|
|
15231
|
+
},
|
|
15232
|
+
contextWindow: 262144,
|
|
15233
|
+
maxTokens: 65536,
|
|
15234
|
+
},
|
|
15167
15235
|
"sao10k/l3.1-euryale-70b": {
|
|
15168
15236
|
id: "sao10k/l3.1-euryale-70b",
|
|
15169
15237
|
name: "Sao10K: Llama 3.1 Euryale 70B v2.2",
|
|
@@ -15334,6 +15402,23 @@ export const MODELS = {
|
|
|
15334
15402
|
contextWindow: 131072,
|
|
15335
15403
|
maxTokens: 131072,
|
|
15336
15404
|
},
|
|
15405
|
+
"upstage/solar-pro4": {
|
|
15406
|
+
id: "upstage/solar-pro4",
|
|
15407
|
+
name: "Upstage: Solar Pro 4",
|
|
15408
|
+
api: "openai-completions",
|
|
15409
|
+
provider: "openrouter",
|
|
15410
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
15411
|
+
reasoning: true,
|
|
15412
|
+
input: ["text"],
|
|
15413
|
+
cost: {
|
|
15414
|
+
input: 0.03,
|
|
15415
|
+
output: 0.12,
|
|
15416
|
+
cacheRead: 0.006,
|
|
15417
|
+
cacheWrite: 0,
|
|
15418
|
+
},
|
|
15419
|
+
contextWindow: 524288,
|
|
15420
|
+
maxTokens: 131072,
|
|
15421
|
+
},
|
|
15337
15422
|
"x-ai/grok-4.20": {
|
|
15338
15423
|
id: "x-ai/grok-4.20",
|
|
15339
15424
|
name: "SpaceXAI: Grok 4.20",
|
|
@@ -15615,9 +15700,9 @@ export const MODELS = {
|
|
|
15615
15700
|
reasoning: true,
|
|
15616
15701
|
input: ["text"],
|
|
15617
15702
|
cost: {
|
|
15618
|
-
input: 0.
|
|
15619
|
-
output: 1.
|
|
15620
|
-
cacheRead: 0.
|
|
15703
|
+
input: 0.4886,
|
|
15704
|
+
output: 1.5355999999999999,
|
|
15705
|
+
cacheRead: 0.09074,
|
|
15621
15706
|
cacheWrite: 0,
|
|
15622
15707
|
},
|
|
15623
15708
|
contextWindow: 1048576,
|
|
@@ -15740,13 +15825,13 @@ export const MODELS = {
|
|
|
15740
15825
|
thinkingLevelMap: { "minimal": null, "low": null, "medium": null, "high": "high", "xhigh": "xhigh" },
|
|
15741
15826
|
input: ["text"],
|
|
15742
15827
|
cost: {
|
|
15743
|
-
input: 0.
|
|
15744
|
-
output: 0.
|
|
15745
|
-
cacheRead: 0.
|
|
15828
|
+
input: 0.072,
|
|
15829
|
+
output: 0.144,
|
|
15830
|
+
cacheRead: 0.0144,
|
|
15746
15831
|
cacheWrite: 0,
|
|
15747
15832
|
},
|
|
15748
15833
|
contextWindow: 1048576,
|
|
15749
|
-
maxTokens:
|
|
15834
|
+
maxTokens: 262144,
|
|
15750
15835
|
},
|
|
15751
15836
|
"~google/gemini-flash-latest": {
|
|
15752
15837
|
id: "~google/gemini-flash-latest",
|
|
@@ -18261,6 +18346,23 @@ export const MODELS = {
|
|
|
18261
18346
|
contextWindow: 128000,
|
|
18262
18347
|
maxTokens: 8192,
|
|
18263
18348
|
},
|
|
18349
|
+
"meta/muse-glimmer-30b": {
|
|
18350
|
+
id: "meta/muse-glimmer-30b",
|
|
18351
|
+
name: "Muse Glimmer 30B",
|
|
18352
|
+
api: "anthropic-messages",
|
|
18353
|
+
provider: "vercel-ai-gateway",
|
|
18354
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
18355
|
+
reasoning: true,
|
|
18356
|
+
input: ["text", "image"],
|
|
18357
|
+
cost: {
|
|
18358
|
+
input: 0.35,
|
|
18359
|
+
output: 1.5,
|
|
18360
|
+
cacheRead: 0.04,
|
|
18361
|
+
cacheWrite: 0,
|
|
18362
|
+
},
|
|
18363
|
+
contextWindow: 131072,
|
|
18364
|
+
maxTokens: 131072,
|
|
18365
|
+
},
|
|
18264
18366
|
"meta/muse-spark-1.1": {
|
|
18265
18367
|
id: "meta/muse-spark-1.1",
|
|
18266
18368
|
name: "Muse Spark 1.1",
|
|
@@ -19617,6 +19719,23 @@ export const MODELS = {
|
|
|
19617
19719
|
contextWindow: 1000000,
|
|
19618
19720
|
maxTokens: 1000000,
|
|
19619
19721
|
},
|
|
19722
|
+
"sakana/namazu": {
|
|
19723
|
+
id: "sakana/namazu",
|
|
19724
|
+
name: "Sakana Namazu",
|
|
19725
|
+
api: "anthropic-messages",
|
|
19726
|
+
provider: "vercel-ai-gateway",
|
|
19727
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
19728
|
+
reasoning: true,
|
|
19729
|
+
input: ["text", "image"],
|
|
19730
|
+
cost: {
|
|
19731
|
+
input: 0.95,
|
|
19732
|
+
output: 4,
|
|
19733
|
+
cacheRead: 0.15,
|
|
19734
|
+
cacheWrite: 0,
|
|
19735
|
+
},
|
|
19736
|
+
contextWindow: 256000,
|
|
19737
|
+
maxTokens: 256000,
|
|
19738
|
+
},
|
|
19620
19739
|
"stepfun/step-3.5-flash": {
|
|
19621
19740
|
id: "stepfun/step-3.5-flash",
|
|
19622
19741
|
name: "StepFun 3.5 Flash",
|