@mariozechner/pi-ai 0.46.0 → 0.47.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.
Files changed (48) hide show
  1. package/dist/constants.d.ts +6 -0
  2. package/dist/constants.d.ts.map +1 -0
  3. package/dist/constants.js +14 -0
  4. package/dist/constants.js.map +1 -0
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/models.generated.d.ts +15 -259
  10. package/dist/models.generated.d.ts.map +1 -1
  11. package/dist/models.generated.js +42 -281
  12. package/dist/models.generated.js.map +1 -1
  13. package/dist/providers/openai-codex-responses.d.ts +0 -2
  14. package/dist/providers/openai-codex-responses.d.ts.map +1 -1
  15. package/dist/providers/openai-codex-responses.js +476 -489
  16. package/dist/providers/openai-codex-responses.js.map +1 -1
  17. package/dist/providers/openai-completions.d.ts.map +1 -1
  18. package/dist/providers/openai-completions.js +2 -1
  19. package/dist/providers/openai-completions.js.map +1 -1
  20. package/package.json +1 -1
  21. package/dist/providers/openai-codex/constants.d.ts +0 -21
  22. package/dist/providers/openai-codex/constants.d.ts.map +0 -1
  23. package/dist/providers/openai-codex/constants.js +0 -21
  24. package/dist/providers/openai-codex/constants.js.map +0 -1
  25. package/dist/providers/openai-codex/index.d.ts +0 -7
  26. package/dist/providers/openai-codex/index.d.ts.map +0 -1
  27. package/dist/providers/openai-codex/index.js +0 -7
  28. package/dist/providers/openai-codex/index.js.map +0 -1
  29. package/dist/providers/openai-codex/prompts/codex.d.ts +0 -3
  30. package/dist/providers/openai-codex/prompts/codex.d.ts.map +0 -1
  31. package/dist/providers/openai-codex/prompts/codex.js +0 -323
  32. package/dist/providers/openai-codex/prompts/codex.js.map +0 -1
  33. package/dist/providers/openai-codex/prompts/pi-codex-bridge.d.ts +0 -7
  34. package/dist/providers/openai-codex/prompts/pi-codex-bridge.d.ts.map +0 -1
  35. package/dist/providers/openai-codex/prompts/pi-codex-bridge.js +0 -50
  36. package/dist/providers/openai-codex/prompts/pi-codex-bridge.js.map +0 -1
  37. package/dist/providers/openai-codex/prompts/system-prompt.d.ts +0 -10
  38. package/dist/providers/openai-codex/prompts/system-prompt.d.ts.map +0 -1
  39. package/dist/providers/openai-codex/prompts/system-prompt.js +0 -15
  40. package/dist/providers/openai-codex/prompts/system-prompt.js.map +0 -1
  41. package/dist/providers/openai-codex/request-transformer.d.ts +0 -44
  42. package/dist/providers/openai-codex/request-transformer.d.ts.map +0 -1
  43. package/dist/providers/openai-codex/request-transformer.js +0 -99
  44. package/dist/providers/openai-codex/request-transformer.js.map +0 -1
  45. package/dist/providers/openai-codex/response-handler.d.ts +0 -19
  46. package/dist/providers/openai-codex/response-handler.d.ts.map +0 -1
  47. package/dist/providers/openai-codex/response-handler.js +0 -107
  48. package/dist/providers/openai-codex/response-handler.js.map +0 -1
@@ -1720,24 +1720,6 @@ export const MODELS = {
1720
1720
  contextWindow: 128000,
1721
1721
  maxTokens: 64000,
1722
1722
  },
1723
- "oswe-vscode-prime": {
1724
- id: "oswe-vscode-prime",
1725
- name: "Raptor Mini (Preview)",
1726
- api: "openai-responses",
1727
- provider: "github-copilot",
1728
- baseUrl: "https://api.individual.githubcopilot.com",
1729
- 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" },
1730
- reasoning: true,
1731
- input: ["text", "image"],
1732
- cost: {
1733
- input: 0,
1734
- output: 0,
1735
- cacheRead: 0,
1736
- cacheWrite: 0,
1737
- },
1738
- contextWindow: 200000,
1739
- maxTokens: 64000,
1740
- },
1741
1723
  },
1742
1724
  "google": {
1743
1725
  "gemini-1.5-flash": {
@@ -4431,23 +4413,6 @@ export const MODELS = {
4431
4413
  contextWindow: 131072,
4432
4414
  maxTokens: 131072,
4433
4415
  },
4434
- "allenai/olmo-3-7b-instruct": {
4435
- id: "allenai/olmo-3-7b-instruct",
4436
- name: "AllenAI: Olmo 3 7B Instruct",
4437
- api: "openai-completions",
4438
- provider: "openrouter",
4439
- baseUrl: "https://openrouter.ai/api/v1",
4440
- reasoning: false,
4441
- input: ["text"],
4442
- cost: {
4443
- input: 0.09999999999999999,
4444
- output: 0.19999999999999998,
4445
- cacheRead: 0,
4446
- cacheWrite: 0,
4447
- },
4448
- contextWindow: 65536,
4449
- maxTokens: 65536,
4450
- },
4451
4416
  "allenai/olmo-3.1-32b-instruct": {
4452
4417
  id: "allenai/olmo-3.1-32b-instruct",
4453
4418
  name: "AllenAI: Olmo 3.1 32B Instruct",
@@ -5002,12 +4967,12 @@ export const MODELS = {
5002
4967
  input: ["text"],
5003
4968
  cost: {
5004
4969
  input: 0.7,
5005
- output: 2.4,
4970
+ output: 2.5,
5006
4971
  cacheRead: 0,
5007
4972
  cacheWrite: 0,
5008
4973
  },
5009
- contextWindow: 163840,
5010
- maxTokens: 163840,
4974
+ contextWindow: 64000,
4975
+ maxTokens: 16000,
5011
4976
  },
5012
4977
  "deepseek/deepseek-r1-0528": {
5013
4978
  id: "deepseek/deepseek-r1-0528",
@@ -5207,12 +5172,29 @@ export const MODELS = {
5207
5172
  cost: {
5208
5173
  input: 0.09999999999999999,
5209
5174
  output: 0.39999999999999997,
5210
- cacheRead: 0,
5211
- cacheWrite: 0,
5175
+ cacheRead: 0.01,
5176
+ cacheWrite: 1,
5212
5177
  },
5213
5178
  contextWindow: 1048576,
5214
5179
  maxTokens: 65536,
5215
5180
  },
5181
+ "google/gemini-2.5-flash-preview-09-2025": {
5182
+ id: "google/gemini-2.5-flash-preview-09-2025",
5183
+ name: "Google: Gemini 2.5 Flash Preview 09-2025",
5184
+ api: "openai-completions",
5185
+ provider: "openrouter",
5186
+ baseUrl: "https://openrouter.ai/api/v1",
5187
+ reasoning: true,
5188
+ input: ["text", "image"],
5189
+ cost: {
5190
+ input: 0.3,
5191
+ output: 2.5,
5192
+ cacheRead: 0.075,
5193
+ cacheWrite: 0.3833,
5194
+ },
5195
+ contextWindow: 1048576,
5196
+ maxTokens: 65535,
5197
+ },
5216
5198
  "google/gemini-2.5-pro": {
5217
5199
  id: "google/gemini-2.5-pro",
5218
5200
  name: "Google: Gemini 2.5 Pro",
@@ -5383,23 +5365,6 @@ export const MODELS = {
5383
5365
  contextWindow: 256000,
5384
5366
  maxTokens: 128000,
5385
5367
  },
5386
- "meta-llama/llama-3-70b-instruct": {
5387
- id: "meta-llama/llama-3-70b-instruct",
5388
- name: "Meta: Llama 3 70B Instruct",
5389
- api: "openai-completions",
5390
- provider: "openrouter",
5391
- baseUrl: "https://openrouter.ai/api/v1",
5392
- reasoning: false,
5393
- input: ["text"],
5394
- cost: {
5395
- input: 0.3,
5396
- output: 0.39999999999999997,
5397
- cacheRead: 0,
5398
- cacheWrite: 0,
5399
- },
5400
- contextWindow: 8192,
5401
- maxTokens: 16384,
5402
- },
5403
5368
  "meta-llama/llama-3-8b-instruct": {
5404
5369
  id: "meta-llama/llama-3-8b-instruct",
5405
5370
  name: "Meta: Llama 3 8B Instruct",
@@ -5664,12 +5629,12 @@ export const MODELS = {
5664
5629
  reasoning: false,
5665
5630
  input: ["text"],
5666
5631
  cost: {
5667
- input: 0.07,
5668
- output: 0.28,
5632
+ input: 0.09999999999999999,
5633
+ output: 0.3,
5669
5634
  cacheRead: 0,
5670
5635
  cacheWrite: 0,
5671
5636
  },
5672
- contextWindow: 128000,
5637
+ contextWindow: 131072,
5673
5638
  maxTokens: 4096,
5674
5639
  },
5675
5640
  "mistralai/ministral-14b-2512": {
@@ -5757,40 +5722,6 @@ export const MODELS = {
5757
5722
  contextWindow: 262144,
5758
5723
  maxTokens: 4096,
5759
5724
  },
5760
- "mistralai/mistral-7b-instruct": {
5761
- id: "mistralai/mistral-7b-instruct",
5762
- name: "Mistral: Mistral 7B Instruct",
5763
- api: "openai-completions",
5764
- provider: "openrouter",
5765
- baseUrl: "https://openrouter.ai/api/v1",
5766
- reasoning: false,
5767
- input: ["text"],
5768
- cost: {
5769
- input: 0.028,
5770
- output: 0.054,
5771
- cacheRead: 0,
5772
- cacheWrite: 0,
5773
- },
5774
- contextWindow: 32768,
5775
- maxTokens: 16384,
5776
- },
5777
- "mistralai/mistral-7b-instruct:free": {
5778
- id: "mistralai/mistral-7b-instruct:free",
5779
- name: "Mistral: Mistral 7B Instruct (free)",
5780
- api: "openai-completions",
5781
- provider: "openrouter",
5782
- baseUrl: "https://openrouter.ai/api/v1",
5783
- reasoning: false,
5784
- input: ["text"],
5785
- cost: {
5786
- input: 0,
5787
- output: 0,
5788
- cacheRead: 0,
5789
- cacheWrite: 0,
5790
- },
5791
- contextWindow: 32768,
5792
- maxTokens: 16384,
5793
- },
5794
5725
  "mistralai/mistral-large": {
5795
5726
  id: "mistralai/mistral-large",
5796
5727
  name: "Mistral Large",
@@ -5908,7 +5839,7 @@ export const MODELS = {
5908
5839
  cacheWrite: 0,
5909
5840
  },
5910
5841
  contextWindow: 131072,
5911
- maxTokens: 16384,
5842
+ maxTokens: 131072,
5912
5843
  },
5913
5844
  "mistralai/mistral-saba": {
5914
5845
  id: "mistralai/mistral-saba",
@@ -6352,23 +6283,6 @@ export const MODELS = {
6352
6283
  contextWindow: 128000,
6353
6284
  maxTokens: 4096,
6354
6285
  },
6355
- "openai/codex-mini": {
6356
- id: "openai/codex-mini",
6357
- name: "OpenAI: Codex Mini",
6358
- api: "openai-completions",
6359
- provider: "openrouter",
6360
- baseUrl: "https://openrouter.ai/api/v1",
6361
- reasoning: true,
6362
- input: ["text", "image"],
6363
- cost: {
6364
- input: 1.5,
6365
- output: 6,
6366
- cacheRead: 0.375,
6367
- cacheWrite: 0,
6368
- },
6369
- contextWindow: 200000,
6370
- maxTokens: 100000,
6371
- },
6372
6286
  "openai/gpt-3.5-turbo": {
6373
6287
  id: "openai/gpt-3.5-turbo",
6374
6288
  name: "OpenAI: GPT-3.5 Turbo",
@@ -7287,108 +7201,6 @@ export const MODELS = {
7287
7201
  contextWindow: 32768,
7288
7202
  maxTokens: 4096,
7289
7203
  },
7290
- "qwen/qwen-max": {
7291
- id: "qwen/qwen-max",
7292
- name: "Qwen: Qwen-Max ",
7293
- api: "openai-completions",
7294
- provider: "openrouter",
7295
- baseUrl: "https://openrouter.ai/api/v1",
7296
- reasoning: false,
7297
- input: ["text"],
7298
- cost: {
7299
- input: 1.5999999999999999,
7300
- output: 6.3999999999999995,
7301
- cacheRead: 0.64,
7302
- cacheWrite: 0,
7303
- },
7304
- contextWindow: 32768,
7305
- maxTokens: 8192,
7306
- },
7307
- "qwen/qwen-plus": {
7308
- id: "qwen/qwen-plus",
7309
- name: "Qwen: Qwen-Plus",
7310
- api: "openai-completions",
7311
- provider: "openrouter",
7312
- baseUrl: "https://openrouter.ai/api/v1",
7313
- reasoning: false,
7314
- input: ["text"],
7315
- cost: {
7316
- input: 0.39999999999999997,
7317
- output: 1.2,
7318
- cacheRead: 0.16,
7319
- cacheWrite: 0,
7320
- },
7321
- contextWindow: 131072,
7322
- maxTokens: 8192,
7323
- },
7324
- "qwen/qwen-plus-2025-07-28": {
7325
- id: "qwen/qwen-plus-2025-07-28",
7326
- name: "Qwen: Qwen Plus 0728",
7327
- api: "openai-completions",
7328
- provider: "openrouter",
7329
- baseUrl: "https://openrouter.ai/api/v1",
7330
- reasoning: false,
7331
- input: ["text"],
7332
- cost: {
7333
- input: 0.39999999999999997,
7334
- output: 1.2,
7335
- cacheRead: 0,
7336
- cacheWrite: 0,
7337
- },
7338
- contextWindow: 1000000,
7339
- maxTokens: 32768,
7340
- },
7341
- "qwen/qwen-plus-2025-07-28:thinking": {
7342
- id: "qwen/qwen-plus-2025-07-28:thinking",
7343
- name: "Qwen: Qwen Plus 0728 (thinking)",
7344
- api: "openai-completions",
7345
- provider: "openrouter",
7346
- baseUrl: "https://openrouter.ai/api/v1",
7347
- reasoning: true,
7348
- input: ["text"],
7349
- cost: {
7350
- input: 0.39999999999999997,
7351
- output: 4,
7352
- cacheRead: 0,
7353
- cacheWrite: 0,
7354
- },
7355
- contextWindow: 1000000,
7356
- maxTokens: 32768,
7357
- },
7358
- "qwen/qwen-turbo": {
7359
- id: "qwen/qwen-turbo",
7360
- name: "Qwen: Qwen-Turbo",
7361
- api: "openai-completions",
7362
- provider: "openrouter",
7363
- baseUrl: "https://openrouter.ai/api/v1",
7364
- reasoning: false,
7365
- input: ["text"],
7366
- cost: {
7367
- input: 0.049999999999999996,
7368
- output: 0.19999999999999998,
7369
- cacheRead: 0.02,
7370
- cacheWrite: 0,
7371
- },
7372
- contextWindow: 1000000,
7373
- maxTokens: 8192,
7374
- },
7375
- "qwen/qwen-vl-max": {
7376
- id: "qwen/qwen-vl-max",
7377
- name: "Qwen: Qwen VL Max",
7378
- api: "openai-completions",
7379
- provider: "openrouter",
7380
- baseUrl: "https://openrouter.ai/api/v1",
7381
- reasoning: false,
7382
- input: ["text", "image"],
7383
- cost: {
7384
- input: 0.7999999999999999,
7385
- output: 3.1999999999999997,
7386
- cacheRead: 0,
7387
- cacheWrite: 0,
7388
- },
7389
- contextWindow: 131072,
7390
- maxTokens: 8192,
7391
- },
7392
7204
  "qwen/qwen3-14b": {
7393
7205
  id: "qwen/qwen3-14b",
7394
7206
  name: "Qwen: Qwen3 14B",
@@ -7415,13 +7227,13 @@ export const MODELS = {
7415
7227
  reasoning: true,
7416
7228
  input: ["text"],
7417
7229
  cost: {
7418
- input: 0.18,
7419
- output: 0.54,
7230
+ input: 0.19999999999999998,
7231
+ output: 0.6,
7420
7232
  cacheRead: 0,
7421
7233
  cacheWrite: 0,
7422
7234
  },
7423
7235
  contextWindow: 40960,
7424
- maxTokens: 40960,
7236
+ maxTokens: 4096,
7425
7237
  },
7426
7238
  "qwen/qwen3-235b-a22b-2507": {
7427
7239
  id: "qwen/qwen3-235b-a22b-2507",
@@ -7593,40 +7405,6 @@ export const MODELS = {
7593
7405
  contextWindow: 160000,
7594
7406
  maxTokens: 32768,
7595
7407
  },
7596
- "qwen/qwen3-coder-flash": {
7597
- id: "qwen/qwen3-coder-flash",
7598
- name: "Qwen: Qwen3 Coder Flash",
7599
- api: "openai-completions",
7600
- provider: "openrouter",
7601
- baseUrl: "https://openrouter.ai/api/v1",
7602
- reasoning: false,
7603
- input: ["text"],
7604
- cost: {
7605
- input: 0.3,
7606
- output: 1.5,
7607
- cacheRead: 0.08,
7608
- cacheWrite: 0,
7609
- },
7610
- contextWindow: 128000,
7611
- maxTokens: 65536,
7612
- },
7613
- "qwen/qwen3-coder-plus": {
7614
- id: "qwen/qwen3-coder-plus",
7615
- name: "Qwen: Qwen3 Coder Plus",
7616
- api: "openai-completions",
7617
- provider: "openrouter",
7618
- baseUrl: "https://openrouter.ai/api/v1",
7619
- reasoning: false,
7620
- input: ["text"],
7621
- cost: {
7622
- input: 1,
7623
- output: 5,
7624
- cacheRead: 0.09999999999999999,
7625
- cacheWrite: 0,
7626
- },
7627
- contextWindow: 128000,
7628
- maxTokens: 65536,
7629
- },
7630
7408
  "qwen/qwen3-coder:exacto": {
7631
7409
  id: "qwen/qwen3-coder:exacto",
7632
7410
  name: "Qwen: Qwen3 Coder 480B A35B (exacto)",
@@ -7661,34 +7439,34 @@ export const MODELS = {
7661
7439
  contextWindow: 262000,
7662
7440
  maxTokens: 262000,
7663
7441
  },
7664
- "qwen/qwen3-max": {
7665
- id: "qwen/qwen3-max",
7666
- name: "Qwen: Qwen3 Max",
7442
+ "qwen/qwen3-next-80b-a3b-instruct": {
7443
+ id: "qwen/qwen3-next-80b-a3b-instruct",
7444
+ name: "Qwen: Qwen3 Next 80B A3B Instruct",
7667
7445
  api: "openai-completions",
7668
7446
  provider: "openrouter",
7669
7447
  baseUrl: "https://openrouter.ai/api/v1",
7670
7448
  reasoning: false,
7671
7449
  input: ["text"],
7672
7450
  cost: {
7673
- input: 1.2,
7674
- output: 6,
7675
- cacheRead: 0.24,
7451
+ input: 0.09,
7452
+ output: 1.1,
7453
+ cacheRead: 0,
7676
7454
  cacheWrite: 0,
7677
7455
  },
7678
- contextWindow: 256000,
7679
- maxTokens: 32768,
7456
+ contextWindow: 262144,
7457
+ maxTokens: 4096,
7680
7458
  },
7681
- "qwen/qwen3-next-80b-a3b-instruct": {
7682
- id: "qwen/qwen3-next-80b-a3b-instruct",
7683
- name: "Qwen: Qwen3 Next 80B A3B Instruct",
7459
+ "qwen/qwen3-next-80b-a3b-instruct:free": {
7460
+ id: "qwen/qwen3-next-80b-a3b-instruct:free",
7461
+ name: "Qwen: Qwen3 Next 80B A3B Instruct (free)",
7684
7462
  api: "openai-completions",
7685
7463
  provider: "openrouter",
7686
7464
  baseUrl: "https://openrouter.ai/api/v1",
7687
7465
  reasoning: false,
7688
7466
  input: ["text"],
7689
7467
  cost: {
7690
- input: 0.09,
7691
- output: 1.1,
7468
+ input: 0,
7469
+ output: 0,
7692
7470
  cacheRead: 0,
7693
7471
  cacheWrite: 0,
7694
7472
  },
@@ -7797,23 +7575,6 @@ export const MODELS = {
7797
7575
  contextWindow: 131072,
7798
7576
  maxTokens: 32768,
7799
7577
  },
7800
- "qwen/qwen3-vl-8b-thinking": {
7801
- id: "qwen/qwen3-vl-8b-thinking",
7802
- name: "Qwen: Qwen3 VL 8B Thinking",
7803
- api: "openai-completions",
7804
- provider: "openrouter",
7805
- baseUrl: "https://openrouter.ai/api/v1",
7806
- reasoning: true,
7807
- input: ["text", "image"],
7808
- cost: {
7809
- input: 0.18,
7810
- output: 2.0999999999999996,
7811
- cacheRead: 0,
7812
- cacheWrite: 0,
7813
- },
7814
- contextWindow: 256000,
7815
- maxTokens: 32768,
7816
- },
7817
7578
  "qwen/qwq-32b": {
7818
7579
  id: "qwen/qwq-32b",
7819
7580
  name: "Qwen: QwQ 32B",