@caupulican/pi-ai 0.90.2 → 0.90.5
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/image-models.generated.d.ts +15 -0
- package/dist/image-models.generated.d.ts.map +1 -1
- package/dist/image-models.generated.js +15 -0
- package/dist/image-models.generated.js.map +1 -1
- package/dist/models.generated.d.ts +202 -13
- package/dist/models.generated.d.ts.map +1 -1
- package/dist/models.generated.js +218 -44
- package/dist/models.generated.js.map +1 -1
- package/dist/utils/tool-repair/registry.d.ts +10 -0
- package/dist/utils/tool-repair/registry.d.ts.map +1 -1
- package/dist/utils/tool-repair/registry.js +13 -0
- package/dist/utils/tool-repair/registry.js.map +1 -1
- package/dist/utils/validation-path.d.ts.map +1 -1
- package/dist/utils/validation-path.js +9 -3
- package/dist/utils/validation-path.js.map +1 -1
- package/dist/utils/validation.js +1 -1
- package/dist/utils/validation.js.map +1 -1
- package/package.json +1 -1
package/dist/models.generated.js
CHANGED
|
@@ -4965,6 +4965,24 @@ export const MODELS = {
|
|
|
4965
4965
|
contextWindow: 256000,
|
|
4966
4966
|
maxTokens: 128000,
|
|
4967
4967
|
},
|
|
4968
|
+
"mai-code-1.1-flash": {
|
|
4969
|
+
id: "mai-code-1.1-flash",
|
|
4970
|
+
name: "MAI-Code-1.1-Flash",
|
|
4971
|
+
api: "openai-responses",
|
|
4972
|
+
provider: "github-copilot",
|
|
4973
|
+
baseUrl: "https://api.individual.githubcopilot.com",
|
|
4974
|
+
headers: { "User-Agent": "GitHubCopilotChat/0.35.0", "Editor-Version": "vscode/1.107.0", "Editor-Plugin-Version": "copilot-chat/0.35.0", "Copilot-Integration-Id": "vscode-chat" },
|
|
4975
|
+
reasoning: true,
|
|
4976
|
+
input: ["text", "image"],
|
|
4977
|
+
cost: {
|
|
4978
|
+
input: 0.2,
|
|
4979
|
+
output: 1.2,
|
|
4980
|
+
cacheRead: 0.02,
|
|
4981
|
+
cacheWrite: 0,
|
|
4982
|
+
},
|
|
4983
|
+
contextWindow: 256000,
|
|
4984
|
+
maxTokens: 128000,
|
|
4985
|
+
},
|
|
4968
4986
|
},
|
|
4969
4987
|
"google": {
|
|
4970
4988
|
"deep-research-max-preview-04-2026": {
|
|
@@ -9489,6 +9507,24 @@ export const MODELS = {
|
|
|
9489
9507
|
contextWindow: 500000,
|
|
9490
9508
|
maxTokens: 500000,
|
|
9491
9509
|
},
|
|
9510
|
+
"grok-4.6": {
|
|
9511
|
+
id: "grok-4.6",
|
|
9512
|
+
name: "Grok 4.6",
|
|
9513
|
+
api: "openai-responses",
|
|
9514
|
+
provider: "opencode",
|
|
9515
|
+
baseUrl: "https://opencode.ai/zen/v1",
|
|
9516
|
+
compat: { "sessionAffinityFormat": "openai-nosession" },
|
|
9517
|
+
reasoning: true,
|
|
9518
|
+
input: ["text", "image"],
|
|
9519
|
+
cost: {
|
|
9520
|
+
input: 2,
|
|
9521
|
+
output: 6,
|
|
9522
|
+
cacheRead: 0.5,
|
|
9523
|
+
cacheWrite: 0,
|
|
9524
|
+
},
|
|
9525
|
+
contextWindow: 500000,
|
|
9526
|
+
maxTokens: 500000,
|
|
9527
|
+
},
|
|
9492
9528
|
"grok-build-0.1": {
|
|
9493
9529
|
id: "grok-build-0.1",
|
|
9494
9530
|
name: "Grok Build 0.1",
|
|
@@ -9508,6 +9544,23 @@ export const MODELS = {
|
|
|
9508
9544
|
contextWindow: 256000,
|
|
9509
9545
|
maxTokens: 256000,
|
|
9510
9546
|
},
|
|
9547
|
+
"hy3-free": {
|
|
9548
|
+
id: "hy3-free",
|
|
9549
|
+
name: "Hy3 Free",
|
|
9550
|
+
api: "openai-completions",
|
|
9551
|
+
provider: "opencode",
|
|
9552
|
+
baseUrl: "https://opencode.ai/zen/v1",
|
|
9553
|
+
reasoning: true,
|
|
9554
|
+
input: ["text"],
|
|
9555
|
+
cost: {
|
|
9556
|
+
input: 0,
|
|
9557
|
+
output: 0,
|
|
9558
|
+
cacheRead: 0,
|
|
9559
|
+
cacheWrite: 0,
|
|
9560
|
+
},
|
|
9561
|
+
contextWindow: 190000,
|
|
9562
|
+
maxTokens: 64000,
|
|
9563
|
+
},
|
|
9511
9564
|
"kimi-k2.5": {
|
|
9512
9565
|
id: "kimi-k2.5",
|
|
9513
9566
|
name: "Kimi K2.5",
|
|
@@ -9611,23 +9664,6 @@ export const MODELS = {
|
|
|
9611
9664
|
contextWindow: 262144,
|
|
9612
9665
|
maxTokens: 32768,
|
|
9613
9666
|
},
|
|
9614
|
-
"longcat-2.0-free": {
|
|
9615
|
-
id: "longcat-2.0-free",
|
|
9616
|
-
name: "LongCat-2.0 Free",
|
|
9617
|
-
api: "openai-completions",
|
|
9618
|
-
provider: "opencode",
|
|
9619
|
-
baseUrl: "https://opencode.ai/zen/v1",
|
|
9620
|
-
reasoning: true,
|
|
9621
|
-
input: ["text"],
|
|
9622
|
-
cost: {
|
|
9623
|
-
input: 0,
|
|
9624
|
-
output: 0,
|
|
9625
|
-
cacheRead: 0,
|
|
9626
|
-
cacheWrite: 0,
|
|
9627
|
-
},
|
|
9628
|
-
contextWindow: 1000000,
|
|
9629
|
-
maxTokens: 131072,
|
|
9630
|
-
},
|
|
9631
9667
|
"mimo-v2.5-free": {
|
|
9632
9668
|
id: "mimo-v2.5-free",
|
|
9633
9669
|
name: "MiMo V2.5 Free",
|
|
@@ -9786,7 +9822,7 @@ export const MODELS = {
|
|
|
9786
9822
|
},
|
|
9787
9823
|
"deepseek-v4-pro": {
|
|
9788
9824
|
id: "deepseek-v4-pro",
|
|
9789
|
-
name: "DeepSeek V4 Pro",
|
|
9825
|
+
name: "DeepSeek V4 Pro (New)",
|
|
9790
9826
|
api: "openai-completions",
|
|
9791
9827
|
provider: "opencode-go",
|
|
9792
9828
|
baseUrl: "https://opencode.ai/zen/go/v1",
|
|
@@ -10841,6 +10877,23 @@ export const MODELS = {
|
|
|
10841
10877
|
contextWindow: 262144,
|
|
10842
10878
|
maxTokens: 32768,
|
|
10843
10879
|
},
|
|
10880
|
+
"bytedance-seed/seed-2-1-turbo": {
|
|
10881
|
+
id: "bytedance-seed/seed-2-1-turbo",
|
|
10882
|
+
name: "ByteDance Seed: Seed 2.1 Turbo",
|
|
10883
|
+
api: "openai-completions",
|
|
10884
|
+
provider: "openrouter",
|
|
10885
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
10886
|
+
reasoning: true,
|
|
10887
|
+
input: ["text", "image"],
|
|
10888
|
+
cost: {
|
|
10889
|
+
input: 0.5,
|
|
10890
|
+
output: 2.5,
|
|
10891
|
+
cacheRead: 0,
|
|
10892
|
+
cacheWrite: 0,
|
|
10893
|
+
},
|
|
10894
|
+
contextWindow: 262144,
|
|
10895
|
+
maxTokens: 262144,
|
|
10896
|
+
},
|
|
10844
10897
|
"bytedance-seed/seed-2.0-code": {
|
|
10845
10898
|
id: "bytedance-seed/seed-2.0-code",
|
|
10846
10899
|
name: "ByteDance Seed: Seed-2.0-Code",
|
|
@@ -11038,8 +11091,8 @@ export const MODELS = {
|
|
|
11038
11091
|
input: ["text"],
|
|
11039
11092
|
cost: {
|
|
11040
11093
|
input: 0.27,
|
|
11041
|
-
output:
|
|
11042
|
-
cacheRead: 0.
|
|
11094
|
+
output: 0.95,
|
|
11095
|
+
cacheRead: 0.13,
|
|
11043
11096
|
cacheWrite: 0,
|
|
11044
11097
|
},
|
|
11045
11098
|
contextWindow: 163840,
|
|
@@ -11128,14 +11181,33 @@ export const MODELS = {
|
|
|
11128
11181
|
thinkingLevelMap: { "minimal": null, "low": null, "medium": null, "high": "high", "xhigh": "xhigh" },
|
|
11129
11182
|
input: ["text"],
|
|
11130
11183
|
cost: {
|
|
11131
|
-
input:
|
|
11132
|
-
output:
|
|
11133
|
-
cacheRead: 0.
|
|
11184
|
+
input: 1.1680000000000001,
|
|
11185
|
+
output: 2.3360000000000003,
|
|
11186
|
+
cacheRead: 0.09855000000000001,
|
|
11134
11187
|
cacheWrite: 0,
|
|
11135
11188
|
},
|
|
11136
11189
|
contextWindow: 1048576,
|
|
11137
11190
|
maxTokens: 393216,
|
|
11138
11191
|
},
|
|
11192
|
+
"deepseek/deepseek-v4-pro-0813": {
|
|
11193
|
+
id: "deepseek/deepseek-v4-pro-0813",
|
|
11194
|
+
name: "DeepSeek: DeepSeek V4 Pro 0813",
|
|
11195
|
+
api: "openai-completions",
|
|
11196
|
+
provider: "openrouter",
|
|
11197
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
11198
|
+
compat: { "requiresReasoningContentOnAssistantMessages": true },
|
|
11199
|
+
reasoning: true,
|
|
11200
|
+
thinkingLevelMap: { "minimal": null, "low": null, "medium": null, "high": "high", "xhigh": "xhigh" },
|
|
11201
|
+
input: ["text"],
|
|
11202
|
+
cost: {
|
|
11203
|
+
input: 0.435,
|
|
11204
|
+
output: 0.87,
|
|
11205
|
+
cacheRead: 0.003625,
|
|
11206
|
+
cacheWrite: 0,
|
|
11207
|
+
},
|
|
11208
|
+
contextWindow: 1048576,
|
|
11209
|
+
maxTokens: 384000,
|
|
11210
|
+
},
|
|
11139
11211
|
"google/gemini-2.5-flash": {
|
|
11140
11212
|
id: "google/gemini-2.5-flash",
|
|
11141
11213
|
name: "Google: Gemini 2.5 Flash",
|
|
@@ -11800,6 +11872,23 @@ export const MODELS = {
|
|
|
11800
11872
|
contextWindow: 256000,
|
|
11801
11873
|
maxTokens: 80000,
|
|
11802
11874
|
},
|
|
11875
|
+
"liquid/lfm-2.5-2.6b:free": {
|
|
11876
|
+
id: "liquid/lfm-2.5-2.6b:free",
|
|
11877
|
+
name: "LiquidAI: LFM2.5-2.6B (free)",
|
|
11878
|
+
api: "openai-completions",
|
|
11879
|
+
provider: "openrouter",
|
|
11880
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
11881
|
+
reasoning: true,
|
|
11882
|
+
input: ["text"],
|
|
11883
|
+
cost: {
|
|
11884
|
+
input: 0,
|
|
11885
|
+
output: 0,
|
|
11886
|
+
cacheRead: 0,
|
|
11887
|
+
cacheWrite: 0,
|
|
11888
|
+
},
|
|
11889
|
+
contextWindow: 128000,
|
|
11890
|
+
maxTokens: 32768,
|
|
11891
|
+
},
|
|
11803
11892
|
"meituan/longcat-2.0": {
|
|
11804
11893
|
id: "meituan/longcat-2.0",
|
|
11805
11894
|
name: "Meituan: LongCat 2.0",
|
|
@@ -12439,8 +12528,8 @@ export const MODELS = {
|
|
|
12439
12528
|
reasoning: true,
|
|
12440
12529
|
input: ["text", "image"],
|
|
12441
12530
|
cost: {
|
|
12442
|
-
input: 0.
|
|
12443
|
-
output: 3.
|
|
12531
|
+
input: 0.67,
|
|
12532
|
+
output: 3.4,
|
|
12444
12533
|
cacheRead: 0.15,
|
|
12445
12534
|
cacheWrite: 0,
|
|
12446
12535
|
},
|
|
@@ -13932,9 +14021,9 @@ export const MODELS = {
|
|
|
13932
14021
|
reasoning: true,
|
|
13933
14022
|
input: ["text"],
|
|
13934
14023
|
cost: {
|
|
13935
|
-
input: 0.
|
|
14024
|
+
input: 0.03,
|
|
13936
14025
|
output: 0.16999999999999998,
|
|
13937
|
-
cacheRead: 0,
|
|
14026
|
+
cacheRead: 0.03,
|
|
13938
14027
|
cacheWrite: 0,
|
|
13939
14028
|
},
|
|
13940
14029
|
contextWindow: 131072,
|
|
@@ -14765,9 +14854,9 @@ export const MODELS = {
|
|
|
14765
14854
|
reasoning: false,
|
|
14766
14855
|
input: ["text", "image"],
|
|
14767
14856
|
cost: {
|
|
14768
|
-
input: 0.
|
|
14769
|
-
output: 1.
|
|
14770
|
-
cacheRead: 0
|
|
14857
|
+
input: 0.26,
|
|
14858
|
+
output: 1.04,
|
|
14859
|
+
cacheRead: 0,
|
|
14771
14860
|
cacheWrite: 0,
|
|
14772
14861
|
},
|
|
14773
14862
|
contextWindow: 262144,
|
|
@@ -15147,6 +15236,23 @@ export const MODELS = {
|
|
|
15147
15236
|
contextWindow: 1000000,
|
|
15148
15237
|
maxTokens: 131072,
|
|
15149
15238
|
},
|
|
15239
|
+
"qwen/qwen3.8-2.4t-a95b": {
|
|
15240
|
+
id: "qwen/qwen3.8-2.4t-a95b",
|
|
15241
|
+
name: "Qwen: Qwen3.8 2.4T A95B",
|
|
15242
|
+
api: "openai-completions",
|
|
15243
|
+
provider: "openrouter",
|
|
15244
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
15245
|
+
reasoning: true,
|
|
15246
|
+
input: ["text"],
|
|
15247
|
+
cost: {
|
|
15248
|
+
input: 2,
|
|
15249
|
+
output: 6,
|
|
15250
|
+
cacheRead: 0.19999999999999998,
|
|
15251
|
+
cacheWrite: 0,
|
|
15252
|
+
},
|
|
15253
|
+
contextWindow: 262144,
|
|
15254
|
+
maxTokens: 52429,
|
|
15255
|
+
},
|
|
15150
15256
|
"qwen/qwen3.8-max": {
|
|
15151
15257
|
id: "qwen/qwen3.8-max",
|
|
15152
15258
|
name: "Qwen: Qwen3.8 Max",
|
|
@@ -15470,6 +15576,23 @@ export const MODELS = {
|
|
|
15470
15576
|
contextWindow: 500000,
|
|
15471
15577
|
maxTokens: 4096,
|
|
15472
15578
|
},
|
|
15579
|
+
"x-ai/grok-4.6": {
|
|
15580
|
+
id: "x-ai/grok-4.6",
|
|
15581
|
+
name: "SpaceXAI: Grok 4.6",
|
|
15582
|
+
api: "openai-completions",
|
|
15583
|
+
provider: "openrouter",
|
|
15584
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
15585
|
+
reasoning: true,
|
|
15586
|
+
input: ["text", "image"],
|
|
15587
|
+
cost: {
|
|
15588
|
+
input: 2,
|
|
15589
|
+
output: 6,
|
|
15590
|
+
cacheRead: 0.5,
|
|
15591
|
+
cacheWrite: 0,
|
|
15592
|
+
},
|
|
15593
|
+
contextWindow: 500000,
|
|
15594
|
+
maxTokens: 4096,
|
|
15595
|
+
},
|
|
15473
15596
|
"x-ai/grok-build-0.1": {
|
|
15474
15597
|
id: "x-ai/grok-build-0.1",
|
|
15475
15598
|
name: "SpaceXAI: Grok Build 0.1",
|
|
@@ -15581,9 +15704,9 @@ export const MODELS = {
|
|
|
15581
15704
|
reasoning: true,
|
|
15582
15705
|
input: ["text"],
|
|
15583
15706
|
cost: {
|
|
15584
|
-
input: 0.
|
|
15585
|
-
output: 2,
|
|
15586
|
-
cacheRead: 0.
|
|
15707
|
+
input: 0.55,
|
|
15708
|
+
output: 2.2,
|
|
15709
|
+
cacheRead: 0.11,
|
|
15587
15710
|
cacheWrite: 0,
|
|
15588
15711
|
},
|
|
15589
15712
|
contextWindow: 204800,
|
|
@@ -15683,9 +15806,9 @@ export const MODELS = {
|
|
|
15683
15806
|
reasoning: true,
|
|
15684
15807
|
input: ["text"],
|
|
15685
15808
|
cost: {
|
|
15686
|
-
input:
|
|
15687
|
-
output:
|
|
15688
|
-
cacheRead: 0.
|
|
15809
|
+
input: 1.4,
|
|
15810
|
+
output: 4.4,
|
|
15811
|
+
cacheRead: 0.26,
|
|
15689
15812
|
cacheWrite: 0,
|
|
15690
15813
|
},
|
|
15691
15814
|
contextWindow: 204800,
|
|
@@ -15700,9 +15823,9 @@ export const MODELS = {
|
|
|
15700
15823
|
reasoning: true,
|
|
15701
15824
|
input: ["text"],
|
|
15702
15825
|
cost: {
|
|
15703
|
-
input: 0.
|
|
15704
|
-
output: 1.
|
|
15705
|
-
cacheRead: 0.
|
|
15826
|
+
input: 0.49,
|
|
15827
|
+
output: 1.54,
|
|
15828
|
+
cacheRead: 0.091,
|
|
15706
15829
|
cacheWrite: 0,
|
|
15707
15830
|
},
|
|
15708
15831
|
contextWindow: 1048576,
|
|
@@ -15825,13 +15948,13 @@ export const MODELS = {
|
|
|
15825
15948
|
thinkingLevelMap: { "minimal": null, "low": null, "medium": null, "high": "high", "xhigh": "xhigh" },
|
|
15826
15949
|
input: ["text"],
|
|
15827
15950
|
cost: {
|
|
15828
|
-
input: 0.
|
|
15829
|
-
output: 0.
|
|
15830
|
-
cacheRead: 0.
|
|
15951
|
+
input: 0.079996,
|
|
15952
|
+
output: 0.252,
|
|
15953
|
+
cacheRead: 0.0252,
|
|
15831
15954
|
cacheWrite: 0,
|
|
15832
15955
|
},
|
|
15833
15956
|
contextWindow: 1048576,
|
|
15834
|
-
maxTokens:
|
|
15957
|
+
maxTokens: 4096,
|
|
15835
15958
|
},
|
|
15836
15959
|
"~google/gemini-flash-latest": {
|
|
15837
15960
|
id: "~google/gemini-flash-latest",
|
|
@@ -15929,7 +16052,7 @@ export const MODELS = {
|
|
|
15929
16052
|
cost: {
|
|
15930
16053
|
input: 2,
|
|
15931
16054
|
output: 6,
|
|
15932
|
-
cacheRead: 0.
|
|
16055
|
+
cacheRead: 0.5,
|
|
15933
16056
|
cacheWrite: 0,
|
|
15934
16057
|
},
|
|
15935
16058
|
contextWindow: 500000,
|
|
@@ -17921,6 +18044,23 @@ export const MODELS = {
|
|
|
17921
18044
|
contextWindow: 1048600,
|
|
17922
18045
|
maxTokens: 1048600,
|
|
17923
18046
|
},
|
|
18047
|
+
"deepseek/deepseek-v4-pro-0813": {
|
|
18048
|
+
id: "deepseek/deepseek-v4-pro-0813",
|
|
18049
|
+
name: "DeepSeek V4 Pro 0813",
|
|
18050
|
+
api: "anthropic-messages",
|
|
18051
|
+
provider: "vercel-ai-gateway",
|
|
18052
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
18053
|
+
reasoning: true,
|
|
18054
|
+
input: ["text"],
|
|
18055
|
+
cost: {
|
|
18056
|
+
input: 0.435,
|
|
18057
|
+
output: 0.87,
|
|
18058
|
+
cacheRead: 0.0036,
|
|
18059
|
+
cacheWrite: 0,
|
|
18060
|
+
},
|
|
18061
|
+
contextWindow: 1000000,
|
|
18062
|
+
maxTokens: 384000,
|
|
18063
|
+
},
|
|
17924
18064
|
"google/gemini-2.5-flash": {
|
|
17925
18065
|
id: "google/gemini-2.5-flash",
|
|
17926
18066
|
name: "Gemini 2.5 Flash",
|
|
@@ -19991,6 +20131,23 @@ export const MODELS = {
|
|
|
19991
20131
|
contextWindow: 500000,
|
|
19992
20132
|
maxTokens: 500000,
|
|
19993
20133
|
},
|
|
20134
|
+
"xai/grok-4.6": {
|
|
20135
|
+
id: "xai/grok-4.6",
|
|
20136
|
+
name: "Grok 4.6",
|
|
20137
|
+
api: "anthropic-messages",
|
|
20138
|
+
provider: "vercel-ai-gateway",
|
|
20139
|
+
baseUrl: "https://ai-gateway.vercel.sh",
|
|
20140
|
+
reasoning: true,
|
|
20141
|
+
input: ["text"],
|
|
20142
|
+
cost: {
|
|
20143
|
+
input: 2,
|
|
20144
|
+
output: 6,
|
|
20145
|
+
cacheRead: 0.5,
|
|
20146
|
+
cacheWrite: 0,
|
|
20147
|
+
},
|
|
20148
|
+
contextWindow: 500000,
|
|
20149
|
+
maxTokens: 500000,
|
|
20150
|
+
},
|
|
19994
20151
|
"xai/grok-build-0.1": {
|
|
19995
20152
|
id: "xai/grok-build-0.1",
|
|
19996
20153
|
name: "Grok Build 0.1",
|
|
@@ -20403,6 +20560,23 @@ export const MODELS = {
|
|
|
20403
20560
|
contextWindow: 500000,
|
|
20404
20561
|
maxTokens: 500000,
|
|
20405
20562
|
},
|
|
20563
|
+
"grok-4.6": {
|
|
20564
|
+
id: "grok-4.6",
|
|
20565
|
+
name: "Grok 4.6",
|
|
20566
|
+
api: "openai-completions",
|
|
20567
|
+
provider: "xai",
|
|
20568
|
+
baseUrl: "https://api.x.ai/v1",
|
|
20569
|
+
reasoning: true,
|
|
20570
|
+
input: ["text", "image"],
|
|
20571
|
+
cost: {
|
|
20572
|
+
input: 2,
|
|
20573
|
+
output: 6,
|
|
20574
|
+
cacheRead: 0.5,
|
|
20575
|
+
cacheWrite: 0,
|
|
20576
|
+
},
|
|
20577
|
+
contextWindow: 500000,
|
|
20578
|
+
maxTokens: 500000,
|
|
20579
|
+
},
|
|
20406
20580
|
"grok-build-0.1": {
|
|
20407
20581
|
id: "grok-build-0.1",
|
|
20408
20582
|
name: "Grok Build 0.1",
|