@caupulican/pi-ai 0.86.17 → 0.90.0
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 +85 -17
- package/dist/models.generated.d.ts.map +1 -1
- package/dist/models.generated.js +117 -49
- 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,23 +9713,6 @@ export const MODELS = {
|
|
|
9713
9713
|
contextWindow: 1000000,
|
|
9714
9714
|
maxTokens: 128000,
|
|
9715
9715
|
},
|
|
9716
|
-
"north-mini-code-free": {
|
|
9717
|
-
id: "north-mini-code-free",
|
|
9718
|
-
name: "North Mini Code Free",
|
|
9719
|
-
api: "openai-completions",
|
|
9720
|
-
provider: "opencode",
|
|
9721
|
-
baseUrl: "https://opencode.ai/zen/v1",
|
|
9722
|
-
reasoning: true,
|
|
9723
|
-
input: ["text"],
|
|
9724
|
-
cost: {
|
|
9725
|
-
input: 0,
|
|
9726
|
-
output: 0,
|
|
9727
|
-
cacheRead: 0,
|
|
9728
|
-
cacheWrite: 0,
|
|
9729
|
-
},
|
|
9730
|
-
contextWindow: 256000,
|
|
9731
|
-
maxTokens: 64000,
|
|
9732
|
-
},
|
|
9733
9716
|
"qwen3.5-plus": {
|
|
9734
9717
|
id: "qwen3.5-plus",
|
|
9735
9718
|
name: "Qwen3.5 Plus",
|
|
@@ -11111,13 +11094,13 @@ export const MODELS = {
|
|
|
11111
11094
|
thinkingLevelMap: { "minimal": null, "low": null, "medium": null, "high": "high", "xhigh": "xhigh" },
|
|
11112
11095
|
input: ["text"],
|
|
11113
11096
|
cost: {
|
|
11114
|
-
input: 0.
|
|
11115
|
-
output:
|
|
11116
|
-
cacheRead: 0.
|
|
11097
|
+
input: 0.63168,
|
|
11098
|
+
output: 1.26336,
|
|
11099
|
+
cacheRead: 0.053298,
|
|
11117
11100
|
cacheWrite: 0,
|
|
11118
11101
|
},
|
|
11119
11102
|
contextWindow: 1048576,
|
|
11120
|
-
maxTokens:
|
|
11103
|
+
maxTokens: 393216,
|
|
11121
11104
|
},
|
|
11122
11105
|
"google/gemini-2.5-flash": {
|
|
11123
11106
|
id: "google/gemini-2.5-flash",
|
|
@@ -11885,6 +11868,23 @@ export const MODELS = {
|
|
|
11885
11868
|
contextWindow: 1310720,
|
|
11886
11869
|
maxTokens: 16384,
|
|
11887
11870
|
},
|
|
11871
|
+
"meta/muse-glimmer-30b": {
|
|
11872
|
+
id: "meta/muse-glimmer-30b",
|
|
11873
|
+
name: "Meta: Muse Glimmer 30B",
|
|
11874
|
+
api: "openai-completions",
|
|
11875
|
+
provider: "openrouter",
|
|
11876
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
11877
|
+
reasoning: true,
|
|
11878
|
+
input: ["text", "image"],
|
|
11879
|
+
cost: {
|
|
11880
|
+
input: 0.35,
|
|
11881
|
+
output: 1.5,
|
|
11882
|
+
cacheRead: 0.04,
|
|
11883
|
+
cacheWrite: 0,
|
|
11884
|
+
},
|
|
11885
|
+
contextWindow: 131072,
|
|
11886
|
+
maxTokens: 4096,
|
|
11887
|
+
},
|
|
11888
11888
|
"meta/muse-spark-1.1": {
|
|
11889
11889
|
id: "meta/muse-spark-1.1",
|
|
11890
11890
|
name: "Meta: Muse Spark 1.1",
|
|
@@ -12388,9 +12388,9 @@ export const MODELS = {
|
|
|
12388
12388
|
reasoning: true,
|
|
12389
12389
|
input: ["text", "image"],
|
|
12390
12390
|
cost: {
|
|
12391
|
-
input: 0.
|
|
12392
|
-
output:
|
|
12393
|
-
cacheRead: 0.
|
|
12391
|
+
input: 0.95,
|
|
12392
|
+
output: 4,
|
|
12393
|
+
cacheRead: 0.16,
|
|
12394
12394
|
cacheWrite: 0,
|
|
12395
12395
|
},
|
|
12396
12396
|
contextWindow: 262144,
|
|
@@ -14579,12 +14579,12 @@ export const MODELS = {
|
|
|
14579
14579
|
input: ["text"],
|
|
14580
14580
|
cost: {
|
|
14581
14581
|
input: 0.07,
|
|
14582
|
-
output: 0.
|
|
14582
|
+
output: 0.28,
|
|
14583
14583
|
cacheRead: 0,
|
|
14584
14584
|
cacheWrite: 0,
|
|
14585
14585
|
},
|
|
14586
14586
|
contextWindow: 262144,
|
|
14587
|
-
maxTokens:
|
|
14587
|
+
maxTokens: 262144,
|
|
14588
14588
|
},
|
|
14589
14589
|
"qwen/qwen3-coder-flash": {
|
|
14590
14590
|
id: "qwen/qwen3-coder-flash",
|
|
@@ -14703,7 +14703,7 @@ export const MODELS = {
|
|
|
14703
14703
|
cacheWrite: 0,
|
|
14704
14704
|
},
|
|
14705
14705
|
contextWindow: 262144,
|
|
14706
|
-
maxTokens:
|
|
14706
|
+
maxTokens: 262144,
|
|
14707
14707
|
},
|
|
14708
14708
|
"qwen/qwen3-vl-235b-a22b-instruct": {
|
|
14709
14709
|
id: "qwen/qwen3-vl-235b-a22b-instruct",
|
|
@@ -14884,13 +14884,13 @@ export const MODELS = {
|
|
|
14884
14884
|
reasoning: true,
|
|
14885
14885
|
input: ["text", "image"],
|
|
14886
14886
|
cost: {
|
|
14887
|
-
input: 0.
|
|
14888
|
-
output:
|
|
14889
|
-
cacheRead: 0,
|
|
14887
|
+
input: 0.5,
|
|
14888
|
+
output: 3.5999999999999996,
|
|
14889
|
+
cacheRead: 0.3,
|
|
14890
14890
|
cacheWrite: 0,
|
|
14891
14891
|
},
|
|
14892
14892
|
contextWindow: 262144,
|
|
14893
|
-
maxTokens:
|
|
14893
|
+
maxTokens: 262144,
|
|
14894
14894
|
},
|
|
14895
14895
|
"qwen/qwen3.5-9b": {
|
|
14896
14896
|
id: "qwen/qwen3.5-9b",
|
|
@@ -15164,6 +15164,23 @@ export const MODELS = {
|
|
|
15164
15164
|
contextWindow: 1000000,
|
|
15165
15165
|
maxTokens: 128000,
|
|
15166
15166
|
},
|
|
15167
|
+
"sakana/sakana-namazu": {
|
|
15168
|
+
id: "sakana/sakana-namazu",
|
|
15169
|
+
name: "Sakana: Sakana Namazu",
|
|
15170
|
+
api: "openai-completions",
|
|
15171
|
+
provider: "openrouter",
|
|
15172
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
15173
|
+
reasoning: true,
|
|
15174
|
+
input: ["text", "image"],
|
|
15175
|
+
cost: {
|
|
15176
|
+
input: 0.95,
|
|
15177
|
+
output: 4,
|
|
15178
|
+
cacheRead: 0.15,
|
|
15179
|
+
cacheWrite: 0,
|
|
15180
|
+
},
|
|
15181
|
+
contextWindow: 262144,
|
|
15182
|
+
maxTokens: 65536,
|
|
15183
|
+
},
|
|
15167
15184
|
"sao10k/l3.1-euryale-70b": {
|
|
15168
15185
|
id: "sao10k/l3.1-euryale-70b",
|
|
15169
15186
|
name: "Sao10K: Llama 3.1 Euryale 70B v2.2",
|
|
@@ -15334,6 +15351,23 @@ export const MODELS = {
|
|
|
15334
15351
|
contextWindow: 131072,
|
|
15335
15352
|
maxTokens: 131072,
|
|
15336
15353
|
},
|
|
15354
|
+
"upstage/solar-pro4": {
|
|
15355
|
+
id: "upstage/solar-pro4",
|
|
15356
|
+
name: "Upstage: Solar Pro 4",
|
|
15357
|
+
api: "openai-completions",
|
|
15358
|
+
provider: "openrouter",
|
|
15359
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
15360
|
+
reasoning: true,
|
|
15361
|
+
input: ["text"],
|
|
15362
|
+
cost: {
|
|
15363
|
+
input: 0.03,
|
|
15364
|
+
output: 0.12,
|
|
15365
|
+
cacheRead: 0.006,
|
|
15366
|
+
cacheWrite: 0,
|
|
15367
|
+
},
|
|
15368
|
+
contextWindow: 524288,
|
|
15369
|
+
maxTokens: 131072,
|
|
15370
|
+
},
|
|
15337
15371
|
"x-ai/grok-4.20": {
|
|
15338
15372
|
id: "x-ai/grok-4.20",
|
|
15339
15373
|
name: "SpaceXAI: Grok 4.20",
|
|
@@ -15496,9 +15530,9 @@ export const MODELS = {
|
|
|
15496
15530
|
reasoning: true,
|
|
15497
15531
|
input: ["text"],
|
|
15498
15532
|
cost: {
|
|
15499
|
-
input: 0.
|
|
15500
|
-
output: 2,
|
|
15501
|
-
cacheRead: 0.
|
|
15533
|
+
input: 0.55,
|
|
15534
|
+
output: 2.2,
|
|
15535
|
+
cacheRead: 0.11,
|
|
15502
15536
|
cacheWrite: 0,
|
|
15503
15537
|
},
|
|
15504
15538
|
contextWindow: 204800,
|
|
@@ -15598,9 +15632,9 @@ export const MODELS = {
|
|
|
15598
15632
|
reasoning: true,
|
|
15599
15633
|
input: ["text"],
|
|
15600
15634
|
cost: {
|
|
15601
|
-
input:
|
|
15602
|
-
output:
|
|
15603
|
-
cacheRead: 0.
|
|
15635
|
+
input: 1.4,
|
|
15636
|
+
output: 4.4,
|
|
15637
|
+
cacheRead: 0.26,
|
|
15604
15638
|
cacheWrite: 0,
|
|
15605
15639
|
},
|
|
15606
15640
|
contextWindow: 204800,
|
|
@@ -15615,13 +15649,13 @@ export const MODELS = {
|
|
|
15615
15649
|
reasoning: true,
|
|
15616
15650
|
input: ["text"],
|
|
15617
15651
|
cost: {
|
|
15618
|
-
input: 0.
|
|
15619
|
-
output:
|
|
15620
|
-
cacheRead: 0.
|
|
15652
|
+
input: 0.76,
|
|
15653
|
+
output: 2.42,
|
|
15654
|
+
cacheRead: 0.14,
|
|
15621
15655
|
cacheWrite: 0,
|
|
15622
15656
|
},
|
|
15623
15657
|
contextWindow: 1048576,
|
|
15624
|
-
maxTokens:
|
|
15658
|
+
maxTokens: 262144,
|
|
15625
15659
|
},
|
|
15626
15660
|
"z-ai/glm-5.2:batch": {
|
|
15627
15661
|
id: "z-ai/glm-5.2:batch",
|
|
@@ -15740,13 +15774,13 @@ export const MODELS = {
|
|
|
15740
15774
|
thinkingLevelMap: { "minimal": null, "low": null, "medium": null, "high": "high", "xhigh": "xhigh" },
|
|
15741
15775
|
input: ["text"],
|
|
15742
15776
|
cost: {
|
|
15743
|
-
input: 0.
|
|
15744
|
-
output: 0.
|
|
15745
|
-
cacheRead: 0.
|
|
15777
|
+
input: 0.079996,
|
|
15778
|
+
output: 0.252,
|
|
15779
|
+
cacheRead: 0.0252,
|
|
15746
15780
|
cacheWrite: 0,
|
|
15747
15781
|
},
|
|
15748
15782
|
contextWindow: 1048576,
|
|
15749
|
-
maxTokens:
|
|
15783
|
+
maxTokens: 4096,
|
|
15750
15784
|
},
|
|
15751
15785
|
"~google/gemini-flash-latest": {
|
|
15752
15786
|
id: "~google/gemini-flash-latest",
|
|
@@ -18261,6 +18295,23 @@ export const MODELS = {
|
|
|
18261
18295
|
contextWindow: 128000,
|
|
18262
18296
|
maxTokens: 8192,
|
|
18263
18297
|
},
|
|
18298
|
+
"meta/muse-glimmer-30b": {
|
|
18299
|
+
id: "meta/muse-glimmer-30b",
|
|
18300
|
+
name: "Muse Glimmer 30B",
|
|
18301
|
+
api: "anthropic-messages",
|
|
18302
|
+
provider: "vercel-ai-gateway",
|
|
18303
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
18304
|
+
reasoning: true,
|
|
18305
|
+
input: ["text", "image"],
|
|
18306
|
+
cost: {
|
|
18307
|
+
input: 0.35,
|
|
18308
|
+
output: 1.5,
|
|
18309
|
+
cacheRead: 0.04,
|
|
18310
|
+
cacheWrite: 0,
|
|
18311
|
+
},
|
|
18312
|
+
contextWindow: 131072,
|
|
18313
|
+
maxTokens: 131072,
|
|
18314
|
+
},
|
|
18264
18315
|
"meta/muse-spark-1.1": {
|
|
18265
18316
|
id: "meta/muse-spark-1.1",
|
|
18266
18317
|
name: "Muse Spark 1.1",
|
|
@@ -19617,6 +19668,23 @@ export const MODELS = {
|
|
|
19617
19668
|
contextWindow: 1000000,
|
|
19618
19669
|
maxTokens: 1000000,
|
|
19619
19670
|
},
|
|
19671
|
+
"sakana/namazu": {
|
|
19672
|
+
id: "sakana/namazu",
|
|
19673
|
+
name: "Sakana Namazu",
|
|
19674
|
+
api: "anthropic-messages",
|
|
19675
|
+
provider: "vercel-ai-gateway",
|
|
19676
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
19677
|
+
reasoning: true,
|
|
19678
|
+
input: ["text", "image"],
|
|
19679
|
+
cost: {
|
|
19680
|
+
input: 0.95,
|
|
19681
|
+
output: 4,
|
|
19682
|
+
cacheRead: 0.15,
|
|
19683
|
+
cacheWrite: 0,
|
|
19684
|
+
},
|
|
19685
|
+
contextWindow: 256000,
|
|
19686
|
+
maxTokens: 256000,
|
|
19687
|
+
},
|
|
19620
19688
|
"stepfun/step-3.5-flash": {
|
|
19621
19689
|
id: "stepfun/step-3.5-flash",
|
|
19622
19690
|
name: "StepFun 3.5 Flash",
|