@blockrun/llm 3.24.2 → 3.24.4
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 -0
- package/dist/index.cjs +46 -2
- package/dist/index.js +46 -2
- package/package.json +2 -2
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -571,7 +571,7 @@ function withCost(body, response, bookedUsd, scheme) {
|
|
|
571
571
|
// src/client.ts
|
|
572
572
|
var import_accounts2 = require("viem/accounts");
|
|
573
573
|
|
|
574
|
-
// node_modules/.pnpm/@blockrun+router-core@https+++codeload.github.com+BlockRunAI+router-core+tar.gz+
|
|
574
|
+
// node_modules/.pnpm/@blockrun+router-core@https+++codeload.github.com+BlockRunAI+router-core+tar.gz+8773a9954b091_rjdkm4uoakz3dfyojiwn3sv45i/node_modules/@blockrun/router-core/dist/index.js
|
|
575
575
|
var UNSEGMENTED_SCRIPT = /[-ۿ -ヿ㐀-䶿一-鿿가-豈--]/;
|
|
576
576
|
var WORD_CHAR = /[\p{L}\p{N}]/u;
|
|
577
577
|
var ASCII_PHRASE = /^[a-z0-9' -]+$/;
|
|
@@ -1212,6 +1212,12 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
1212
1212
|
supportsTools: true,
|
|
1213
1213
|
supportsVision: false
|
|
1214
1214
|
},
|
|
1215
|
+
"deepseek/deepseek-v4.1-flash": {
|
|
1216
|
+
contextWindow: 1048576,
|
|
1217
|
+
maxOutputTokens: 65536,
|
|
1218
|
+
supportsTools: true,
|
|
1219
|
+
supportsVision: false
|
|
1220
|
+
},
|
|
1215
1221
|
"google/gemini-2.5-flash": {
|
|
1216
1222
|
contextWindow: 1048576,
|
|
1217
1223
|
maxOutputTokens: 65536,
|
|
@@ -1272,6 +1278,13 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
1272
1278
|
supportsTools: true,
|
|
1273
1279
|
supportsVision: true
|
|
1274
1280
|
},
|
|
1281
|
+
"google/gemini-4-argon": {
|
|
1282
|
+
// supportsTools: not probed — fails closed
|
|
1283
|
+
contextWindow: 1048576,
|
|
1284
|
+
maxOutputTokens: 65536,
|
|
1285
|
+
supportsTools: false,
|
|
1286
|
+
supportsVision: true
|
|
1287
|
+
},
|
|
1275
1288
|
"minimax/minimax-m2.7": {
|
|
1276
1289
|
contextWindow: 204800,
|
|
1277
1290
|
maxOutputTokens: 16384,
|
|
@@ -1284,6 +1297,13 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
1284
1297
|
supportsTools: true,
|
|
1285
1298
|
supportsVision: false
|
|
1286
1299
|
},
|
|
1300
|
+
"mistral/mistral-large-4": {
|
|
1301
|
+
// supportsTools: not probed — fails closed
|
|
1302
|
+
contextWindow: 524288,
|
|
1303
|
+
maxOutputTokens: 262144,
|
|
1304
|
+
supportsTools: false,
|
|
1305
|
+
supportsVision: true
|
|
1306
|
+
},
|
|
1287
1307
|
"moonshot/kimi-k3": {
|
|
1288
1308
|
contextWindow: 1048576,
|
|
1289
1309
|
maxOutputTokens: 65536,
|
|
@@ -1485,6 +1505,12 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
1485
1505
|
supportsTools: true,
|
|
1486
1506
|
supportsVision: true
|
|
1487
1507
|
},
|
|
1508
|
+
"openai/gpt-6.1-sol": {
|
|
1509
|
+
contextWindow: 105e4,
|
|
1510
|
+
maxOutputTokens: 128e3,
|
|
1511
|
+
supportsTools: true,
|
|
1512
|
+
supportsVision: true
|
|
1513
|
+
},
|
|
1488
1514
|
"openai/o1": {
|
|
1489
1515
|
contextWindow: 2e5,
|
|
1490
1516
|
maxOutputTokens: 1e5,
|
|
@@ -1737,6 +1763,14 @@ var model_profiles_generated_default = {
|
|
|
1737
1763
|
errorRate: 0,
|
|
1738
1764
|
samples: 3
|
|
1739
1765
|
},
|
|
1766
|
+
"deepseek/deepseek-v4.1-flash": {
|
|
1767
|
+
measuredAt: "2026-10-20T18:12:51Z",
|
|
1768
|
+
latencyMs: 2383.5,
|
|
1769
|
+
p95LatencyMs: 2547.8,
|
|
1770
|
+
outputTokensPerSecond: 216.53,
|
|
1771
|
+
errorRate: 0,
|
|
1772
|
+
samples: 3
|
|
1773
|
+
},
|
|
1740
1774
|
"google/gemini-2.5-flash": {
|
|
1741
1775
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
1742
1776
|
latencyMs: 5416.4,
|
|
@@ -2025,6 +2059,14 @@ var model_profiles_generated_default = {
|
|
|
2025
2059
|
errorRate: 0,
|
|
2026
2060
|
samples: 3
|
|
2027
2061
|
},
|
|
2062
|
+
"openai/gpt-6.1-sol": {
|
|
2063
|
+
measuredAt: "2026-10-20T18:12:51Z",
|
|
2064
|
+
latencyMs: 11324,
|
|
2065
|
+
p95LatencyMs: 12747.6,
|
|
2066
|
+
outputTokensPerSecond: 45.11,
|
|
2067
|
+
errorRate: 0,
|
|
2068
|
+
samples: 3
|
|
2069
|
+
},
|
|
2028
2070
|
"openai/o1": {
|
|
2029
2071
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
2030
2072
|
latencyMs: 4324.9,
|
|
@@ -2840,11 +2882,13 @@ var VERIFIED_TOOL_FALLBACKS = [
|
|
|
2840
2882
|
"anthropic/claude-fable-5.1",
|
|
2841
2883
|
"anthropic/claude-opus-5.5",
|
|
2842
2884
|
"anthropic/claude-sonnet-5.5",
|
|
2885
|
+
"deepseek/deepseek-v4.1-flash",
|
|
2843
2886
|
"google/gemini-3.8-flash",
|
|
2844
2887
|
"openai/gpt-5.1",
|
|
2845
2888
|
"openai/gpt-6-astra",
|
|
2846
2889
|
"openai/gpt-6-luna",
|
|
2847
2890
|
"openai/gpt-6-sol",
|
|
2891
|
+
"openai/gpt-6.1-sol",
|
|
2848
2892
|
"xai/grok-4.6",
|
|
2849
2893
|
"xai/grok-4.7",
|
|
2850
2894
|
"xiaomi/mimo-v2.5"
|
|
@@ -5045,7 +5089,7 @@ function getCostSummary() {
|
|
|
5045
5089
|
}
|
|
5046
5090
|
|
|
5047
5091
|
// src/version.ts
|
|
5048
|
-
var SDK_VERSION = "3.24.
|
|
5092
|
+
var SDK_VERSION = "3.24.4";
|
|
5049
5093
|
var USER_AGENT = `blockrun-ts/${SDK_VERSION}`;
|
|
5050
5094
|
|
|
5051
5095
|
// src/client.ts
|
package/dist/index.js
CHANGED
|
@@ -440,7 +440,7 @@ function withCost(body, response, bookedUsd, scheme) {
|
|
|
440
440
|
// src/client.ts
|
|
441
441
|
import { privateKeyToAccount } from "viem/accounts";
|
|
442
442
|
|
|
443
|
-
// node_modules/.pnpm/@blockrun+router-core@https+++codeload.github.com+BlockRunAI+router-core+tar.gz+
|
|
443
|
+
// node_modules/.pnpm/@blockrun+router-core@https+++codeload.github.com+BlockRunAI+router-core+tar.gz+8773a9954b091_rjdkm4uoakz3dfyojiwn3sv45i/node_modules/@blockrun/router-core/dist/index.js
|
|
444
444
|
var UNSEGMENTED_SCRIPT = /[-ۿ -ヿ㐀-䶿一-鿿가-豈--]/;
|
|
445
445
|
var WORD_CHAR = /[\p{L}\p{N}]/u;
|
|
446
446
|
var ASCII_PHRASE = /^[a-z0-9' -]+$/;
|
|
@@ -1081,6 +1081,12 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
1081
1081
|
supportsTools: true,
|
|
1082
1082
|
supportsVision: false
|
|
1083
1083
|
},
|
|
1084
|
+
"deepseek/deepseek-v4.1-flash": {
|
|
1085
|
+
contextWindow: 1048576,
|
|
1086
|
+
maxOutputTokens: 65536,
|
|
1087
|
+
supportsTools: true,
|
|
1088
|
+
supportsVision: false
|
|
1089
|
+
},
|
|
1084
1090
|
"google/gemini-2.5-flash": {
|
|
1085
1091
|
contextWindow: 1048576,
|
|
1086
1092
|
maxOutputTokens: 65536,
|
|
@@ -1141,6 +1147,13 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
1141
1147
|
supportsTools: true,
|
|
1142
1148
|
supportsVision: true
|
|
1143
1149
|
},
|
|
1150
|
+
"google/gemini-4-argon": {
|
|
1151
|
+
// supportsTools: not probed — fails closed
|
|
1152
|
+
contextWindow: 1048576,
|
|
1153
|
+
maxOutputTokens: 65536,
|
|
1154
|
+
supportsTools: false,
|
|
1155
|
+
supportsVision: true
|
|
1156
|
+
},
|
|
1144
1157
|
"minimax/minimax-m2.7": {
|
|
1145
1158
|
contextWindow: 204800,
|
|
1146
1159
|
maxOutputTokens: 16384,
|
|
@@ -1153,6 +1166,13 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
1153
1166
|
supportsTools: true,
|
|
1154
1167
|
supportsVision: false
|
|
1155
1168
|
},
|
|
1169
|
+
"mistral/mistral-large-4": {
|
|
1170
|
+
// supportsTools: not probed — fails closed
|
|
1171
|
+
contextWindow: 524288,
|
|
1172
|
+
maxOutputTokens: 262144,
|
|
1173
|
+
supportsTools: false,
|
|
1174
|
+
supportsVision: true
|
|
1175
|
+
},
|
|
1156
1176
|
"moonshot/kimi-k3": {
|
|
1157
1177
|
contextWindow: 1048576,
|
|
1158
1178
|
maxOutputTokens: 65536,
|
|
@@ -1354,6 +1374,12 @@ var DEFAULT_MODEL_CAPABILITIES = Object.freeze({
|
|
|
1354
1374
|
supportsTools: true,
|
|
1355
1375
|
supportsVision: true
|
|
1356
1376
|
},
|
|
1377
|
+
"openai/gpt-6.1-sol": {
|
|
1378
|
+
contextWindow: 105e4,
|
|
1379
|
+
maxOutputTokens: 128e3,
|
|
1380
|
+
supportsTools: true,
|
|
1381
|
+
supportsVision: true
|
|
1382
|
+
},
|
|
1357
1383
|
"openai/o1": {
|
|
1358
1384
|
contextWindow: 2e5,
|
|
1359
1385
|
maxOutputTokens: 1e5,
|
|
@@ -1606,6 +1632,14 @@ var model_profiles_generated_default = {
|
|
|
1606
1632
|
errorRate: 0,
|
|
1607
1633
|
samples: 3
|
|
1608
1634
|
},
|
|
1635
|
+
"deepseek/deepseek-v4.1-flash": {
|
|
1636
|
+
measuredAt: "2026-10-20T18:12:51Z",
|
|
1637
|
+
latencyMs: 2383.5,
|
|
1638
|
+
p95LatencyMs: 2547.8,
|
|
1639
|
+
outputTokensPerSecond: 216.53,
|
|
1640
|
+
errorRate: 0,
|
|
1641
|
+
samples: 3
|
|
1642
|
+
},
|
|
1609
1643
|
"google/gemini-2.5-flash": {
|
|
1610
1644
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
1611
1645
|
latencyMs: 5416.4,
|
|
@@ -1894,6 +1928,14 @@ var model_profiles_generated_default = {
|
|
|
1894
1928
|
errorRate: 0,
|
|
1895
1929
|
samples: 3
|
|
1896
1930
|
},
|
|
1931
|
+
"openai/gpt-6.1-sol": {
|
|
1932
|
+
measuredAt: "2026-10-20T18:12:51Z",
|
|
1933
|
+
latencyMs: 11324,
|
|
1934
|
+
p95LatencyMs: 12747.6,
|
|
1935
|
+
outputTokensPerSecond: 45.11,
|
|
1936
|
+
errorRate: 0,
|
|
1937
|
+
samples: 3
|
|
1938
|
+
},
|
|
1897
1939
|
"openai/o1": {
|
|
1898
1940
|
measuredAt: "2026-08-29T16:51:33Z",
|
|
1899
1941
|
latencyMs: 4324.9,
|
|
@@ -2709,11 +2751,13 @@ var VERIFIED_TOOL_FALLBACKS = [
|
|
|
2709
2751
|
"anthropic/claude-fable-5.1",
|
|
2710
2752
|
"anthropic/claude-opus-5.5",
|
|
2711
2753
|
"anthropic/claude-sonnet-5.5",
|
|
2754
|
+
"deepseek/deepseek-v4.1-flash",
|
|
2712
2755
|
"google/gemini-3.8-flash",
|
|
2713
2756
|
"openai/gpt-5.1",
|
|
2714
2757
|
"openai/gpt-6-astra",
|
|
2715
2758
|
"openai/gpt-6-luna",
|
|
2716
2759
|
"openai/gpt-6-sol",
|
|
2760
|
+
"openai/gpt-6.1-sol",
|
|
2717
2761
|
"xai/grok-4.6",
|
|
2718
2762
|
"xai/grok-4.7",
|
|
2719
2763
|
"xiaomi/mimo-v2.5"
|
|
@@ -4914,7 +4958,7 @@ function getCostSummary() {
|
|
|
4914
4958
|
}
|
|
4915
4959
|
|
|
4916
4960
|
// src/version.ts
|
|
4917
|
-
var SDK_VERSION = "3.24.
|
|
4961
|
+
var SDK_VERSION = "3.24.4";
|
|
4918
4962
|
var USER_AGENT = `blockrun-ts/${SDK_VERSION}`;
|
|
4919
4963
|
|
|
4920
4964
|
// src/client.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockrun/llm",
|
|
3
|
-
"version": "3.24.
|
|
3
|
+
"version": "3.24.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TypeScript SDK for BlockRun - every frontier model behind one OpenAI-compatible client. Pay with a BlockRun API key or per-call in USDC. Smart routing picks the cheapest capable model. No rate limits.",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@blockrun/core": "^0.1.0",
|
|
61
|
-
"@blockrun/router-core": "https://codeload.github.com/BlockRunAI/router-core/tar.gz/
|
|
61
|
+
"@blockrun/router-core": "https://codeload.github.com/BlockRunAI/router-core/tar.gz/8773a9954b091bd0090acdfec67c75a006c0e156",
|
|
62
62
|
"@eslint/js": "^10.0.1",
|
|
63
63
|
"@solana/kit": "^5.5.1",
|
|
64
64
|
"@types/node": "^26.4.1",
|