@earendil-works/pi-ai 0.77.0 → 0.78.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/README.md +1 -1
- package/dist/models.generated.d.ts +70 -39
- package/dist/models.generated.d.ts.map +1 -1
- package/dist/models.generated.js +73 -66
- package/dist/models.generated.js.map +1 -1
- package/dist/providers/amazon-bedrock.d.ts.map +1 -1
- package/dist/providers/amazon-bedrock.js +36 -0
- package/dist/providers/amazon-bedrock.js.map +1 -1
- package/dist/providers/anthropic.d.ts.map +1 -1
- package/dist/providers/anthropic.js +5 -3
- package/dist/providers/anthropic.js.map +1 -1
- package/dist/providers/azure-openai-responses.d.ts.map +1 -1
- package/dist/providers/azure-openai-responses.js +5 -9
- package/dist/providers/azure-openai-responses.js.map +1 -1
- package/dist/providers/google-vertex.d.ts.map +1 -1
- package/dist/providers/google-vertex.js +1 -1
- package/dist/providers/google-vertex.js.map +1 -1
- package/dist/providers/google.d.ts.map +1 -1
- package/dist/providers/google.js +5 -3
- package/dist/providers/google.js.map +1 -1
- package/dist/providers/images/openrouter.d.ts.map +1 -1
- package/dist/providers/images/openrouter.js +2 -3
- package/dist/providers/images/openrouter.js.map +1 -1
- package/dist/providers/mistral.d.ts.map +1 -1
- package/dist/providers/mistral.js +2 -3
- package/dist/providers/mistral.js.map +1 -1
- package/dist/providers/openai-codex-responses.d.ts.map +1 -1
- package/dist/providers/openai-codex-responses.js +15 -5
- package/dist/providers/openai-codex-responses.js.map +1 -1
- package/dist/providers/openai-completions.d.ts.map +1 -1
- package/dist/providers/openai-completions.js +6 -10
- package/dist/providers/openai-completions.js.map +1 -1
- package/dist/providers/openai-responses.d.ts.map +1 -1
- package/dist/providers/openai-responses.js +5 -9
- package/dist/providers/openai-responses.js.map +1 -1
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +14 -2
- package/dist/stream.js.map +1 -1
- package/dist/types.d.ts +5 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
package/dist/models.generated.js
CHANGED
|
@@ -3865,8 +3865,8 @@ export const MODELS = {
|
|
|
3865
3865
|
cacheRead: 0,
|
|
3866
3866
|
cacheWrite: 0,
|
|
3867
3867
|
},
|
|
3868
|
-
contextWindow:
|
|
3869
|
-
maxTokens:
|
|
3868
|
+
contextWindow: 200000,
|
|
3869
|
+
maxTokens: 64000,
|
|
3870
3870
|
},
|
|
3871
3871
|
"claude-opus-4.5": {
|
|
3872
3872
|
id: "claude-opus-4.5",
|
|
@@ -3883,7 +3883,7 @@ export const MODELS = {
|
|
|
3883
3883
|
cacheRead: 0,
|
|
3884
3884
|
cacheWrite: 0,
|
|
3885
3885
|
},
|
|
3886
|
-
contextWindow:
|
|
3886
|
+
contextWindow: 200000,
|
|
3887
3887
|
maxTokens: 32000,
|
|
3888
3888
|
},
|
|
3889
3889
|
"claude-opus-4.6": {
|
|
@@ -3904,7 +3904,7 @@ export const MODELS = {
|
|
|
3904
3904
|
cacheWrite: 0,
|
|
3905
3905
|
},
|
|
3906
3906
|
contextWindow: 1000000,
|
|
3907
|
-
maxTokens:
|
|
3907
|
+
maxTokens: 32000,
|
|
3908
3908
|
},
|
|
3909
3909
|
"claude-opus-4.7": {
|
|
3910
3910
|
id: "claude-opus-4.7",
|
|
@@ -3923,7 +3923,27 @@ export const MODELS = {
|
|
|
3923
3923
|
cacheRead: 0,
|
|
3924
3924
|
cacheWrite: 0,
|
|
3925
3925
|
},
|
|
3926
|
-
contextWindow:
|
|
3926
|
+
contextWindow: 200000,
|
|
3927
|
+
maxTokens: 32000,
|
|
3928
|
+
},
|
|
3929
|
+
"claude-opus-4.8": {
|
|
3930
|
+
id: "claude-opus-4.8",
|
|
3931
|
+
name: "Claude Opus 4.8",
|
|
3932
|
+
api: "anthropic-messages",
|
|
3933
|
+
provider: "github-copilot",
|
|
3934
|
+
baseUrl: "https://api.individual.githubcopilot.com",
|
|
3935
|
+
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" },
|
|
3936
|
+
compat: { "forceAdaptiveThinking": true },
|
|
3937
|
+
reasoning: true,
|
|
3938
|
+
thinkingLevelMap: { "xhigh": "xhigh" },
|
|
3939
|
+
input: ["text", "image"],
|
|
3940
|
+
cost: {
|
|
3941
|
+
input: 0,
|
|
3942
|
+
output: 0,
|
|
3943
|
+
cacheRead: 0,
|
|
3944
|
+
cacheWrite: 0,
|
|
3945
|
+
},
|
|
3946
|
+
contextWindow: 200000,
|
|
3927
3947
|
maxTokens: 64000,
|
|
3928
3948
|
},
|
|
3929
3949
|
"claude-sonnet-4.5": {
|
|
@@ -3942,7 +3962,7 @@ export const MODELS = {
|
|
|
3942
3962
|
cacheRead: 0,
|
|
3943
3963
|
cacheWrite: 0,
|
|
3944
3964
|
},
|
|
3945
|
-
contextWindow:
|
|
3965
|
+
contextWindow: 200000,
|
|
3946
3966
|
maxTokens: 32000,
|
|
3947
3967
|
},
|
|
3948
3968
|
"claude-sonnet-4.6": {
|
|
@@ -4018,7 +4038,7 @@ export const MODELS = {
|
|
|
4018
4038
|
cacheRead: 0,
|
|
4019
4039
|
cacheWrite: 0,
|
|
4020
4040
|
},
|
|
4021
|
-
contextWindow:
|
|
4041
|
+
contextWindow: 200000,
|
|
4022
4042
|
maxTokens: 64000,
|
|
4023
4043
|
},
|
|
4024
4044
|
"gemini-3.5-flash": {
|
|
@@ -4037,7 +4057,7 @@ export const MODELS = {
|
|
|
4037
4057
|
cacheRead: 0,
|
|
4038
4058
|
cacheWrite: 0,
|
|
4039
4059
|
},
|
|
4040
|
-
contextWindow:
|
|
4060
|
+
contextWindow: 200000,
|
|
4041
4061
|
maxTokens: 64000,
|
|
4042
4062
|
},
|
|
4043
4063
|
"gpt-4.1": {
|
|
@@ -4113,8 +4133,8 @@ export const MODELS = {
|
|
|
4113
4133
|
cacheRead: 0,
|
|
4114
4134
|
cacheWrite: 0,
|
|
4115
4135
|
},
|
|
4116
|
-
contextWindow:
|
|
4117
|
-
maxTokens:
|
|
4136
|
+
contextWindow: 400000,
|
|
4137
|
+
maxTokens: 128000,
|
|
4118
4138
|
},
|
|
4119
4139
|
"gpt-5.2-codex": {
|
|
4120
4140
|
id: "gpt-5.2-codex",
|
|
@@ -7721,7 +7741,9 @@ export const MODELS = {
|
|
|
7721
7741
|
api: "openai-completions",
|
|
7722
7742
|
provider: "opencode",
|
|
7723
7743
|
baseUrl: "https://opencode.ai/zen/v1",
|
|
7744
|
+
compat: { "supportsReasoningEffort": false },
|
|
7724
7745
|
reasoning: true,
|
|
7746
|
+
thinkingLevelMap: { "off": null, "minimal": null, "low": null, "medium": null },
|
|
7725
7747
|
input: ["text", "image"],
|
|
7726
7748
|
cost: {
|
|
7727
7749
|
input: 1,
|
|
@@ -7755,6 +7777,7 @@ export const MODELS = {
|
|
|
7755
7777
|
api: "openai-completions",
|
|
7756
7778
|
provider: "opencode",
|
|
7757
7779
|
baseUrl: "https://opencode.ai/zen/v1",
|
|
7780
|
+
compat: { "thinkingFormat": "deepseek", "supportsReasoningEffort": false },
|
|
7758
7781
|
reasoning: true,
|
|
7759
7782
|
input: ["text", "image"],
|
|
7760
7783
|
cost: {
|
|
@@ -7965,9 +7988,9 @@ export const MODELS = {
|
|
|
7965
7988
|
api: "openai-completions",
|
|
7966
7989
|
provider: "opencode-go",
|
|
7967
7990
|
baseUrl: "https://opencode.ai/zen/go/v1",
|
|
7968
|
-
compat: { "thinkingFormat": "
|
|
7991
|
+
compat: { "thinkingFormat": "deepseek", "supportsReasoningEffort": false },
|
|
7969
7992
|
reasoning: true,
|
|
7970
|
-
thinkingLevelMap: { "
|
|
7993
|
+
thinkingLevelMap: { "minimal": null, "low": null, "medium": null },
|
|
7971
7994
|
input: ["text", "image"],
|
|
7972
7995
|
cost: {
|
|
7973
7996
|
input: 0.95,
|
|
@@ -8046,24 +8069,6 @@ export const MODELS = {
|
|
|
8046
8069
|
contextWindow: 204800,
|
|
8047
8070
|
maxTokens: 131072,
|
|
8048
8071
|
},
|
|
8049
|
-
"qwen3.5-plus": {
|
|
8050
|
-
id: "qwen3.5-plus",
|
|
8051
|
-
name: "Qwen3.5 Plus",
|
|
8052
|
-
api: "openai-completions",
|
|
8053
|
-
provider: "opencode-go",
|
|
8054
|
-
baseUrl: "https://opencode.ai/zen/go/v1",
|
|
8055
|
-
compat: { "thinkingFormat": "qwen" },
|
|
8056
|
-
reasoning: true,
|
|
8057
|
-
input: ["text", "image"],
|
|
8058
|
-
cost: {
|
|
8059
|
-
input: 0.2,
|
|
8060
|
-
output: 1.2,
|
|
8061
|
-
cacheRead: 0.02,
|
|
8062
|
-
cacheWrite: 0.25,
|
|
8063
|
-
},
|
|
8064
|
-
contextWindow: 262144,
|
|
8065
|
-
maxTokens: 65536,
|
|
8066
|
-
},
|
|
8067
8072
|
"qwen3.6-plus": {
|
|
8068
8073
|
id: "qwen3.6-plus",
|
|
8069
8074
|
name: "Qwen3.6 Plus",
|
|
@@ -8815,13 +8820,13 @@ export const MODELS = {
|
|
|
8815
8820
|
thinkingLevelMap: { "minimal": null, "low": null, "medium": null, "high": "high", "xhigh": "xhigh" },
|
|
8816
8821
|
input: ["text"],
|
|
8817
8822
|
cost: {
|
|
8818
|
-
input: 0.
|
|
8819
|
-
output: 0.
|
|
8820
|
-
cacheRead: 0.
|
|
8823
|
+
input: 0.0983,
|
|
8824
|
+
output: 0.1966,
|
|
8825
|
+
cacheRead: 0.019700000000000002,
|
|
8821
8826
|
cacheWrite: 0,
|
|
8822
8827
|
},
|
|
8823
8828
|
contextWindow: 1048576,
|
|
8824
|
-
maxTokens:
|
|
8829
|
+
maxTokens: 131072,
|
|
8825
8830
|
},
|
|
8826
8831
|
"deepseek/deepseek-v4-flash:free": {
|
|
8827
8832
|
id: "deepseek/deepseek-v4-flash:free",
|
|
@@ -8892,7 +8897,7 @@ export const MODELS = {
|
|
|
8892
8897
|
cacheRead: 0.024999999999999998,
|
|
8893
8898
|
cacheWrite: 0.08333333333333334,
|
|
8894
8899
|
},
|
|
8895
|
-
contextWindow:
|
|
8900
|
+
contextWindow: 1048576,
|
|
8896
8901
|
maxTokens: 8192,
|
|
8897
8902
|
},
|
|
8898
8903
|
"google/gemini-2.0-flash-lite-001": {
|
|
@@ -9939,16 +9944,17 @@ export const MODELS = {
|
|
|
9939
9944
|
api: "openai-completions",
|
|
9940
9945
|
provider: "openrouter",
|
|
9941
9946
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
9947
|
+
compat: { "supportsDeveloperRole": false },
|
|
9942
9948
|
reasoning: true,
|
|
9943
9949
|
input: ["text", "image"],
|
|
9944
9950
|
cost: {
|
|
9945
|
-
input: 0.
|
|
9946
|
-
output: 3.
|
|
9947
|
-
cacheRead: 0.
|
|
9951
|
+
input: 0.684,
|
|
9952
|
+
output: 3.42,
|
|
9953
|
+
cacheRead: 0.144,
|
|
9948
9954
|
cacheWrite: 0,
|
|
9949
9955
|
},
|
|
9950
9956
|
contextWindow: 262144,
|
|
9951
|
-
maxTokens:
|
|
9957
|
+
maxTokens: 262144,
|
|
9952
9958
|
},
|
|
9953
9959
|
"moonshotai/kimi-k2.6:free": {
|
|
9954
9960
|
id: "moonshotai/kimi-k2.6:free",
|
|
@@ -9956,6 +9962,7 @@ export const MODELS = {
|
|
|
9956
9962
|
api: "openai-completions",
|
|
9957
9963
|
provider: "openrouter",
|
|
9958
9964
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
9965
|
+
compat: { "supportsDeveloperRole": false },
|
|
9959
9966
|
reasoning: true,
|
|
9960
9967
|
input: ["text", "image"],
|
|
9961
9968
|
cost: {
|
|
@@ -10392,23 +10399,6 @@ export const MODELS = {
|
|
|
10392
10399
|
contextWindow: 128000,
|
|
10393
10400
|
maxTokens: 16384,
|
|
10394
10401
|
},
|
|
10395
|
-
"openai/gpt-4o-audio-preview": {
|
|
10396
|
-
id: "openai/gpt-4o-audio-preview",
|
|
10397
|
-
name: "OpenAI: GPT-4o Audio",
|
|
10398
|
-
api: "openai-completions",
|
|
10399
|
-
provider: "openrouter",
|
|
10400
|
-
baseUrl: "https://openrouter.ai/api/v1",
|
|
10401
|
-
reasoning: false,
|
|
10402
|
-
input: ["text"],
|
|
10403
|
-
cost: {
|
|
10404
|
-
input: 2.5,
|
|
10405
|
-
output: 10,
|
|
10406
|
-
cacheRead: 0,
|
|
10407
|
-
cacheWrite: 0,
|
|
10408
|
-
},
|
|
10409
|
-
contextWindow: 128000,
|
|
10410
|
-
maxTokens: 16384,
|
|
10411
|
-
},
|
|
10412
10402
|
"openai/gpt-4o-mini": {
|
|
10413
10403
|
id: "openai/gpt-4o-mini",
|
|
10414
10404
|
name: "OpenAI: GPT-4o-mini",
|
|
@@ -12087,6 +12077,23 @@ export const MODELS = {
|
|
|
12087
12077
|
contextWindow: 262144,
|
|
12088
12078
|
maxTokens: 16384,
|
|
12089
12079
|
},
|
|
12080
|
+
"stepfun/step-3.7-flash": {
|
|
12081
|
+
id: "stepfun/step-3.7-flash",
|
|
12082
|
+
name: "StepFun: Step 3.7 Flash",
|
|
12083
|
+
api: "openai-completions",
|
|
12084
|
+
provider: "openrouter",
|
|
12085
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
12086
|
+
reasoning: true,
|
|
12087
|
+
input: ["text", "image"],
|
|
12088
|
+
cost: {
|
|
12089
|
+
input: 0.19999999999999998,
|
|
12090
|
+
output: 1.15,
|
|
12091
|
+
cacheRead: 0.04,
|
|
12092
|
+
cacheWrite: 0,
|
|
12093
|
+
},
|
|
12094
|
+
contextWindow: 256000,
|
|
12095
|
+
maxTokens: 256000,
|
|
12096
|
+
},
|
|
12090
12097
|
"tencent/hy3-preview": {
|
|
12091
12098
|
id: "tencent/hy3-preview",
|
|
12092
12099
|
name: "Tencent: Hy3 preview",
|
|
@@ -12606,13 +12613,13 @@ export const MODELS = {
|
|
|
12606
12613
|
reasoning: true,
|
|
12607
12614
|
input: ["text", "image"],
|
|
12608
12615
|
cost: {
|
|
12609
|
-
input: 0.
|
|
12610
|
-
output: 3.
|
|
12611
|
-
cacheRead: 0.
|
|
12616
|
+
input: 0.684,
|
|
12617
|
+
output: 3.42,
|
|
12618
|
+
cacheRead: 0.144,
|
|
12612
12619
|
cacheWrite: 0,
|
|
12613
12620
|
},
|
|
12614
12621
|
contextWindow: 262144,
|
|
12615
|
-
maxTokens:
|
|
12622
|
+
maxTokens: 262144,
|
|
12616
12623
|
},
|
|
12617
12624
|
"~openai/gpt-latest": {
|
|
12618
12625
|
id: "~openai/gpt-latest",
|
|
@@ -13010,20 +13017,20 @@ export const MODELS = {
|
|
|
13010
13017
|
},
|
|
13011
13018
|
"alibaba/qwen-3-235b": {
|
|
13012
13019
|
id: "alibaba/qwen-3-235b",
|
|
13013
|
-
name: "Qwen3 235B
|
|
13020
|
+
name: "Qwen3 235B A22B",
|
|
13014
13021
|
api: "anthropic-messages",
|
|
13015
13022
|
provider: "vercel-ai-gateway",
|
|
13016
13023
|
baseUrl: "https://ai-gateway.vercel.sh",
|
|
13017
13024
|
reasoning: false,
|
|
13018
13025
|
input: ["text"],
|
|
13019
13026
|
cost: {
|
|
13020
|
-
input: 0.
|
|
13021
|
-
output:
|
|
13022
|
-
cacheRead: 0
|
|
13027
|
+
input: 0.22,
|
|
13028
|
+
output: 0.88,
|
|
13029
|
+
cacheRead: 0,
|
|
13023
13030
|
cacheWrite: 0,
|
|
13024
13031
|
},
|
|
13025
|
-
contextWindow:
|
|
13026
|
-
maxTokens:
|
|
13032
|
+
contextWindow: 262144,
|
|
13033
|
+
maxTokens: 16384,
|
|
13027
13034
|
},
|
|
13028
13035
|
"alibaba/qwen-3-30b": {
|
|
13029
13036
|
id: "alibaba/qwen-3-30b",
|