@omnicross/contracts 0.1.5 → 0.1.6
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/account-tokens-types.d.cts +71 -54
- package/dist/account-tokens-types.d.ts +71 -54
- package/dist/canonical-models.cjs +11 -0
- package/dist/canonical-models.js +11 -0
- package/dist/index.cjs +104 -113
- package/dist/index.d.cts +57 -2
- package/dist/index.d.ts +57 -2
- package/dist/index.js +103 -113
- package/dist/pricing-types.cjs +5 -2
- package/dist/pricing-types.d.cts +16 -1
- package/dist/pricing-types.d.ts +16 -1
- package/dist/pricing-types.js +3 -1
- package/dist/provider-presets/index.cjs +90 -113
- package/dist/provider-presets/index.js +90 -113
- package/dist/subscription-types.d.cts +8 -13
- package/dist/subscription-types.d.ts +8 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15,6 +15,9 @@ var DEFAULT_BILLING_CONFIG = {
|
|
|
15
15
|
|
|
16
16
|
// src/canonical-models.ts
|
|
17
17
|
var OPENAI_MODELS = {
|
|
18
|
+
"gpt-5.6-sol": { category: "reasoning", contextLength: 105e4, maxTokens: 128e3, reasoning: true, vision: true, functionCall: true, thinkingLevels: ["none", "low", "medium", "high", "xhigh"], thinkingTokenLimit: { min: 0, max: 128e3 } },
|
|
19
|
+
"gpt-5.6-terra": { category: "reasoning", contextLength: 105e4, maxTokens: 128e3, reasoning: true, vision: true, functionCall: true, thinkingLevels: ["none", "low", "medium", "high", "xhigh"], thinkingTokenLimit: { min: 0, max: 128e3 } },
|
|
20
|
+
"gpt-5.6-luna": { category: "reasoning", contextLength: 105e4, maxTokens: 128e3, reasoning: true, vision: true, functionCall: true, thinkingLevels: ["none", "low", "medium", "high", "xhigh"], thinkingTokenLimit: { min: 0, max: 128e3 } },
|
|
18
21
|
"gpt-5.5": { category: "reasoning", contextLength: 105e4, maxTokens: 128e3, reasoning: true, vision: true, functionCall: true, thinkingLevels: ["none", "low", "medium", "high", "xhigh"], thinkingTokenLimit: { min: 0, max: 128e3 } },
|
|
19
22
|
"gpt-5.4": { category: "reasoning", contextLength: 105e4, maxTokens: 128e3, reasoning: true, vision: true, functionCall: true, thinkingLevels: ["none", "low", "medium", "high", "xhigh"], thinkingTokenLimit: { min: 0, max: 128e3 } },
|
|
20
23
|
"gpt-5.4-mini": { category: "reasoning", contextLength: 4e5, maxTokens: 128e3, reasoning: true, vision: true, functionCall: true, thinkingLevels: ["none", "low", "medium", "high", "xhigh"], thinkingTokenLimit: { min: 0, max: 128e3 } },
|
|
@@ -28,6 +31,10 @@ var OPENAI_MODELS = {
|
|
|
28
31
|
"o4-mini": { category: "reasoning", contextLength: 2e5, maxTokens: 1e5, reasoning: true, thinkingLevels: ["low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } }
|
|
29
32
|
};
|
|
30
33
|
var ANTHROPIC_MODELS = {
|
|
34
|
+
"claude-fable-5": { category: "reasoning", contextLength: 2e5, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true },
|
|
35
|
+
"claude-opus-5": { category: "reasoning", contextLength: 2e5, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true },
|
|
36
|
+
"claude-opus-4-8": { category: "reasoning", contextLength: 2e5, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true },
|
|
37
|
+
"claude-sonnet-5": { category: "chat", contextLength: 2e5, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true },
|
|
31
38
|
"claude-opus-4-7": { category: "reasoning", contextLength: 2e5, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true },
|
|
32
39
|
"claude-opus-4-7[1m]": { category: "reasoning", contextLength: 1e6, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true },
|
|
33
40
|
"claude-opus-4-6": { category: "reasoning", contextLength: 2e5, maxTokens: 128e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high", "xhigh", "max"], thinkingTokenLimit: { min: 1024, max: 128e3 } },
|
|
@@ -37,10 +44,12 @@ var ANTHROPIC_MODELS = {
|
|
|
37
44
|
"claude-haiku-4-5": { category: "chat", contextLength: 2e5, maxTokens: 64e3, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high", "xhigh", "max"], thinkingTokenLimit: { min: 1024, max: 64e3 } }
|
|
38
45
|
};
|
|
39
46
|
var GEMINI_MODELS = {
|
|
47
|
+
"gemini-3.5-flash": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 24576 } },
|
|
40
48
|
"gemini-3-flash": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 24576 } },
|
|
41
49
|
"gemini-3.1-pro": { category: "chat", contextLength: 1e6, maxTokens: 65536, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["low", "medium", "high"], thinkingTokenLimit: { min: 128, max: 32768 } }
|
|
42
50
|
};
|
|
43
51
|
var GROK_MODELS = {
|
|
52
|
+
"grok-4.5": { category: "chat", contextLength: 5e5, maxTokens: 32768, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
|
|
44
53
|
"grok-4.3": { category: "chat", contextLength: 1e6, maxTokens: 32768, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
|
|
45
54
|
"grok-4.20": { category: "chat", contextLength: 131072, maxTokens: 32768, vision: true, functionCall: true },
|
|
46
55
|
"grok-4.20-reasoning": { category: "reasoning", contextLength: 131072, maxTokens: 32768, reasoning: true, vision: true, functionCall: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
|
|
@@ -54,6 +63,7 @@ var DEEPSEEK_MODELS = {
|
|
|
54
63
|
"deepseek-r1": { category: "reasoning", contextLength: 64e3, maxTokens: 8192, reasoning: true, thinkingTokenLimit: { min: 0, max: 32768 } }
|
|
55
64
|
};
|
|
56
65
|
var ZHIPU_MODELS = {
|
|
66
|
+
"glm-5.2": { category: "chat", contextLength: 1048576, maxTokens: 131072, functionCall: true },
|
|
57
67
|
"glm-5": { category: "chat", contextLength: 2e5, maxTokens: 128e3, functionCall: true },
|
|
58
68
|
"glm-5.1": { category: "chat", contextLength: 2e5, maxTokens: 128e3, functionCall: true },
|
|
59
69
|
"glm-4.5-air": { category: "chat", contextLength: 128e3, maxTokens: 32768, functionCall: true },
|
|
@@ -61,6 +71,7 @@ var ZHIPU_MODELS = {
|
|
|
61
71
|
"glm-4.7": { category: "code", contextLength: 2e5, maxTokens: 128e3, functionCall: true }
|
|
62
72
|
};
|
|
63
73
|
var KIMI_MODELS = {
|
|
74
|
+
"kimi-k3": { category: "code", contextLength: 1048576, maxTokens: 1048576, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
|
|
64
75
|
"kimi-k2.6": { category: "code", contextLength: 256e3, maxTokens: 32768, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
|
|
65
76
|
"kimi-k2.5": { category: "chat", contextLength: 256e3, maxTokens: 65535, vision: true, functionCall: true, reasoning: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } },
|
|
66
77
|
"kimi-k2-thinking": { category: "reasoning", contextLength: 256e3, reasoning: true, functionCall: true, thinkingLevels: ["none", "low", "medium", "high"], thinkingTokenLimit: { min: 0, max: 32768 } }
|
|
@@ -288,6 +299,7 @@ var DEFAULT_MCP_SESSION_CONFIG = {
|
|
|
288
299
|
|
|
289
300
|
// src/pricing-types.ts
|
|
290
301
|
var DEFAULT_LITELLM_PRICING_URL = "https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json";
|
|
302
|
+
var DEFAULT_OPENROUTER_PRICING_URL = "https://openrouter.ai/api/v1/models";
|
|
291
303
|
|
|
292
304
|
// src/provider-presets/catalog.json
|
|
293
305
|
var catalog_default = {
|
|
@@ -521,8 +533,12 @@ var anthropic_default = {
|
|
|
521
533
|
api_base_url: "https://api.anthropic.com/v1/messages",
|
|
522
534
|
modelsEndpoint: "https://api.anthropic.com/v1/models",
|
|
523
535
|
models: [
|
|
536
|
+
"claude-fable-5",
|
|
537
|
+
"claude-opus-5",
|
|
538
|
+
"claude-opus-4-8",
|
|
524
539
|
"claude-opus-4-7",
|
|
525
540
|
"claude-opus-4-7[1m]",
|
|
541
|
+
"claude-sonnet-5",
|
|
526
542
|
"claude-sonnet-4-6",
|
|
527
543
|
"claude-sonnet-4-6[1m]",
|
|
528
544
|
"claude-opus-4-6",
|
|
@@ -530,6 +546,21 @@ var anthropic_default = {
|
|
|
530
546
|
"claude-haiku-4-5"
|
|
531
547
|
],
|
|
532
548
|
modelConfigs: [
|
|
549
|
+
{
|
|
550
|
+
id: "claude-fable-5",
|
|
551
|
+
name: "Claude Fable 5",
|
|
552
|
+
enabled: true
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
id: "claude-opus-5",
|
|
556
|
+
name: "Claude Opus 5",
|
|
557
|
+
enabled: true
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
id: "claude-opus-4-8",
|
|
561
|
+
name: "Claude Opus 4.8",
|
|
562
|
+
enabled: true
|
|
563
|
+
},
|
|
533
564
|
{
|
|
534
565
|
id: "claude-opus-4-7",
|
|
535
566
|
name: "Claude Opus 4.7",
|
|
@@ -540,6 +571,11 @@ var anthropic_default = {
|
|
|
540
571
|
name: "Claude Opus 4.7 (1M)",
|
|
541
572
|
enabled: false
|
|
542
573
|
},
|
|
574
|
+
{
|
|
575
|
+
id: "claude-sonnet-5",
|
|
576
|
+
name: "Claude Sonnet 5",
|
|
577
|
+
enabled: true
|
|
578
|
+
},
|
|
543
579
|
{
|
|
544
580
|
id: "claude-sonnet-4-6",
|
|
545
581
|
name: "Claude Sonnet 4.6",
|
|
@@ -566,11 +602,6 @@ var anthropic_default = {
|
|
|
566
602
|
enabled: true
|
|
567
603
|
}
|
|
568
604
|
],
|
|
569
|
-
transformer: {
|
|
570
|
-
use: [
|
|
571
|
-
"anthropic"
|
|
572
|
-
]
|
|
573
|
-
},
|
|
574
605
|
description: "Claude\u6A21\u578B\u5B98\u65B9API (Anthropic Messages\u683C\u5F0F)",
|
|
575
606
|
icon: "anthropic",
|
|
576
607
|
website: "https://anthropic.com",
|
|
@@ -827,9 +858,7 @@ var deepseek_default = {
|
|
|
827
858
|
api_base_url: "https://api.deepseek.com/v1/chat/completions",
|
|
828
859
|
models: [
|
|
829
860
|
"deepseek-v4-flash",
|
|
830
|
-
"deepseek-v4-pro"
|
|
831
|
-
"deepseek-chat",
|
|
832
|
-
"deepseek-reasoner"
|
|
861
|
+
"deepseek-v4-pro"
|
|
833
862
|
],
|
|
834
863
|
modelConfigs: [
|
|
835
864
|
{
|
|
@@ -841,23 +870,8 @@ var deepseek_default = {
|
|
|
841
870
|
id: "deepseek-v4-pro",
|
|
842
871
|
name: "DeepSeek V4 Pro",
|
|
843
872
|
enabled: true
|
|
844
|
-
},
|
|
845
|
-
{
|
|
846
|
-
id: "deepseek-chat",
|
|
847
|
-
name: "DeepSeek Chat (Legacy)",
|
|
848
|
-
enabled: false
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
id: "deepseek-reasoner",
|
|
852
|
-
name: "DeepSeek Reasoner (Legacy)",
|
|
853
|
-
enabled: false
|
|
854
873
|
}
|
|
855
874
|
],
|
|
856
|
-
transformer: {
|
|
857
|
-
use: [
|
|
858
|
-
"deepseek"
|
|
859
|
-
]
|
|
860
|
-
},
|
|
861
875
|
description: "DeepSeek\u5B98\u65B9API",
|
|
862
876
|
icon: "deepseek",
|
|
863
877
|
website: "https://deepseek.com",
|
|
@@ -882,10 +896,16 @@ var gemini_default = {
|
|
|
882
896
|
api_base_url: "https://generativelanguage.googleapis.com/v1beta/models/",
|
|
883
897
|
modelsEndpoint: "https://generativelanguage.googleapis.com/v1beta/models",
|
|
884
898
|
models: [
|
|
899
|
+
"gemini-3.5-flash",
|
|
885
900
|
"gemini-3-flash",
|
|
886
901
|
"gemini-3.1-pro"
|
|
887
902
|
],
|
|
888
903
|
modelConfigs: [
|
|
904
|
+
{
|
|
905
|
+
id: "gemini-3.5-flash",
|
|
906
|
+
name: "Gemini 3.5 Flash",
|
|
907
|
+
enabled: true
|
|
908
|
+
},
|
|
889
909
|
{
|
|
890
910
|
id: "gemini-3-flash",
|
|
891
911
|
name: "Gemini 3 Flash",
|
|
@@ -936,10 +956,16 @@ var gemini_vertex_default = {
|
|
|
936
956
|
apiType: "google",
|
|
937
957
|
api_base_url: "https://us-central1-aiplatform.googleapis.com/v1/projects/YOUR_PROJECT_ID/locations/us-central1/publishers/google",
|
|
938
958
|
models: [
|
|
959
|
+
"gemini-3.5-flash",
|
|
939
960
|
"gemini-3-flash",
|
|
940
961
|
"gemini-3.1-pro"
|
|
941
962
|
],
|
|
942
963
|
modelConfigs: [
|
|
964
|
+
{
|
|
965
|
+
id: "gemini-3.5-flash",
|
|
966
|
+
name: "Gemini 3.5 Flash",
|
|
967
|
+
enabled: true
|
|
968
|
+
},
|
|
943
969
|
{
|
|
944
970
|
id: "gemini-3-flash",
|
|
945
971
|
name: "Gemini 3 Flash",
|
|
@@ -990,30 +1016,18 @@ var grok_default = {
|
|
|
990
1016
|
apiType: "openai",
|
|
991
1017
|
api_base_url: "https://api.x.ai/v1/chat/completions",
|
|
992
1018
|
models: [
|
|
993
|
-
"grok-4.
|
|
994
|
-
"grok-4.
|
|
995
|
-
"grok-4.20-reasoning",
|
|
996
|
-
"grok-4.20-multi-agent"
|
|
1019
|
+
"grok-4.5",
|
|
1020
|
+
"grok-4.3"
|
|
997
1021
|
],
|
|
998
1022
|
modelConfigs: [
|
|
999
1023
|
{
|
|
1000
|
-
id: "grok-4.
|
|
1001
|
-
name: "Grok 4.
|
|
1002
|
-
enabled: true
|
|
1003
|
-
},
|
|
1004
|
-
{
|
|
1005
|
-
id: "grok-4.20",
|
|
1006
|
-
name: "Grok 4.20",
|
|
1024
|
+
id: "grok-4.5",
|
|
1025
|
+
name: "Grok 4.5",
|
|
1007
1026
|
enabled: true
|
|
1008
1027
|
},
|
|
1009
1028
|
{
|
|
1010
|
-
id: "grok-4.
|
|
1011
|
-
name: "Grok 4.
|
|
1012
|
-
enabled: true
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
id: "grok-4.20-multi-agent",
|
|
1016
|
-
name: "Grok 4.20 Multi-Agent",
|
|
1029
|
+
id: "grok-4.3",
|
|
1030
|
+
name: "Grok 4.3",
|
|
1017
1031
|
enabled: true
|
|
1018
1032
|
}
|
|
1019
1033
|
],
|
|
@@ -1099,11 +1113,16 @@ var kimi_default = {
|
|
|
1099
1113
|
api_base_url: "https://api.moonshot.ai/v1",
|
|
1100
1114
|
codingPlanBaseUrl: "https://api.kimi.com/coding/v1",
|
|
1101
1115
|
models: [
|
|
1116
|
+
"kimi-k3",
|
|
1102
1117
|
"kimi-k2.6",
|
|
1103
|
-
"kimi-k2.5"
|
|
1104
|
-
"kimi-k2-thinking"
|
|
1118
|
+
"kimi-k2.5"
|
|
1105
1119
|
],
|
|
1106
1120
|
modelConfigs: [
|
|
1121
|
+
{
|
|
1122
|
+
id: "kimi-k3",
|
|
1123
|
+
name: "Kimi K3",
|
|
1124
|
+
enabled: true
|
|
1125
|
+
},
|
|
1107
1126
|
{
|
|
1108
1127
|
id: "kimi-k2.6",
|
|
1109
1128
|
name: "Kimi K2.6",
|
|
@@ -1113,11 +1132,6 @@ var kimi_default = {
|
|
|
1113
1132
|
id: "kimi-k2.5",
|
|
1114
1133
|
name: "Kimi K2.5",
|
|
1115
1134
|
enabled: true
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
id: "kimi-k2-thinking",
|
|
1119
|
-
name: "Kimi K2 Thinking",
|
|
1120
|
-
enabled: false
|
|
1121
1135
|
}
|
|
1122
1136
|
],
|
|
1123
1137
|
description: "Moonshot AI - Kimi\u5927\u6A21\u578B",
|
|
@@ -1362,42 +1376,30 @@ var openai_default = {
|
|
|
1362
1376
|
apiType: "openai",
|
|
1363
1377
|
api_base_url: "https://api.openai.com/v1/chat/completions",
|
|
1364
1378
|
models: [
|
|
1365
|
-
"gpt-5.
|
|
1366
|
-
"gpt-5.
|
|
1367
|
-
"gpt-5.
|
|
1368
|
-
"gpt-5.
|
|
1369
|
-
"gpt-4o",
|
|
1370
|
-
"gpt-4o-mini"
|
|
1379
|
+
"gpt-5.6-sol",
|
|
1380
|
+
"gpt-5.6-terra",
|
|
1381
|
+
"gpt-5.6-luna",
|
|
1382
|
+
"gpt-5.5"
|
|
1371
1383
|
],
|
|
1372
1384
|
modelConfigs: [
|
|
1373
1385
|
{
|
|
1374
|
-
id: "gpt-5.
|
|
1375
|
-
name: "GPT-5.
|
|
1376
|
-
enabled: true
|
|
1377
|
-
},
|
|
1378
|
-
{
|
|
1379
|
-
id: "gpt-5.4",
|
|
1380
|
-
name: "GPT-5.4",
|
|
1386
|
+
id: "gpt-5.6-sol",
|
|
1387
|
+
name: "GPT-5.6 Sol",
|
|
1381
1388
|
enabled: true
|
|
1382
1389
|
},
|
|
1383
1390
|
{
|
|
1384
|
-
id: "gpt-5.
|
|
1385
|
-
name: "GPT-5.
|
|
1391
|
+
id: "gpt-5.6-terra",
|
|
1392
|
+
name: "GPT-5.6 Terra",
|
|
1386
1393
|
enabled: true
|
|
1387
1394
|
},
|
|
1388
1395
|
{
|
|
1389
|
-
id: "gpt-5.
|
|
1390
|
-
name: "GPT-5.
|
|
1396
|
+
id: "gpt-5.6-luna",
|
|
1397
|
+
name: "GPT-5.6 Luna",
|
|
1391
1398
|
enabled: true
|
|
1392
1399
|
},
|
|
1393
1400
|
{
|
|
1394
|
-
id: "gpt-
|
|
1395
|
-
name: "GPT-
|
|
1396
|
-
enabled: true
|
|
1397
|
-
},
|
|
1398
|
-
{
|
|
1399
|
-
id: "gpt-4o-mini",
|
|
1400
|
-
name: "GPT-4o Mini",
|
|
1401
|
+
id: "gpt-5.5",
|
|
1402
|
+
name: "GPT-5.5",
|
|
1401
1403
|
enabled: true
|
|
1402
1404
|
}
|
|
1403
1405
|
],
|
|
@@ -1432,62 +1434,33 @@ var openai_response_default = {
|
|
|
1432
1434
|
apiFormat: "openai-response",
|
|
1433
1435
|
api_base_url: "https://api.openai.com",
|
|
1434
1436
|
models: [
|
|
1435
|
-
"gpt-5.
|
|
1436
|
-
"gpt-5.
|
|
1437
|
-
"gpt-5.
|
|
1438
|
-
"gpt-5.
|
|
1439
|
-
"gpt-5.2",
|
|
1440
|
-
"o3",
|
|
1441
|
-
"o4-mini",
|
|
1442
|
-
"gpt-4.1"
|
|
1437
|
+
"gpt-5.6-sol",
|
|
1438
|
+
"gpt-5.6-terra",
|
|
1439
|
+
"gpt-5.6-luna",
|
|
1440
|
+
"gpt-5.5"
|
|
1443
1441
|
],
|
|
1444
1442
|
modelConfigs: [
|
|
1445
1443
|
{
|
|
1446
|
-
id: "gpt-5.
|
|
1447
|
-
name: "GPT-5.
|
|
1448
|
-
enabled: true
|
|
1449
|
-
},
|
|
1450
|
-
{
|
|
1451
|
-
id: "gpt-5.4",
|
|
1452
|
-
name: "GPT-5.4",
|
|
1453
|
-
enabled: true
|
|
1454
|
-
},
|
|
1455
|
-
{
|
|
1456
|
-
id: "gpt-5.4-mini",
|
|
1457
|
-
name: "GPT-5.4 Mini",
|
|
1458
|
-
enabled: true
|
|
1459
|
-
},
|
|
1460
|
-
{
|
|
1461
|
-
id: "gpt-5.3-codex",
|
|
1462
|
-
name: "GPT-5.3 Codex",
|
|
1444
|
+
id: "gpt-5.6-sol",
|
|
1445
|
+
name: "GPT-5.6 Sol",
|
|
1463
1446
|
enabled: true
|
|
1464
1447
|
},
|
|
1465
1448
|
{
|
|
1466
|
-
id: "gpt-5.
|
|
1467
|
-
name: "GPT-5.
|
|
1449
|
+
id: "gpt-5.6-terra",
|
|
1450
|
+
name: "GPT-5.6 Terra",
|
|
1468
1451
|
enabled: true
|
|
1469
1452
|
},
|
|
1470
1453
|
{
|
|
1471
|
-
id: "
|
|
1472
|
-
name: "
|
|
1454
|
+
id: "gpt-5.6-luna",
|
|
1455
|
+
name: "GPT-5.6 Luna",
|
|
1473
1456
|
enabled: true
|
|
1474
1457
|
},
|
|
1475
1458
|
{
|
|
1476
|
-
id: "
|
|
1477
|
-
name: "
|
|
1478
|
-
enabled: true
|
|
1479
|
-
},
|
|
1480
|
-
{
|
|
1481
|
-
id: "gpt-4.1",
|
|
1482
|
-
name: "GPT-4.1",
|
|
1459
|
+
id: "gpt-5.5",
|
|
1460
|
+
name: "GPT-5.5",
|
|
1483
1461
|
enabled: true
|
|
1484
1462
|
}
|
|
1485
1463
|
],
|
|
1486
|
-
transformer: {
|
|
1487
|
-
use: [
|
|
1488
|
-
"openai-response"
|
|
1489
|
-
]
|
|
1490
|
-
},
|
|
1491
1464
|
description: "OpenAI Responses API (/v1/responses endpoint)",
|
|
1492
1465
|
icon: "openai",
|
|
1493
1466
|
website: "https://openai.com",
|
|
@@ -2086,6 +2059,7 @@ var zhipu_default = {
|
|
|
2086
2059
|
codingPlanBaseUrl: "https://api.z.ai/api/coding/paas/v4",
|
|
2087
2060
|
modelsEndpoint: "https://api.z.ai/api/paas/v4/models",
|
|
2088
2061
|
models: [
|
|
2062
|
+
"glm-5.2",
|
|
2089
2063
|
"glm-5",
|
|
2090
2064
|
"glm-5.1",
|
|
2091
2065
|
"glm-4.5-air",
|
|
@@ -2093,6 +2067,11 @@ var zhipu_default = {
|
|
|
2093
2067
|
"glm-4.7"
|
|
2094
2068
|
],
|
|
2095
2069
|
modelConfigs: [
|
|
2070
|
+
{
|
|
2071
|
+
id: "glm-5.2",
|
|
2072
|
+
name: "GLM-5.2",
|
|
2073
|
+
enabled: true
|
|
2074
|
+
},
|
|
2096
2075
|
{
|
|
2097
2076
|
id: "glm-5",
|
|
2098
2077
|
name: "GLM-5",
|
|
@@ -2166,6 +2145,7 @@ var zhipu_bigmodel_default = {
|
|
|
2166
2145
|
codingPlanBaseUrl: "https://open.bigmodel.cn/api/coding/paas/v4",
|
|
2167
2146
|
modelsEndpoint: "https://open.bigmodel.cn/api/paas/v4/models",
|
|
2168
2147
|
models: [
|
|
2148
|
+
"glm-5.2",
|
|
2169
2149
|
"glm-5",
|
|
2170
2150
|
"glm-5.1",
|
|
2171
2151
|
"glm-4.5-air",
|
|
@@ -2173,6 +2153,15 @@ var zhipu_bigmodel_default = {
|
|
|
2173
2153
|
"glm-4.7"
|
|
2174
2154
|
],
|
|
2175
2155
|
modelConfigs: [
|
|
2156
|
+
{
|
|
2157
|
+
id: "glm-5.2",
|
|
2158
|
+
name: "GLM-5.2",
|
|
2159
|
+
enabled: true,
|
|
2160
|
+
category: "chat",
|
|
2161
|
+
contextLength: 1048576,
|
|
2162
|
+
maxTokens: 131072,
|
|
2163
|
+
functionCall: true
|
|
2164
|
+
},
|
|
2176
2165
|
{
|
|
2177
2166
|
id: "glm-5",
|
|
2178
2167
|
name: "GLM-5",
|
|
@@ -2670,6 +2659,7 @@ export {
|
|
|
2670
2659
|
DEFAULT_LITELLM_PRICING_URL,
|
|
2671
2660
|
DEFAULT_MAX_TOKENS,
|
|
2672
2661
|
DEFAULT_MCP_SESSION_CONFIG,
|
|
2662
|
+
DEFAULT_OPENROUTER_PRICING_URL,
|
|
2673
2663
|
DEFAULT_SEED_PRESET_IDS,
|
|
2674
2664
|
DEFAULT_VOUCHER_CONFIG,
|
|
2675
2665
|
EFFORT_RATIO,
|
package/dist/pricing-types.cjs
CHANGED
|
@@ -20,11 +20,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// src/pricing-types.ts
|
|
21
21
|
var pricing_types_exports = {};
|
|
22
22
|
__export(pricing_types_exports, {
|
|
23
|
-
DEFAULT_LITELLM_PRICING_URL: () => DEFAULT_LITELLM_PRICING_URL
|
|
23
|
+
DEFAULT_LITELLM_PRICING_URL: () => DEFAULT_LITELLM_PRICING_URL,
|
|
24
|
+
DEFAULT_OPENROUTER_PRICING_URL: () => DEFAULT_OPENROUTER_PRICING_URL
|
|
24
25
|
});
|
|
25
26
|
module.exports = __toCommonJS(pricing_types_exports);
|
|
26
27
|
var DEFAULT_LITELLM_PRICING_URL = "https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json";
|
|
28
|
+
var DEFAULT_OPENROUTER_PRICING_URL = "https://openrouter.ai/api/v1/models";
|
|
27
29
|
// Annotate the CommonJS export names for ESM import in node:
|
|
28
30
|
0 && (module.exports = {
|
|
29
|
-
DEFAULT_LITELLM_PRICING_URL
|
|
31
|
+
DEFAULT_LITELLM_PRICING_URL,
|
|
32
|
+
DEFAULT_OPENROUTER_PRICING_URL
|
|
30
33
|
});
|
package/dist/pricing-types.d.cts
CHANGED
|
@@ -14,6 +14,8 @@ type PricingSource =
|
|
|
14
14
|
'builtin'
|
|
15
15
|
/** Auto-fetched from the LiteLLM JSON URL. */
|
|
16
16
|
| 'litellm'
|
|
17
|
+
/** Supplemental OpenRouter model catalog price (OpenRouter routes only). */
|
|
18
|
+
| 'openrouter'
|
|
17
19
|
/** Hand-edited by the user; protected from auto-overwrite. */
|
|
18
20
|
| 'user';
|
|
19
21
|
/**
|
|
@@ -64,6 +66,8 @@ interface PricingFetchResult {
|
|
|
64
66
|
fetchedAt: number;
|
|
65
67
|
/** Source URL that was fetched. */
|
|
66
68
|
sourceUrl: string;
|
|
69
|
+
/** Outcome of every configured catalog source; one source may fail without discarding the other. */
|
|
70
|
+
sources: PricingSourceRefreshResult[];
|
|
67
71
|
}
|
|
68
72
|
/** Per-row decision passed back from the host's conflict-resolution UI. */
|
|
69
73
|
interface PricingConflictDecision {
|
|
@@ -80,5 +84,16 @@ interface PricingResolution {
|
|
|
80
84
|
}
|
|
81
85
|
/** Default LiteLLM source URL — public model_prices_and_context_window.json. */
|
|
82
86
|
declare const DEFAULT_LITELLM_PRICING_URL = "https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json";
|
|
87
|
+
/** Supplemental OpenRouter catalog. Prices are USD per token in `data[].pricing`. */
|
|
88
|
+
declare const DEFAULT_OPENROUTER_PRICING_URL = "https://openrouter.ai/api/v1/models";
|
|
89
|
+
/** One source attempt in a multi-source pricing refresh. */
|
|
90
|
+
interface PricingSourceRefreshResult {
|
|
91
|
+
source: 'litellm' | 'openrouter';
|
|
92
|
+
sourceUrl: string;
|
|
93
|
+
status: 'applied' | 'failed';
|
|
94
|
+
parsedCount: number;
|
|
95
|
+
appliedCount: number;
|
|
96
|
+
error?: string;
|
|
97
|
+
}
|
|
83
98
|
|
|
84
|
-
export { DEFAULT_LITELLM_PRICING_URL, type PricingConflict, type PricingConflictDecision, type PricingEntry, type PricingEntryInput, type PricingFetchResult, type PricingResolution, type PricingSource };
|
|
99
|
+
export { DEFAULT_LITELLM_PRICING_URL, DEFAULT_OPENROUTER_PRICING_URL, type PricingConflict, type PricingConflictDecision, type PricingEntry, type PricingEntryInput, type PricingFetchResult, type PricingResolution, type PricingSource, type PricingSourceRefreshResult };
|
package/dist/pricing-types.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ type PricingSource =
|
|
|
14
14
|
'builtin'
|
|
15
15
|
/** Auto-fetched from the LiteLLM JSON URL. */
|
|
16
16
|
| 'litellm'
|
|
17
|
+
/** Supplemental OpenRouter model catalog price (OpenRouter routes only). */
|
|
18
|
+
| 'openrouter'
|
|
17
19
|
/** Hand-edited by the user; protected from auto-overwrite. */
|
|
18
20
|
| 'user';
|
|
19
21
|
/**
|
|
@@ -64,6 +66,8 @@ interface PricingFetchResult {
|
|
|
64
66
|
fetchedAt: number;
|
|
65
67
|
/** Source URL that was fetched. */
|
|
66
68
|
sourceUrl: string;
|
|
69
|
+
/** Outcome of every configured catalog source; one source may fail without discarding the other. */
|
|
70
|
+
sources: PricingSourceRefreshResult[];
|
|
67
71
|
}
|
|
68
72
|
/** Per-row decision passed back from the host's conflict-resolution UI. */
|
|
69
73
|
interface PricingConflictDecision {
|
|
@@ -80,5 +84,16 @@ interface PricingResolution {
|
|
|
80
84
|
}
|
|
81
85
|
/** Default LiteLLM source URL — public model_prices_and_context_window.json. */
|
|
82
86
|
declare const DEFAULT_LITELLM_PRICING_URL = "https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json";
|
|
87
|
+
/** Supplemental OpenRouter catalog. Prices are USD per token in `data[].pricing`. */
|
|
88
|
+
declare const DEFAULT_OPENROUTER_PRICING_URL = "https://openrouter.ai/api/v1/models";
|
|
89
|
+
/** One source attempt in a multi-source pricing refresh. */
|
|
90
|
+
interface PricingSourceRefreshResult {
|
|
91
|
+
source: 'litellm' | 'openrouter';
|
|
92
|
+
sourceUrl: string;
|
|
93
|
+
status: 'applied' | 'failed';
|
|
94
|
+
parsedCount: number;
|
|
95
|
+
appliedCount: number;
|
|
96
|
+
error?: string;
|
|
97
|
+
}
|
|
83
98
|
|
|
84
|
-
export { DEFAULT_LITELLM_PRICING_URL, type PricingConflict, type PricingConflictDecision, type PricingEntry, type PricingEntryInput, type PricingFetchResult, type PricingResolution, type PricingSource };
|
|
99
|
+
export { DEFAULT_LITELLM_PRICING_URL, DEFAULT_OPENROUTER_PRICING_URL, type PricingConflict, type PricingConflictDecision, type PricingEntry, type PricingEntryInput, type PricingFetchResult, type PricingResolution, type PricingSource, type PricingSourceRefreshResult };
|
package/dist/pricing-types.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// src/pricing-types.ts
|
|
2
2
|
var DEFAULT_LITELLM_PRICING_URL = "https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json";
|
|
3
|
+
var DEFAULT_OPENROUTER_PRICING_URL = "https://openrouter.ai/api/v1/models";
|
|
3
4
|
export {
|
|
4
|
-
DEFAULT_LITELLM_PRICING_URL
|
|
5
|
+
DEFAULT_LITELLM_PRICING_URL,
|
|
6
|
+
DEFAULT_OPENROUTER_PRICING_URL
|
|
5
7
|
};
|