@earendil-works/pi-ai 0.80.5 → 0.80.7
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 +7 -4
- package/dist/api/anthropic-messages.d.ts.map +1 -1
- package/dist/api/anthropic-messages.js +102 -50
- package/dist/api/anthropic-messages.js.map +1 -1
- package/dist/api/azure-openai-responses.d.ts +1 -1
- package/dist/api/azure-openai-responses.d.ts.map +1 -1
- package/dist/api/azure-openai-responses.js.map +1 -1
- package/dist/api/bedrock-converse-stream.d.ts.map +1 -1
- package/dist/api/bedrock-converse-stream.js +19 -11
- package/dist/api/bedrock-converse-stream.js.map +1 -1
- package/dist/api/google-generative-ai.d.ts.map +1 -1
- package/dist/api/google-generative-ai.js.map +1 -1
- package/dist/api/google-vertex.d.ts.map +1 -1
- package/dist/api/google-vertex.js.map +1 -1
- package/dist/api/openai-codex-responses.d.ts +2 -1
- package/dist/api/openai-codex-responses.d.ts.map +1 -1
- package/dist/api/openai-codex-responses.js +6 -3
- package/dist/api/openai-codex-responses.js.map +1 -1
- package/dist/api/openai-completions.d.ts +1 -1
- package/dist/api/openai-completions.d.ts.map +1 -1
- package/dist/api/openai-completions.js +12 -3
- package/dist/api/openai-completions.js.map +1 -1
- package/dist/api/openai-responses-shared.d.ts +3 -1
- package/dist/api/openai-responses-shared.d.ts.map +1 -1
- package/dist/api/openai-responses-shared.js +57 -4
- package/dist/api/openai-responses-shared.js.map +1 -1
- package/dist/api/openai-responses.d.ts +2 -1
- package/dist/api/openai-responses.d.ts.map +1 -1
- package/dist/api/openai-responses.js +24 -8
- package/dist/api/openai-responses.js.map +1 -1
- package/dist/api/pi-messages.d.ts +97 -0
- package/dist/api/pi-messages.d.ts.map +1 -0
- package/dist/api/pi-messages.js +309 -0
- package/dist/api/pi-messages.js.map +1 -0
- package/dist/api/pi-messages.lazy.d.ts +3 -0
- package/dist/api/pi-messages.lazy.d.ts.map +1 -0
- package/dist/api/pi-messages.lazy.js +3 -0
- package/dist/api/pi-messages.lazy.js.map +1 -0
- package/dist/api/simple-options.d.ts +1 -1
- package/dist/api/simple-options.d.ts.map +1 -1
- package/dist/api/simple-options.js +1 -1
- package/dist/api/simple-options.js.map +1 -1
- package/dist/compat.d.ts +2 -0
- package/dist/compat.d.ts.map +1 -1
- package/dist/compat.js +5 -1
- package/dist/compat.js.map +1 -1
- package/dist/env-api-keys.d.ts.map +1 -1
- package/dist/env-api-keys.js +1 -0
- package/dist/env-api-keys.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts.map +1 -1
- package/dist/models.generated.d.ts +706 -215
- package/dist/models.generated.d.ts.map +1 -1
- package/dist/models.js +15 -6
- package/dist/models.js.map +1 -1
- package/dist/providers/all.d.ts +9 -5
- package/dist/providers/all.d.ts.map +1 -1
- package/dist/providers/all.js.map +1 -1
- package/dist/providers/amazon-bedrock.d.ts.map +1 -1
- package/dist/providers/amazon-bedrock.js +5 -1
- package/dist/providers/amazon-bedrock.js.map +1 -1
- package/dist/providers/amazon-bedrock.models.d.ts +122 -5
- package/dist/providers/amazon-bedrock.models.d.ts.map +1 -1
- package/dist/providers/amazon-bedrock.models.js +86 -20
- package/dist/providers/amazon-bedrock.models.js.map +1 -1
- package/dist/providers/anthropic.models.d.ts +11 -1
- package/dist/providers/anthropic.models.d.ts.map +1 -1
- package/dist/providers/anthropic.models.js +6 -4
- package/dist/providers/anthropic.models.js.map +1 -1
- package/dist/providers/azure-openai-responses.models.d.ts +7 -8
- package/dist/providers/azure-openai-responses.models.d.ts.map +1 -1
- package/dist/providers/azure-openai-responses.models.js +20 -21
- package/dist/providers/azure-openai-responses.models.js.map +1 -1
- package/dist/providers/cerebras.models.d.ts.map +1 -1
- package/dist/providers/cerebras.models.js +1 -1
- package/dist/providers/cerebras.models.js.map +1 -1
- package/dist/providers/cloudflare-ai-gateway.models.d.ts +103 -1
- package/dist/providers/cloudflare-ai-gateway.models.d.ts.map +1 -1
- package/dist/providers/cloudflare-ai-gateway.models.js +78 -4
- package/dist/providers/cloudflare-ai-gateway.models.js.map +1 -1
- package/dist/providers/cloudflare-auth.d.ts.map +1 -1
- package/dist/providers/cloudflare-auth.js +9 -6
- package/dist/providers/cloudflare-auth.js.map +1 -1
- package/dist/providers/deepseek.models.d.ts +2 -2
- package/dist/providers/deepseek.models.d.ts.map +1 -1
- package/dist/providers/deepseek.models.js +2 -2
- package/dist/providers/deepseek.models.js.map +1 -1
- package/dist/providers/fireworks.models.d.ts +2 -2
- package/dist/providers/fireworks.models.d.ts.map +1 -1
- package/dist/providers/fireworks.models.js +2 -2
- package/dist/providers/fireworks.models.js.map +1 -1
- package/dist/providers/github-copilot.models.d.ts +101 -8
- package/dist/providers/github-copilot.models.d.ts.map +1 -1
- package/dist/providers/github-copilot.models.js +65 -7
- package/dist/providers/github-copilot.models.js.map +1 -1
- package/dist/providers/openai-codex.models.d.ts +56 -0
- package/dist/providers/openai-codex.models.d.ts.map +1 -1
- package/dist/providers/openai-codex.models.js +20 -9
- package/dist/providers/openai-codex.models.js.map +1 -1
- package/dist/providers/openai.models.d.ts +77 -8
- package/dist/providers/openai.models.d.ts.map +1 -1
- package/dist/providers/openai.models.js +37 -24
- package/dist/providers/openai.models.js.map +1 -1
- package/dist/providers/opencode-go.models.d.ts +3 -3
- package/dist/providers/opencode-go.models.d.ts.map +1 -1
- package/dist/providers/opencode-go.models.js +3 -3
- package/dist/providers/opencode-go.models.js.map +1 -1
- package/dist/providers/opencode.models.d.ts +137 -4
- package/dist/providers/opencode.models.d.ts.map +1 -1
- package/dist/providers/opencode.models.js +83 -8
- package/dist/providers/opencode.models.js.map +1 -1
- package/dist/providers/openrouter.models.d.ts +48 -44
- package/dist/providers/openrouter.models.d.ts.map +1 -1
- package/dist/providers/openrouter.models.js +112 -127
- package/dist/providers/openrouter.models.js.map +1 -1
- package/dist/providers/vercel-ai-gateway.models.d.ts +19 -111
- package/dist/providers/vercel-ai-gateway.models.d.ts.map +1 -1
- package/dist/providers/vercel-ai-gateway.models.js +42 -142
- package/dist/providers/vercel-ai-gateway.models.js.map +1 -1
- package/dist/providers/zai-coding-cn.models.d.ts +1 -1
- package/dist/providers/zai-coding-cn.models.d.ts.map +1 -1
- package/dist/providers/zai-coding-cn.models.js +1 -1
- package/dist/providers/zai-coding-cn.models.js.map +1 -1
- package/dist/providers/zai.models.d.ts +1 -1
- package/dist/providers/zai.models.d.ts.map +1 -1
- package/dist/providers/zai.models.js +1 -1
- package/dist/providers/zai.models.js.map +1 -1
- package/dist/types.d.ts +41 -13
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/deferred-tools.d.ts +9 -0
- package/dist/utils/deferred-tools.d.ts.map +1 -0
- package/dist/utils/deferred-tools.js +36 -0
- package/dist/utils/deferred-tools.js.map +1 -0
- package/dist/utils/estimate.d.ts +3 -3
- package/dist/utils/estimate.d.ts.map +1 -1
- package/dist/utils/estimate.js +35 -14
- package/dist/utils/estimate.js.map +1 -1
- package/dist/utils/oauth/index.d.ts +1 -0
- package/dist/utils/oauth/index.d.ts.map +1 -1
- package/dist/utils/oauth/index.js +9 -0
- package/dist/utils/oauth/index.js.map +1 -1
- package/dist/utils/oauth/radius.d.ts +39 -0
- package/dist/utils/oauth/radius.d.ts.map +1 -0
- package/dist/utils/oauth/radius.js +415 -0
- package/dist/utils/oauth/radius.js.map +1 -0
- package/package.json +1 -1
|
@@ -492,23 +492,6 @@ export declare const VERCEL_AI_GATEWAY_MODELS: {
|
|
|
492
492
|
contextWindow: number;
|
|
493
493
|
maxTokens: number;
|
|
494
494
|
};
|
|
495
|
-
readonly "anthropic/claude-3.5-haiku": {
|
|
496
|
-
id: string;
|
|
497
|
-
name: string;
|
|
498
|
-
api: "anthropic-messages";
|
|
499
|
-
provider: string;
|
|
500
|
-
baseUrl: string;
|
|
501
|
-
reasoning: false;
|
|
502
|
-
input: ("image" | "text")[];
|
|
503
|
-
cost: {
|
|
504
|
-
input: number;
|
|
505
|
-
output: number;
|
|
506
|
-
cacheRead: number;
|
|
507
|
-
cacheWrite: number;
|
|
508
|
-
};
|
|
509
|
-
contextWindow: number;
|
|
510
|
-
maxTokens: number;
|
|
511
|
-
};
|
|
512
495
|
readonly "anthropic/claude-fable-5": {
|
|
513
496
|
id: string;
|
|
514
497
|
name: string;
|
|
@@ -522,6 +505,7 @@ export declare const VERCEL_AI_GATEWAY_MODELS: {
|
|
|
522
505
|
thinkingLevelMap: {
|
|
523
506
|
off: null;
|
|
524
507
|
xhigh: string;
|
|
508
|
+
max: string;
|
|
525
509
|
};
|
|
526
510
|
input: ("image" | "text")[];
|
|
527
511
|
cost: {
|
|
@@ -612,7 +596,7 @@ export declare const VERCEL_AI_GATEWAY_MODELS: {
|
|
|
612
596
|
};
|
|
613
597
|
reasoning: true;
|
|
614
598
|
thinkingLevelMap: {
|
|
615
|
-
|
|
599
|
+
max: string;
|
|
616
600
|
};
|
|
617
601
|
input: ("image" | "text")[];
|
|
618
602
|
cost: {
|
|
@@ -637,6 +621,7 @@ export declare const VERCEL_AI_GATEWAY_MODELS: {
|
|
|
637
621
|
reasoning: true;
|
|
638
622
|
thinkingLevelMap: {
|
|
639
623
|
xhigh: string;
|
|
624
|
+
max: string;
|
|
640
625
|
};
|
|
641
626
|
input: ("image" | "text")[];
|
|
642
627
|
cost: {
|
|
@@ -661,6 +646,7 @@ export declare const VERCEL_AI_GATEWAY_MODELS: {
|
|
|
661
646
|
reasoning: true;
|
|
662
647
|
thinkingLevelMap: {
|
|
663
648
|
xhigh: string;
|
|
649
|
+
max: string;
|
|
664
650
|
};
|
|
665
651
|
input: ("image" | "text")[];
|
|
666
652
|
cost: {
|
|
@@ -716,6 +702,9 @@ export declare const VERCEL_AI_GATEWAY_MODELS: {
|
|
|
716
702
|
forceAdaptiveThinking: true;
|
|
717
703
|
};
|
|
718
704
|
reasoning: true;
|
|
705
|
+
thinkingLevelMap: {
|
|
706
|
+
max: string;
|
|
707
|
+
};
|
|
719
708
|
input: ("image" | "text")[];
|
|
720
709
|
cost: {
|
|
721
710
|
input: number;
|
|
@@ -736,24 +725,11 @@ export declare const VERCEL_AI_GATEWAY_MODELS: {
|
|
|
736
725
|
forceAdaptiveThinking: true;
|
|
737
726
|
};
|
|
738
727
|
reasoning: true;
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
output: number;
|
|
743
|
-
cacheRead: number;
|
|
744
|
-
cacheWrite: number;
|
|
728
|
+
thinkingLevelMap: {
|
|
729
|
+
xhigh: string;
|
|
730
|
+
max: string;
|
|
745
731
|
};
|
|
746
|
-
|
|
747
|
-
maxTokens: number;
|
|
748
|
-
};
|
|
749
|
-
readonly "arcee-ai/trinity-large-preview": {
|
|
750
|
-
id: string;
|
|
751
|
-
name: string;
|
|
752
|
-
api: "anthropic-messages";
|
|
753
|
-
provider: string;
|
|
754
|
-
baseUrl: string;
|
|
755
|
-
reasoning: false;
|
|
756
|
-
input: "text"[];
|
|
732
|
+
input: ("image" | "text")[];
|
|
757
733
|
cost: {
|
|
758
734
|
input: number;
|
|
759
735
|
output: number;
|
|
@@ -1222,13 +1198,13 @@ export declare const VERCEL_AI_GATEWAY_MODELS: {
|
|
|
1222
1198
|
contextWindow: number;
|
|
1223
1199
|
maxTokens: number;
|
|
1224
1200
|
};
|
|
1225
|
-
readonly "kwaipilot/kat-coder-
|
|
1201
|
+
readonly "kwaipilot/kat-coder-air-v2.5": {
|
|
1226
1202
|
id: string;
|
|
1227
1203
|
name: string;
|
|
1228
1204
|
api: "anthropic-messages";
|
|
1229
1205
|
provider: string;
|
|
1230
1206
|
baseUrl: string;
|
|
1231
|
-
reasoning:
|
|
1207
|
+
reasoning: true;
|
|
1232
1208
|
input: "text"[];
|
|
1233
1209
|
cost: {
|
|
1234
1210
|
input: number;
|
|
@@ -1239,13 +1215,13 @@ export declare const VERCEL_AI_GATEWAY_MODELS: {
|
|
|
1239
1215
|
contextWindow: number;
|
|
1240
1216
|
maxTokens: number;
|
|
1241
1217
|
};
|
|
1242
|
-
readonly "kwaipilot/kat-coder-pro-
|
|
1218
|
+
readonly "kwaipilot/kat-coder-pro-v1": {
|
|
1243
1219
|
id: string;
|
|
1244
1220
|
name: string;
|
|
1245
1221
|
api: "anthropic-messages";
|
|
1246
1222
|
provider: string;
|
|
1247
1223
|
baseUrl: string;
|
|
1248
|
-
reasoning:
|
|
1224
|
+
reasoning: false;
|
|
1249
1225
|
input: "text"[];
|
|
1250
1226
|
cost: {
|
|
1251
1227
|
input: number;
|
|
@@ -1256,13 +1232,13 @@ export declare const VERCEL_AI_GATEWAY_MODELS: {
|
|
|
1256
1232
|
contextWindow: number;
|
|
1257
1233
|
maxTokens: number;
|
|
1258
1234
|
};
|
|
1259
|
-
readonly "
|
|
1235
|
+
readonly "kwaipilot/kat-coder-pro-v2": {
|
|
1260
1236
|
id: string;
|
|
1261
1237
|
name: string;
|
|
1262
1238
|
api: "anthropic-messages";
|
|
1263
1239
|
provider: string;
|
|
1264
1240
|
baseUrl: string;
|
|
1265
|
-
reasoning:
|
|
1241
|
+
reasoning: true;
|
|
1266
1242
|
input: "text"[];
|
|
1267
1243
|
cost: {
|
|
1268
1244
|
input: number;
|
|
@@ -1273,7 +1249,7 @@ export declare const VERCEL_AI_GATEWAY_MODELS: {
|
|
|
1273
1249
|
contextWindow: number;
|
|
1274
1250
|
maxTokens: number;
|
|
1275
1251
|
};
|
|
1276
|
-
readonly "
|
|
1252
|
+
readonly "kwaipilot/kat-coder-pro-v2.5": {
|
|
1277
1253
|
id: string;
|
|
1278
1254
|
name: string;
|
|
1279
1255
|
api: "anthropic-messages";
|
|
@@ -1416,7 +1392,7 @@ export declare const VERCEL_AI_GATEWAY_MODELS: {
|
|
|
1416
1392
|
provider: string;
|
|
1417
1393
|
baseUrl: string;
|
|
1418
1394
|
reasoning: true;
|
|
1419
|
-
input: "text"[];
|
|
1395
|
+
input: ("image" | "text")[];
|
|
1420
1396
|
cost: {
|
|
1421
1397
|
input: number;
|
|
1422
1398
|
output: number;
|
|
@@ -1596,23 +1572,6 @@ export declare const VERCEL_AI_GATEWAY_MODELS: {
|
|
|
1596
1572
|
contextWindow: number;
|
|
1597
1573
|
maxTokens: number;
|
|
1598
1574
|
};
|
|
1599
|
-
readonly "mistral/devstral-small": {
|
|
1600
|
-
id: string;
|
|
1601
|
-
name: string;
|
|
1602
|
-
api: "anthropic-messages";
|
|
1603
|
-
provider: string;
|
|
1604
|
-
baseUrl: string;
|
|
1605
|
-
reasoning: false;
|
|
1606
|
-
input: "text"[];
|
|
1607
|
-
cost: {
|
|
1608
|
-
input: number;
|
|
1609
|
-
output: number;
|
|
1610
|
-
cacheRead: number;
|
|
1611
|
-
cacheWrite: number;
|
|
1612
|
-
};
|
|
1613
|
-
contextWindow: number;
|
|
1614
|
-
maxTokens: number;
|
|
1615
|
-
};
|
|
1616
1575
|
readonly "mistral/devstral-small-2": {
|
|
1617
1576
|
id: string;
|
|
1618
1577
|
name: string;
|
|
@@ -1817,23 +1776,6 @@ export declare const VERCEL_AI_GATEWAY_MODELS: {
|
|
|
1817
1776
|
contextWindow: number;
|
|
1818
1777
|
maxTokens: number;
|
|
1819
1778
|
};
|
|
1820
|
-
readonly "mistral/pixtral-large": {
|
|
1821
|
-
id: string;
|
|
1822
|
-
name: string;
|
|
1823
|
-
api: "anthropic-messages";
|
|
1824
|
-
provider: string;
|
|
1825
|
-
baseUrl: string;
|
|
1826
|
-
reasoning: false;
|
|
1827
|
-
input: ("image" | "text")[];
|
|
1828
|
-
cost: {
|
|
1829
|
-
input: number;
|
|
1830
|
-
output: number;
|
|
1831
|
-
cacheRead: number;
|
|
1832
|
-
cacheWrite: number;
|
|
1833
|
-
};
|
|
1834
|
-
contextWindow: number;
|
|
1835
|
-
maxTokens: number;
|
|
1836
|
-
};
|
|
1837
1779
|
readonly "moonshotai/kimi-k2": {
|
|
1838
1780
|
id: string;
|
|
1839
1781
|
name: string;
|
|
@@ -3021,40 +2963,6 @@ export declare const VERCEL_AI_GATEWAY_MODELS: {
|
|
|
3021
2963
|
contextWindow: number;
|
|
3022
2964
|
maxTokens: number;
|
|
3023
2965
|
};
|
|
3024
|
-
readonly "xiaomi/mimo-v2-flash": {
|
|
3025
|
-
id: string;
|
|
3026
|
-
name: string;
|
|
3027
|
-
api: "anthropic-messages";
|
|
3028
|
-
provider: string;
|
|
3029
|
-
baseUrl: string;
|
|
3030
|
-
reasoning: true;
|
|
3031
|
-
input: "text"[];
|
|
3032
|
-
cost: {
|
|
3033
|
-
input: number;
|
|
3034
|
-
output: number;
|
|
3035
|
-
cacheRead: number;
|
|
3036
|
-
cacheWrite: number;
|
|
3037
|
-
};
|
|
3038
|
-
contextWindow: number;
|
|
3039
|
-
maxTokens: number;
|
|
3040
|
-
};
|
|
3041
|
-
readonly "xiaomi/mimo-v2-pro": {
|
|
3042
|
-
id: string;
|
|
3043
|
-
name: string;
|
|
3044
|
-
api: "anthropic-messages";
|
|
3045
|
-
provider: string;
|
|
3046
|
-
baseUrl: string;
|
|
3047
|
-
reasoning: true;
|
|
3048
|
-
input: "text"[];
|
|
3049
|
-
cost: {
|
|
3050
|
-
input: number;
|
|
3051
|
-
output: number;
|
|
3052
|
-
cacheRead: number;
|
|
3053
|
-
cacheWrite: number;
|
|
3054
|
-
};
|
|
3055
|
-
contextWindow: number;
|
|
3056
|
-
maxTokens: number;
|
|
3057
|
-
};
|
|
3058
2966
|
readonly "xiaomi/mimo-v2.5": {
|
|
3059
2967
|
id: string;
|
|
3060
2968
|
name: string;
|