@mariozechner/pi-ai 0.47.0 → 0.48.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 +161 -8
- package/dist/models.generated.d.ts.map +1 -1
- package/dist/models.generated.js +174 -21
- package/dist/models.generated.js.map +1 -1
- package/dist/providers/amazon-bedrock.d.ts.map +1 -1
- package/dist/providers/amazon-bedrock.js +7 -3
- package/dist/providers/amazon-bedrock.js.map +1 -1
- package/dist/providers/google-shared.d.ts.map +1 -1
- package/dist/providers/google-shared.js +2 -1
- package/dist/providers/google-shared.js.map +1 -1
- package/dist/providers/openai-completions.d.ts.map +1 -1
- package/dist/providers/openai-completions.js +16 -9
- package/dist/providers/openai-completions.js.map +1 -1
- package/dist/providers/transform-messages.d.ts.map +1 -1
- package/dist/providers/transform-messages.js +7 -0
- package/dist/providers/transform-messages.js.map +1 -1
- package/dist/utils/validation.d.ts +1 -1
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +7 -4
- package/dist/utils/validation.js.map +1 -1
- package/package.json +1 -1
package/dist/models.generated.js
CHANGED
|
@@ -7201,6 +7201,108 @@ export const MODELS = {
|
|
|
7201
7201
|
contextWindow: 32768,
|
|
7202
7202
|
maxTokens: 4096,
|
|
7203
7203
|
},
|
|
7204
|
+
"qwen/qwen-max": {
|
|
7205
|
+
id: "qwen/qwen-max",
|
|
7206
|
+
name: "Qwen: Qwen-Max ",
|
|
7207
|
+
api: "openai-completions",
|
|
7208
|
+
provider: "openrouter",
|
|
7209
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
7210
|
+
reasoning: false,
|
|
7211
|
+
input: ["text"],
|
|
7212
|
+
cost: {
|
|
7213
|
+
input: 1.5999999999999999,
|
|
7214
|
+
output: 6.3999999999999995,
|
|
7215
|
+
cacheRead: 0.64,
|
|
7216
|
+
cacheWrite: 0,
|
|
7217
|
+
},
|
|
7218
|
+
contextWindow: 32768,
|
|
7219
|
+
maxTokens: 8192,
|
|
7220
|
+
},
|
|
7221
|
+
"qwen/qwen-plus": {
|
|
7222
|
+
id: "qwen/qwen-plus",
|
|
7223
|
+
name: "Qwen: Qwen-Plus",
|
|
7224
|
+
api: "openai-completions",
|
|
7225
|
+
provider: "openrouter",
|
|
7226
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
7227
|
+
reasoning: false,
|
|
7228
|
+
input: ["text"],
|
|
7229
|
+
cost: {
|
|
7230
|
+
input: 0.39999999999999997,
|
|
7231
|
+
output: 1.2,
|
|
7232
|
+
cacheRead: 0.16,
|
|
7233
|
+
cacheWrite: 0,
|
|
7234
|
+
},
|
|
7235
|
+
contextWindow: 131072,
|
|
7236
|
+
maxTokens: 8192,
|
|
7237
|
+
},
|
|
7238
|
+
"qwen/qwen-plus-2025-07-28": {
|
|
7239
|
+
id: "qwen/qwen-plus-2025-07-28",
|
|
7240
|
+
name: "Qwen: Qwen Plus 0728",
|
|
7241
|
+
api: "openai-completions",
|
|
7242
|
+
provider: "openrouter",
|
|
7243
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
7244
|
+
reasoning: false,
|
|
7245
|
+
input: ["text"],
|
|
7246
|
+
cost: {
|
|
7247
|
+
input: 0.39999999999999997,
|
|
7248
|
+
output: 1.2,
|
|
7249
|
+
cacheRead: 0,
|
|
7250
|
+
cacheWrite: 0,
|
|
7251
|
+
},
|
|
7252
|
+
contextWindow: 1000000,
|
|
7253
|
+
maxTokens: 32768,
|
|
7254
|
+
},
|
|
7255
|
+
"qwen/qwen-plus-2025-07-28:thinking": {
|
|
7256
|
+
id: "qwen/qwen-plus-2025-07-28:thinking",
|
|
7257
|
+
name: "Qwen: Qwen Plus 0728 (thinking)",
|
|
7258
|
+
api: "openai-completions",
|
|
7259
|
+
provider: "openrouter",
|
|
7260
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
7261
|
+
reasoning: true,
|
|
7262
|
+
input: ["text"],
|
|
7263
|
+
cost: {
|
|
7264
|
+
input: 0.39999999999999997,
|
|
7265
|
+
output: 4,
|
|
7266
|
+
cacheRead: 0,
|
|
7267
|
+
cacheWrite: 0,
|
|
7268
|
+
},
|
|
7269
|
+
contextWindow: 1000000,
|
|
7270
|
+
maxTokens: 32768,
|
|
7271
|
+
},
|
|
7272
|
+
"qwen/qwen-turbo": {
|
|
7273
|
+
id: "qwen/qwen-turbo",
|
|
7274
|
+
name: "Qwen: Qwen-Turbo",
|
|
7275
|
+
api: "openai-completions",
|
|
7276
|
+
provider: "openrouter",
|
|
7277
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
7278
|
+
reasoning: false,
|
|
7279
|
+
input: ["text"],
|
|
7280
|
+
cost: {
|
|
7281
|
+
input: 0.049999999999999996,
|
|
7282
|
+
output: 0.19999999999999998,
|
|
7283
|
+
cacheRead: 0.02,
|
|
7284
|
+
cacheWrite: 0,
|
|
7285
|
+
},
|
|
7286
|
+
contextWindow: 1000000,
|
|
7287
|
+
maxTokens: 8192,
|
|
7288
|
+
},
|
|
7289
|
+
"qwen/qwen-vl-max": {
|
|
7290
|
+
id: "qwen/qwen-vl-max",
|
|
7291
|
+
name: "Qwen: Qwen VL Max",
|
|
7292
|
+
api: "openai-completions",
|
|
7293
|
+
provider: "openrouter",
|
|
7294
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
7295
|
+
reasoning: false,
|
|
7296
|
+
input: ["text", "image"],
|
|
7297
|
+
cost: {
|
|
7298
|
+
input: 0.7999999999999999,
|
|
7299
|
+
output: 3.1999999999999997,
|
|
7300
|
+
cacheRead: 0,
|
|
7301
|
+
cacheWrite: 0,
|
|
7302
|
+
},
|
|
7303
|
+
contextWindow: 131072,
|
|
7304
|
+
maxTokens: 8192,
|
|
7305
|
+
},
|
|
7204
7306
|
"qwen/qwen3-14b": {
|
|
7205
7307
|
id: "qwen/qwen3-14b",
|
|
7206
7308
|
name: "Qwen: Qwen3 14B",
|
|
@@ -7405,6 +7507,40 @@ export const MODELS = {
|
|
|
7405
7507
|
contextWindow: 160000,
|
|
7406
7508
|
maxTokens: 32768,
|
|
7407
7509
|
},
|
|
7510
|
+
"qwen/qwen3-coder-flash": {
|
|
7511
|
+
id: "qwen/qwen3-coder-flash",
|
|
7512
|
+
name: "Qwen: Qwen3 Coder Flash",
|
|
7513
|
+
api: "openai-completions",
|
|
7514
|
+
provider: "openrouter",
|
|
7515
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
7516
|
+
reasoning: false,
|
|
7517
|
+
input: ["text"],
|
|
7518
|
+
cost: {
|
|
7519
|
+
input: 0.3,
|
|
7520
|
+
output: 1.5,
|
|
7521
|
+
cacheRead: 0.08,
|
|
7522
|
+
cacheWrite: 0,
|
|
7523
|
+
},
|
|
7524
|
+
contextWindow: 128000,
|
|
7525
|
+
maxTokens: 65536,
|
|
7526
|
+
},
|
|
7527
|
+
"qwen/qwen3-coder-plus": {
|
|
7528
|
+
id: "qwen/qwen3-coder-plus",
|
|
7529
|
+
name: "Qwen: Qwen3 Coder Plus",
|
|
7530
|
+
api: "openai-completions",
|
|
7531
|
+
provider: "openrouter",
|
|
7532
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
7533
|
+
reasoning: false,
|
|
7534
|
+
input: ["text"],
|
|
7535
|
+
cost: {
|
|
7536
|
+
input: 1,
|
|
7537
|
+
output: 5,
|
|
7538
|
+
cacheRead: 0.09999999999999999,
|
|
7539
|
+
cacheWrite: 0,
|
|
7540
|
+
},
|
|
7541
|
+
contextWindow: 128000,
|
|
7542
|
+
maxTokens: 65536,
|
|
7543
|
+
},
|
|
7408
7544
|
"qwen/qwen3-coder:exacto": {
|
|
7409
7545
|
id: "qwen/qwen3-coder:exacto",
|
|
7410
7546
|
name: "Qwen: Qwen3 Coder 480B A35B (exacto)",
|
|
@@ -7439,6 +7575,23 @@ export const MODELS = {
|
|
|
7439
7575
|
contextWindow: 262000,
|
|
7440
7576
|
maxTokens: 262000,
|
|
7441
7577
|
},
|
|
7578
|
+
"qwen/qwen3-max": {
|
|
7579
|
+
id: "qwen/qwen3-max",
|
|
7580
|
+
name: "Qwen: Qwen3 Max",
|
|
7581
|
+
api: "openai-completions",
|
|
7582
|
+
provider: "openrouter",
|
|
7583
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
7584
|
+
reasoning: false,
|
|
7585
|
+
input: ["text"],
|
|
7586
|
+
cost: {
|
|
7587
|
+
input: 1.2,
|
|
7588
|
+
output: 6,
|
|
7589
|
+
cacheRead: 0.24,
|
|
7590
|
+
cacheWrite: 0,
|
|
7591
|
+
},
|
|
7592
|
+
contextWindow: 256000,
|
|
7593
|
+
maxTokens: 32768,
|
|
7594
|
+
},
|
|
7442
7595
|
"qwen/qwen3-next-80b-a3b-instruct": {
|
|
7443
7596
|
id: "qwen/qwen3-next-80b-a3b-instruct",
|
|
7444
7597
|
name: "Qwen: Qwen3 Next 80B A3B Instruct",
|
|
@@ -7507,23 +7660,6 @@ export const MODELS = {
|
|
|
7507
7660
|
contextWindow: 262144,
|
|
7508
7661
|
maxTokens: 4096,
|
|
7509
7662
|
},
|
|
7510
|
-
"qwen/qwen3-vl-235b-a22b-thinking": {
|
|
7511
|
-
id: "qwen/qwen3-vl-235b-a22b-thinking",
|
|
7512
|
-
name: "Qwen: Qwen3 VL 235B A22B Thinking",
|
|
7513
|
-
api: "openai-completions",
|
|
7514
|
-
provider: "openrouter",
|
|
7515
|
-
baseUrl: "https://openrouter.ai/api/v1",
|
|
7516
|
-
reasoning: true,
|
|
7517
|
-
input: ["text", "image"],
|
|
7518
|
-
cost: {
|
|
7519
|
-
input: 0.44999999999999996,
|
|
7520
|
-
output: 3.5,
|
|
7521
|
-
cacheRead: 0,
|
|
7522
|
-
cacheWrite: 0,
|
|
7523
|
-
},
|
|
7524
|
-
contextWindow: 262144,
|
|
7525
|
-
maxTokens: 262144,
|
|
7526
|
-
},
|
|
7527
7663
|
"qwen/qwen3-vl-30b-a3b-instruct": {
|
|
7528
7664
|
id: "qwen/qwen3-vl-30b-a3b-instruct",
|
|
7529
7665
|
name: "Qwen: Qwen3 VL 30B A3B Instruct",
|
|
@@ -7575,6 +7711,23 @@ export const MODELS = {
|
|
|
7575
7711
|
contextWindow: 131072,
|
|
7576
7712
|
maxTokens: 32768,
|
|
7577
7713
|
},
|
|
7714
|
+
"qwen/qwen3-vl-8b-thinking": {
|
|
7715
|
+
id: "qwen/qwen3-vl-8b-thinking",
|
|
7716
|
+
name: "Qwen: Qwen3 VL 8B Thinking",
|
|
7717
|
+
api: "openai-completions",
|
|
7718
|
+
provider: "openrouter",
|
|
7719
|
+
baseUrl: "https://openrouter.ai/api/v1",
|
|
7720
|
+
reasoning: true,
|
|
7721
|
+
input: ["text", "image"],
|
|
7722
|
+
cost: {
|
|
7723
|
+
input: 0.18,
|
|
7724
|
+
output: 2.0999999999999996,
|
|
7725
|
+
cacheRead: 0,
|
|
7726
|
+
cacheWrite: 0,
|
|
7727
|
+
},
|
|
7728
|
+
contextWindow: 256000,
|
|
7729
|
+
maxTokens: 32768,
|
|
7730
|
+
},
|
|
7578
7731
|
"qwen/qwq-32b": {
|
|
7579
7732
|
id: "qwen/qwq-32b",
|
|
7580
7733
|
name: "Qwen: QwQ 32B",
|
|
@@ -7890,13 +8043,13 @@ export const MODELS = {
|
|
|
7890
8043
|
reasoning: true,
|
|
7891
8044
|
input: ["text"],
|
|
7892
8045
|
cost: {
|
|
7893
|
-
input: 0.
|
|
7894
|
-
output: 0.
|
|
7895
|
-
cacheRead: 0
|
|
8046
|
+
input: 0.09,
|
|
8047
|
+
output: 0.29,
|
|
8048
|
+
cacheRead: 0,
|
|
7896
8049
|
cacheWrite: 0,
|
|
7897
8050
|
},
|
|
7898
8051
|
contextWindow: 262144,
|
|
7899
|
-
maxTokens:
|
|
8052
|
+
maxTokens: 4096,
|
|
7900
8053
|
},
|
|
7901
8054
|
"xiaomi/mimo-v2-flash:free": {
|
|
7902
8055
|
id: "xiaomi/mimo-v2-flash:free",
|