@blockrun/franklin 3.49.12 → 3.49.14
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/agent/optimize.js +1 -0
- package/dist/agent/tokens.js +1 -0
- package/dist/free-models.constants.js +3 -1
- package/dist/free-models.d.ts +17 -7
- package/dist/free-models.js +21 -8
- package/dist/pricing.js +40 -18
- package/dist/router/vision.js +8 -0
- package/dist/ui/model-picker.js +91 -32
- package/package.json +3 -3
package/dist/agent/optimize.js
CHANGED
|
@@ -71,6 +71,7 @@ const MODEL_MAX_OUTPUT = {
|
|
|
71
71
|
'deepseek/deepseek-chat': 65_536,
|
|
72
72
|
'deepseek/deepseek-reasoner': 65_536,
|
|
73
73
|
'deepseek/deepseek-v4-pro': 65_536,
|
|
74
|
+
'deepseek/deepseek-v4.1-flash': 65_536,
|
|
74
75
|
// Kimi K3 (flagship, 2026-07) supports 65K output per the BlockRun gateway
|
|
75
76
|
// model entry (max_output: 65536). Without this entry the default 16K cap
|
|
76
77
|
// left users with 4× headroom on the table for long-form coding outputs
|
package/dist/agent/tokens.js
CHANGED
|
@@ -264,6 +264,7 @@ const MODEL_CONTEXT_WINDOWS = {
|
|
|
264
264
|
'deepseek/deepseek-chat': 1_000_000,
|
|
265
265
|
'deepseek/deepseek-reasoner': 1_000_000,
|
|
266
266
|
'deepseek/deepseek-v4-pro': 1_000_000,
|
|
267
|
+
'deepseek/deepseek-v4.1-flash': 1_000_000,
|
|
267
268
|
// xAI. grok-4.5 / 4.3 / build were missing until 2026-08-20: neither matches
|
|
268
269
|
// any inference pattern below, so a cold catalog cache fell through to the
|
|
269
270
|
// blind 128k default and compacted a 500K–1M window ~4-8x too early.
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
export const FREE_DEFAULT_MODEL = 'nvidia/nemotron-3-nano-omni-30b-a3b-reasoning';
|
|
25
25
|
/** Free models in preference order, best first. See free-models.ts. */
|
|
26
26
|
export const FREE_PREFERENCE_ORDER = [
|
|
27
|
-
|
|
27
|
+
// nvidia/nemotron-3-nano-30b led this list until the gateway delisted it on
|
|
28
|
+
// 2026-09-08 (NVIDIA deprovisioned it). It is gone from /api/v1/models, so
|
|
29
|
+
// the chain-safe default leads again.
|
|
28
30
|
FREE_DEFAULT_MODEL, // the floor this never drops below
|
|
29
31
|
'poolside/laguna-xs-2.1', // different provider
|
|
30
32
|
'cohere/north-mini-code', // different provider; needs max_tokens >= 1200
|
package/dist/free-models.d.ts
CHANGED
|
@@ -103,7 +103,15 @@ export { FREE_DEFAULT_MODEL, FREE_POOL_CONTEXT_FLOOR, FREE_PREFERENCE_ORDER };
|
|
|
103
103
|
* chain alive through an NVIDIA-wide outage instead of it being four names
|
|
104
104
|
* for one upstream.
|
|
105
105
|
*
|
|
106
|
+
* 2026-10-20: nemotron-3-nano-30b, the Base leader in the table above, was
|
|
107
|
+
* delisted on 2026-09-08 and has left this list (see LEGACY_FREE_MODEL_IDS).
|
|
108
|
+
* The measurements stay as the record of why it led.
|
|
109
|
+
*
|
|
106
110
|
* Not listed, and why:
|
|
111
|
+
* - nvidia/muse-glimmer-30b — joined the free pool 2026-10-02 and has not
|
|
112
|
+
* been measured on /v1/messages, the bar every rung above had to clear.
|
|
113
|
+
* A reasoning model that spends a small max_tokens budget entirely on
|
|
114
|
+
* reasoning (gateway probe). Reachable by explicit pin until measured.
|
|
107
115
|
* - nvidia/nemotron-3.5-lightning — LATENCY, and only latency. Measured
|
|
108
116
|
* 10.9s / 12.2s / 22.5s for a one-sentence answer at max_tokens 800,
|
|
109
117
|
* against ~0.8-3s for the rest of the pool. Its name is a lie. (An
|
|
@@ -178,16 +186,18 @@ export { FREE_DEFAULT_MODEL, FREE_POOL_CONTEXT_FLOOR, FREE_PREFERENCE_ORDER };
|
|
|
178
186
|
*/
|
|
179
187
|
export declare const QUARANTINED_FREE_MODELS: readonly string[];
|
|
180
188
|
/**
|
|
181
|
-
* Free ids Franklin used to name.
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
189
|
+
* Free ids Franklin used to name. All are gone from /api/v1/models; the
|
|
190
|
+
* gateway answers for most of them by substitution. Kept DELIBERATELY: this
|
|
191
|
+
* list is what lets isFreeModelId() report an old session's model as $0 and
|
|
192
|
+
* keep a stale pin on the free side of every paid-approval gate. It is never
|
|
193
|
+
* routed to — FREE_PREFERENCE_ORDER is the routing list.
|
|
185
194
|
*/
|
|
186
195
|
export declare const LEGACY_FREE_MODEL_IDS: readonly string[];
|
|
187
196
|
/**
|
|
188
|
-
* Every free id in the live
|
|
189
|
-
*
|
|
190
|
-
*
|
|
197
|
+
* Every free id (billing_mode "free") in the live catalog as of 2026-10-20 —
|
|
198
|
+
* identical on Base and Solana — mapped to its catalogued context window.
|
|
199
|
+
* Used for metadata display and as the cold-cache answer to isFreeModelId();
|
|
200
|
+
* NOT for sizing a request — use FREE_POOL_CONTEXT_FLOOR for that.
|
|
191
201
|
*/
|
|
192
202
|
export declare const FREE_MODEL_CONTEXT_WINDOWS: Readonly<Record<string, number>>;
|
|
193
203
|
/**
|
package/dist/free-models.js
CHANGED
|
@@ -109,7 +109,15 @@ export { FREE_DEFAULT_MODEL, FREE_POOL_CONTEXT_FLOOR, FREE_PREFERENCE_ORDER };
|
|
|
109
109
|
* chain alive through an NVIDIA-wide outage instead of it being four names
|
|
110
110
|
* for one upstream.
|
|
111
111
|
*
|
|
112
|
+
* 2026-10-20: nemotron-3-nano-30b, the Base leader in the table above, was
|
|
113
|
+
* delisted on 2026-09-08 and has left this list (see LEGACY_FREE_MODEL_IDS).
|
|
114
|
+
* The measurements stay as the record of why it led.
|
|
115
|
+
*
|
|
112
116
|
* Not listed, and why:
|
|
117
|
+
* - nvidia/muse-glimmer-30b — joined the free pool 2026-10-02 and has not
|
|
118
|
+
* been measured on /v1/messages, the bar every rung above had to clear.
|
|
119
|
+
* A reasoning model that spends a small max_tokens budget entirely on
|
|
120
|
+
* reasoning (gateway probe). Reachable by explicit pin until measured.
|
|
113
121
|
* - nvidia/nemotron-3.5-lightning — LATENCY, and only latency. Measured
|
|
114
122
|
* 10.9s / 12.2s / 22.5s for a one-sentence answer at max_tokens 800,
|
|
115
123
|
* against ~0.8-3s for the rest of the pool. Its name is a lie. (An
|
|
@@ -202,12 +210,16 @@ export const QUARANTINED_FREE_MODELS = [
|
|
|
202
210
|
// it is a cascade rung other BlockRun components depend on.
|
|
203
211
|
];
|
|
204
212
|
/**
|
|
205
|
-
* Free ids Franklin used to name.
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
213
|
+
* Free ids Franklin used to name. All are gone from /api/v1/models; the
|
|
214
|
+
* gateway answers for most of them by substitution. Kept DELIBERATELY: this
|
|
215
|
+
* list is what lets isFreeModelId() report an old session's model as $0 and
|
|
216
|
+
* keep a stale pin on the free side of every paid-approval gate. It is never
|
|
217
|
+
* routed to — FREE_PREFERENCE_ORDER is the routing list.
|
|
209
218
|
*/
|
|
210
219
|
export const LEGACY_FREE_MODEL_IDS = [
|
|
220
|
+
// Delisted 2026-09-08 (NVIDIA deprovisioned it; gateway marks it
|
|
221
|
+
// unavailable and redirects to nano-omni). Led the free chain until then.
|
|
222
|
+
'nvidia/nemotron-3-nano-30b',
|
|
211
223
|
'nvidia/nemotron-nano-9b-v2',
|
|
212
224
|
'nvidia/mistral-nemotron',
|
|
213
225
|
'nvidia/nemotron-nano-12b-v2-vl',
|
|
@@ -216,17 +228,18 @@ export const LEGACY_FREE_MODEL_IDS = [
|
|
|
216
228
|
'nvidia/nemotron-3-super-120b-a12b-free',
|
|
217
229
|
];
|
|
218
230
|
/**
|
|
219
|
-
* Every free id in the live
|
|
220
|
-
*
|
|
221
|
-
*
|
|
231
|
+
* Every free id (billing_mode "free") in the live catalog as of 2026-10-20 —
|
|
232
|
+
* identical on Base and Solana — mapped to its catalogued context window.
|
|
233
|
+
* Used for metadata display and as the cold-cache answer to isFreeModelId();
|
|
234
|
+
* NOT for sizing a request — use FREE_POOL_CONTEXT_FLOOR for that.
|
|
222
235
|
*/
|
|
223
236
|
export const FREE_MODEL_CONTEXT_WINDOWS = {
|
|
224
237
|
'nvidia/nemotron-3-ultra-550b': 1_000_000,
|
|
225
238
|
'nvidia/nemotron-3.5-lightning': 1_000_000,
|
|
226
239
|
'nvidia/nemotron-3-nano-omni-30b-a3b-reasoning': 256_000,
|
|
227
240
|
'cohere/north-mini-code': 256_000,
|
|
228
|
-
'nvidia/nemotron-3-nano-30b': 131_072,
|
|
229
241
|
'poolside/laguna-xs-2.1': 131_072,
|
|
242
|
+
'nvidia/muse-glimmer-30b': 131_072,
|
|
230
243
|
'nvidia/llama-3.2-11b-vision': 128_000,
|
|
231
244
|
};
|
|
232
245
|
/**
|
package/dist/pricing.js
CHANGED
|
@@ -9,13 +9,13 @@ const LEGACY_PRICING = {
|
|
|
9
9
|
// their parser mapping promotes them to Auto upstream of cost estimation.
|
|
10
10
|
'blockrun/auto': { input: 0.8, output: 4.0 },
|
|
11
11
|
'blockrun/free': { input: 0, output: 0 },
|
|
12
|
-
// FREE — BlockRun gateway free tier (refreshed 2026-
|
|
13
|
-
// /api/v1/models,
|
|
12
|
+
// FREE — BlockRun gateway free tier (refreshed 2026-10-20 to match live
|
|
13
|
+
// /api/v1/models, identical on Base and Solana). The routing order and
|
|
14
14
|
// the reasoning behind it live in src/free-models.ts; this table only has to
|
|
15
15
|
// price every id at $0 so no free call is ever reported as a charge.
|
|
16
16
|
'nvidia/nemotron-3-ultra-550b': { input: 0, output: 0 }, // strongest free model, but 0/5 reachable — NOT the default
|
|
17
|
-
'nvidia/nemotron-3-nano-30b': { input: 0, output: 0 }, // leads the free chain on Base (see free-models.ts)
|
|
18
17
|
'nvidia/nemotron-3.5-lightning': { input: 0, output: 0 },
|
|
18
|
+
'nvidia/muse-glimmer-30b': { input: 0, output: 0 }, // Meta Muse Glimmer, free on NVIDIA since 2026-10-02
|
|
19
19
|
'nvidia/nemotron-3-nano-omni-30b-a3b-reasoning': { input: 0, output: 0 },
|
|
20
20
|
'nvidia/llama-3.2-11b-vision': { input: 0, output: 0 },
|
|
21
21
|
'cohere/north-mini-code': { input: 0, output: 0 },
|
|
@@ -28,6 +28,7 @@ const LEGACY_PRICING = {
|
|
|
28
28
|
'nvidia/nemotron-nano-12b-v2-vl': { input: 0, output: 0 }, // -> nemotron-3-nano-omni
|
|
29
29
|
'nvidia/step-3.7-flash': { input: 0, output: 0 }, // -> nemotron-3.5-lightning
|
|
30
30
|
'nvidia/nemotron-3-super-120b-a12b-free': { input: 0, output: 0 }, // pool backing id, never listed
|
|
31
|
+
'nvidia/nemotron-3-nano-30b': { input: 0, output: 0 }, // delisted 2026-09-08 (NVIDIA deprovisioned it)
|
|
31
32
|
// Retired free models (kept at 0 for legacy session-cost records; gateway no
|
|
32
33
|
// longer serves these — do NOT route to them).
|
|
33
34
|
'nvidia/qwen3-next-80b-a3b-instruct': { input: 0, output: 0 }, // NVIDIA EOL 410, 2026-07-27
|
|
@@ -73,6 +74,7 @@ const LEGACY_PRICING = {
|
|
|
73
74
|
// per-1M table cannot express — the catalog's long_context tiers carry that.
|
|
74
75
|
'openai/gpt-6-astra': { input: 10.0, output: 50.0 },
|
|
75
76
|
'openai/gpt-6-sol': { input: 2.0, output: 10.0 },
|
|
77
|
+
'openai/gpt-6.1-sol': { input: 2.0, output: 10.0 }, // refreshed Sol, live 2026-10-20 (same base rate as 6 Sol)
|
|
76
78
|
'openai/gpt-6-luna': { input: 0.1, output: 0.5 },
|
|
77
79
|
'openai/gpt-5.1': { input: 1.25, output: 10.0 },
|
|
78
80
|
'openai/gpt-4.1-nano': { input: 0.1, output: 0.4 },
|
|
@@ -116,8 +118,12 @@ const LEGACY_PRICING = {
|
|
|
116
118
|
'google/gemini-3.5-flash': { input: 1.5, output: 9.0 }, // latest Flash w/ thinking, 1M ctx
|
|
117
119
|
'google/gemini-3.5-flash-lite': { input: 0.3, output: 2.5 },
|
|
118
120
|
'google/gemini-3.6-flash': { input: 0.75, output: 3.75 }, // added upstream 2026-08-03 (base #329); live promo rate 2026-10-02
|
|
121
|
+
'google/gemini-3.8-flash': { input: 0.75, output: 3.75 }, // live 2026-10-20
|
|
119
122
|
'google/gemini-2.5-pro': { input: 1.25, output: 10.0 },
|
|
120
123
|
'google/gemini-3.1-pro': { input: 2.0, output: 12.0 },
|
|
124
|
+
// Gemini 4 Argon — live 2026-10-20 on both chains. Google's intro rate;
|
|
125
|
+
// it moves to $4/$20 on 2026-12-01, re-price it then.
|
|
126
|
+
'google/gemini-4-argon': { input: 2.0, output: 10.0 },
|
|
121
127
|
// xAI
|
|
122
128
|
'xai/grok-4.3': { input: 1.25, output: 2.5 }, // 1M ctx; demoted from flagship 2026-07-14
|
|
123
129
|
'xai/grok-4.7': { input: 2.0, output: 6.0 }, // newest Grok, 500K ctx (2x at >=200K input)
|
|
@@ -128,9 +134,13 @@ const LEGACY_PRICING = {
|
|
|
128
134
|
// again upstream 2026-08-07 to $0.14/$0.28 — mirrored here 2026-08-12).
|
|
129
135
|
'deepseek/deepseek-chat': { input: 0.14, output: 0.28 },
|
|
130
136
|
'deepseek/deepseek-reasoner': { input: 0.14, output: 0.28 },
|
|
137
|
+
// V4.1 Flash — live on Base 2026-10-20; the same model and price as deepseek-chat.
|
|
138
|
+
'deepseek/deepseek-v4.1-flash': { input: 0.14, output: 0.28 },
|
|
131
139
|
// V4 Pro (1.6T MoE / 49B active, 1M ctx, 65K out). Live list 2026-10-02;
|
|
132
140
|
// the old $0.435/$0.87 promo figure no longer matches the gateway.
|
|
133
141
|
'deepseek/deepseek-v4-pro': { input: 1.32, output: 3.96 },
|
|
142
|
+
// V4 Flash Vision (experimental): the image-capable DeepSeek SKU, live 2026-10-20.
|
|
143
|
+
'deepseek/deepseek-v4-flash-vision-exp': { input: 0.3, output: 1.2 },
|
|
134
144
|
// Minimax
|
|
135
145
|
'minimax/minimax-m3': { input: 0.3, output: 1.2 },
|
|
136
146
|
'minimax/minimax-m2.7': { input: 0.3, output: 1.2 },
|
|
@@ -138,9 +148,17 @@ const LEGACY_PRICING = {
|
|
|
138
148
|
'qwen/qwen3.7-max': { input: 1.475, output: 4.425 },
|
|
139
149
|
'qwen/qwen3.7-plus': { input: 0.32, output: 1.28 },
|
|
140
150
|
'qwen/qwen3.7-flash': { input: 0.03, output: 0.13 },
|
|
151
|
+
// Qwen 3.8 — live 2026-10-20. Flash is the vision-capable one.
|
|
152
|
+
'qwen/qwen3.8-max': { input: 2.0, output: 6.0 },
|
|
153
|
+
'qwen/qwen3.8-flash': { input: 0.15, output: 0.47 },
|
|
141
154
|
// New providers added upstream 2026-08 — priced from the live catalog.
|
|
142
|
-
'tencent/hy3': { input: 0.132, output: 0.528 }, // retired
|
|
155
|
+
'tencent/hy3': { input: 0.132, output: 0.528 }, // retired 2026-09-24 (gateway redirects to qwen3.7-flash) — kept for session-cost records
|
|
156
|
+
'tencent/hy4-preview': { input: 0.834, output: 2.501 }, // live 2026-10-20 — Tencent's current model
|
|
143
157
|
'xiaomi/mimo-v2.5-pro': { input: 0.435, output: 0.87 },
|
|
158
|
+
'xiaomi/mimo-v2.5': { input: 0.14, output: 0.28 }, // live 2026-10-20 — vision-capable, cheaper than Pro
|
|
159
|
+
// Mistral + Poolside paid tiers — live 2026-10-20.
|
|
160
|
+
'mistral/mistral-large-4': { input: 0.68, output: 2.09 },
|
|
161
|
+
'poolside/laguna-s-2.1': { input: 0.09, output: 0.18 }, // paid sibling of the free laguna-xs-2.1
|
|
144
162
|
// Moonshot — K3 is the gateway flagship (2026-07): 2.8T open MoE, 1M
|
|
145
163
|
// context, multimodal (image+text), returns reasoning_content. Pricier
|
|
146
164
|
// than the K2.x line it replaced ($3/$15 vs K2.7's $0.95/$4).
|
|
@@ -168,28 +186,32 @@ const LEGACY_PRICING = {
|
|
|
168
186
|
'openai/gpt-5-nano': { input: 0.05, output: 0.4 }, // (probed)
|
|
169
187
|
'openai/o1-mini': { input: 1.1, output: 4.4 },
|
|
170
188
|
'google/gemini-3-pro-preview': { input: 2.0, output: 12.0 }, // GA'd as gemini-3.1-pro
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
189
|
+
// Retired at xAI. The gateway pins every retired Grok slug to grok-4.3 and
|
|
190
|
+
// bills grok-4.3's $1.25/$2.50 (blockrun models.ts + model-maps.ts
|
|
191
|
+
// "Retired -> grok-4.3", repriced 2026-09-07/09). The old per-id list
|
|
192
|
+
// prices here overstated grok-3 / grok-4-0709 by 2.4x/6x and understated
|
|
193
|
+
// the fast family, so they now carry what the gateway actually charges.
|
|
194
|
+
'xai/grok-4-fast': { input: 0.2, output: 0.5 }, // not in the gateway catalog — historical only
|
|
195
|
+
'xai/grok-4-fast-reasoning': { input: 1.25, output: 2.5 }, // served as grok-4.3
|
|
196
|
+
'xai/grok-4-1-fast': { input: 0.2, output: 0.5 }, // not in the gateway catalog — historical only
|
|
197
|
+
'xai/grok-4-1-fast-reasoning': { input: 1.25, output: 2.5 }, // served as grok-4.3
|
|
175
198
|
// The two non-reasoning ids sit in the shared Router's SIMPLE chains and
|
|
176
|
-
// were charged
|
|
199
|
+
// were charged, yet once had no row here — Franklin reported them as $0
|
|
177
200
|
// and the portfolio scorer, which treats an unpriced id as infinitely
|
|
178
|
-
// expensive, could never pick them over a priced rung.
|
|
179
|
-
|
|
180
|
-
'xai/grok-4-
|
|
181
|
-
'xai/grok-4-
|
|
182
|
-
'xai/grok-
|
|
183
|
-
'xai/grok-
|
|
184
|
-
'xai/grok-
|
|
185
|
-
'xai/grok-3': { input: 3.0, output: 15.0 }, // (probed)
|
|
201
|
+
// expensive, could never pick them over a priced rung.
|
|
202
|
+
'xai/grok-4-1-fast-non-reasoning': { input: 1.25, output: 2.5 }, // served as grok-4.3
|
|
203
|
+
'xai/grok-4-fast-non-reasoning': { input: 1.25, output: 2.5 }, // served as grok-4.3
|
|
204
|
+
'xai/grok-4-0709': { input: 1.25, output: 2.5 }, // served as grok-4.3 (was $3/$15)
|
|
205
|
+
'xai/grok-3-mini': { input: 1.25, output: 2.5 }, // served as grok-4.3
|
|
206
|
+
'xai/grok-2-vision': { input: 1.25, output: 2.5 }, // served as grok-4.3
|
|
207
|
+
'xai/grok-3': { input: 1.25, output: 2.5 }, // served as grok-4.3 (was $3/$15)
|
|
186
208
|
'minimax/minimax-m2.5': { input: 0.3, output: 1.2 },
|
|
187
209
|
// K2.x (probed): the bare `kimi`/`k2.*` shortcuts resolve to K3, the
|
|
188
210
|
// explicit ids still answer.
|
|
189
211
|
'moonshot/kimi-k2.7': { input: 0.95, output: 4.0 },
|
|
190
212
|
'moonshot/kimi-k2.6': { input: 0.95, output: 4.0 },
|
|
191
213
|
'moonshot/kimi-k2.5': { input: 0.6, output: 3.0 },
|
|
192
|
-
'nvidia/kimi-k2.5': { input: 0.
|
|
214
|
+
'nvidia/kimi-k2.5': { input: 0.6, output: 3.0 }, // gateway list (falls back to moonshot/kimi-k2.5, same price)
|
|
193
215
|
'zai/glm-5.1-turbo': { input: 1.2, output: 4.0 }, // was a client alias for zai/glm-5-turbo
|
|
194
216
|
};
|
|
195
217
|
export function hasHistoricalPrice(model) { return model in LEGACY_PRICING; }
|
package/dist/router/vision.js
CHANGED
|
@@ -69,7 +69,15 @@ const VISION_MODELS = new Set([
|
|
|
69
69
|
'openai/gpt-6-sol',
|
|
70
70
|
'openai/gpt-6-luna',
|
|
71
71
|
'openai/gpt-5.1',
|
|
72
|
+
// 2026-10-20 catalog sync — every new id the live catalog tags vision.
|
|
73
|
+
'openai/gpt-6.1-sol',
|
|
74
|
+
'google/gemini-3.8-flash',
|
|
75
|
+
'deepseek/deepseek-v4-flash-vision-exp',
|
|
76
|
+
'qwen/qwen3.8-flash',
|
|
77
|
+
'xiaomi/mimo-v2.5',
|
|
78
|
+
'mistral/mistral-large-4',
|
|
72
79
|
// Google — vision baked into every Gemini SKU we surface (flash-lite excepted)
|
|
80
|
+
'google/gemini-4-argon',
|
|
73
81
|
'google/gemini-3.1-pro',
|
|
74
82
|
'google/gemini-3.6-flash',
|
|
75
83
|
'google/gemini-3.5-flash',
|
package/dist/ui/model-picker.js
CHANGED
|
@@ -50,6 +50,9 @@ const LEGACY_SHORTCUTS = {
|
|
|
50
50
|
'gpt-6-astra': 'openai/gpt-6-astra',
|
|
51
51
|
'gpt-6-sol': 'openai/gpt-6-sol',
|
|
52
52
|
'gpt-6-luna': 'openai/gpt-6-luna',
|
|
53
|
+
// GPT-6.1 Sol (live /api/v1/models 2026-10-20, Base + Solana): same $2/$10
|
|
54
|
+
// as GPT-6 Sol with a newer knowledge cutoff. Explicit pin only.
|
|
55
|
+
'gpt-6.1-sol': 'openai/gpt-6.1-sol',
|
|
53
56
|
'gpt-5.1': 'openai/gpt-5.1',
|
|
54
57
|
'gpt-5.6-sol': 'openai/gpt-5.6-sol',
|
|
55
58
|
'gpt-5.6-terra': 'openai/gpt-5.6-terra',
|
|
@@ -104,22 +107,33 @@ const LEGACY_SHORTCUTS = {
|
|
|
104
107
|
gemini: 'google/gemini-3.1-pro',
|
|
105
108
|
'gemini-2.5': 'google/gemini-2.5-pro',
|
|
106
109
|
'gemini-2.5-pro': 'google/gemini-2.5-pro',
|
|
107
|
-
// `flash` follows the newest Flash generation
|
|
108
|
-
//
|
|
109
|
-
//
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
// `flash` follows the newest Flash generation — 3.8 since 2026-10-20, at
|
|
111
|
+
// the same $0.75/$3.75 as 3.6 and live on both chains. 3.6 stays reachable
|
|
112
|
+
// as `gemini-3.6`. 3.5 stays reachable by its explicit id — it is dearer
|
|
113
|
+
// ($1.5/$9) with no capability edge, so nothing should be pinned to it
|
|
114
|
+
// deliberately.
|
|
115
|
+
flash: 'google/gemini-3.8-flash',
|
|
116
|
+
'gemini-flash': 'google/gemini-3.8-flash',
|
|
112
117
|
'gemini-3.6': 'google/gemini-3.6-flash',
|
|
113
118
|
'gemini-3.6-flash': 'google/gemini-3.6-flash',
|
|
114
119
|
'gemini-3.5-flash': 'google/gemini-3.5-flash',
|
|
115
120
|
'gemini-2.5-flash': 'google/gemini-2.5-flash',
|
|
116
121
|
'gemini-3-flash-preview': 'google/gemini-3-flash-preview',
|
|
122
|
+
// Gemini 3.8 Flash (live 2026-10-20, both chains) — same $0.75/$3.75 as 3.6.
|
|
123
|
+
'gemini-3.8': 'google/gemini-3.8-flash',
|
|
124
|
+
'gemini-3.8-flash': 'google/gemini-3.8-flash',
|
|
117
125
|
// Flash Lite — thinking-mode Gemini for high-throughput work. `flash-lite`
|
|
118
126
|
// follows the newest (3.5); 3.1 is cheaper still and stays explicit.
|
|
119
127
|
'flash-lite': 'google/gemini-3.5-flash-lite',
|
|
120
128
|
'gemini-3.5-flash-lite': 'google/gemini-3.5-flash-lite',
|
|
121
129
|
'gemini-3.1-flash-lite': 'google/gemini-3.1-flash-lite',
|
|
122
130
|
'gemini-2.5-flash-lite': 'google/gemini-2.5-flash-lite',
|
|
131
|
+
// Gemini 4 Argon (live 2026-10-20, both chains) — explicit pins only. Bare
|
|
132
|
+
// `gemini` stays on 3.1 Pro until Argon has production history; moving it
|
|
133
|
+
// would change which model (and price) existing users get.
|
|
134
|
+
argon: 'google/gemini-4-argon',
|
|
135
|
+
'gemini-4': 'google/gemini-4-argon',
|
|
136
|
+
'gemini-4-argon': 'google/gemini-4-argon',
|
|
123
137
|
'gemini-3': 'google/gemini-3.1-pro',
|
|
124
138
|
'gemini-3.1': 'google/gemini-3.1-pro',
|
|
125
139
|
// xAI — grok-4.5 is the public flagship since 2026-07-14; `grok` follows it
|
|
@@ -134,22 +148,35 @@ const LEGACY_SHORTCUTS = {
|
|
|
134
148
|
'grok-4.6': 'xai/grok-4.6',
|
|
135
149
|
'grok-4.3': 'xai/grok-4.3',
|
|
136
150
|
'grok-build': 'xai/grok-build-0.1',
|
|
137
|
-
// grok-3 / grok-4-0709 / the grok-4-1-fast pair are
|
|
138
|
-
//
|
|
139
|
-
//
|
|
140
|
-
//
|
|
141
|
-
'grok-3': 'xai/grok-3',
|
|
142
|
-
'grok-4': 'xai/grok-4
|
|
143
|
-
'grok-fast': 'xai/grok-4
|
|
144
|
-
'grok-4.1': 'xai/grok-4
|
|
151
|
+
// grok-3 / grok-4-0709 / the grok-4-1-fast pair are retired at xAI. The
|
|
152
|
+
// gateway pins every one of them to grok-4.3 and bills grok-4.3's rate
|
|
153
|
+
// (blockrun model-maps.ts, "Retired -> grok-4.3"), so these pins name what
|
|
154
|
+
// actually answers. `grok-4` is the generation alias and follows `grok`.
|
|
155
|
+
'grok-3': 'xai/grok-4.3',
|
|
156
|
+
'grok-4': 'xai/grok-4.5',
|
|
157
|
+
'grok-fast': 'xai/grok-4.3',
|
|
158
|
+
'grok-4.1': 'xai/grok-4.3',
|
|
145
159
|
// DeepSeek — paid SKUs route through deepseek/* (gateway aliases serve V4
|
|
146
160
|
// Flash modes upstream); free tier routes through nvidia/*.
|
|
147
|
-
deepseek: 'deepseek/deepseek-
|
|
161
|
+
deepseek: 'deepseek/deepseek-v4.1-flash', // V4.1 Flash (paid, $0.14/$0.28)
|
|
148
162
|
r1: 'deepseek/deepseek-reasoner', // V4 Flash Reasoner (paid)
|
|
149
163
|
// V4 Pro: paid flagship, 1.6T MoE / 49B active, 1M ctx, $1.32/$3.96 (live 2026-10-02).
|
|
150
164
|
'deepseek-v4-pro': 'deepseek/deepseek-v4-pro',
|
|
151
165
|
'dsv4-pro': 'deepseek/deepseek-v4-pro',
|
|
152
166
|
'v4-pro': 'deepseek/deepseek-v4-pro',
|
|
167
|
+
// V4.1 Flash (live on Base and Solana 2026-10-20, $0.14/$0.28): the
|
|
168
|
+
// gateway's own name for the model deepseek-chat also serves — same
|
|
169
|
+
// upstream, same price, same non-thinking default. `deepseek` points here
|
|
170
|
+
// now that both chains list it (the `glm` rule). NOTE `deepseek-v4-flash` /
|
|
171
|
+
// `dsv4` are FREE aliases (below) and must not move to this paid id.
|
|
172
|
+
'deepseek-v4.1-flash': 'deepseek/deepseek-v4.1-flash',
|
|
173
|
+
'deepseek-v4.1': 'deepseek/deepseek-v4.1-flash',
|
|
174
|
+
'v4.1-flash': 'deepseek/deepseek-v4.1-flash',
|
|
175
|
+
// V4 Flash Vision (experimental, live 2026-10-20): the paid DeepSeek SKU
|
|
176
|
+
// that takes images, $0.30/$1.20. Names match the shared catalog policy.
|
|
177
|
+
'deepseek-v4-flash-vision-exp': 'deepseek/deepseek-v4-flash-vision-exp',
|
|
178
|
+
'deepseek-vision': 'deepseek/deepseek-v4-flash-vision-exp',
|
|
179
|
+
'v4-flash-vision': 'deepseek/deepseek-v4-flash-vision-exp',
|
|
153
180
|
// The free nvidia/deepseek-v4-flash SKU was EOL'd by the gateway (410).
|
|
154
181
|
// Point the deepseek-free aliases at the current free default so muscle
|
|
155
182
|
// memory keeps working without handing back a dead id.
|
|
@@ -192,12 +219,17 @@ const LEGACY_SHORTCUTS = {
|
|
|
192
219
|
omni: FREE_DEFAULT_MODEL,
|
|
193
220
|
'free-omni': FREE_DEFAULT_MODEL,
|
|
194
221
|
'nano-omni': FREE_DEFAULT_MODEL,
|
|
195
|
-
//
|
|
196
|
-
//
|
|
197
|
-
|
|
198
|
-
|
|
222
|
+
// nemotron-3-nano-30b was delisted by the gateway on 2026-09-08 (NVIDIA
|
|
223
|
+
// deprovisioned it), so `nano-30b` joins the retired-free-id pattern.
|
|
224
|
+
'nano-30b': FREE_DEFAULT_MODEL,
|
|
225
|
+
// Explicit pins to other live free ids (Base + Solana, 2026-10-20) — they
|
|
226
|
+
// resolve to the id the user typed, never to the default.
|
|
199
227
|
laguna: 'poolside/laguna-xs-2.1',
|
|
200
228
|
'ultra-550b': 'nvidia/nemotron-3-ultra-550b',
|
|
229
|
+
// Meta's Muse Glimmer 30B, free on NVIDIA (gateway 2026-10-02). A reasoning
|
|
230
|
+
// model: give it a real max_tokens budget or it answers blank.
|
|
231
|
+
'muse-glimmer': 'nvidia/muse-glimmer-30b',
|
|
232
|
+
'muse-glimmer-30b': 'nvidia/muse-glimmer-30b',
|
|
201
233
|
// Maverick left the gateway catalog on/before 2026-07-14 and the free pool
|
|
202
234
|
// silently substitutes for it, so pointing users at it would promise a model
|
|
203
235
|
// they don't get. Resolve to the current free default instead.
|
|
@@ -216,6 +248,13 @@ const LEGACY_SHORTCUTS = {
|
|
|
216
248
|
'qwen-max': 'qwen/qwen3.7-max',
|
|
217
249
|
'qwen3.7-max': 'qwen/qwen3.7-max',
|
|
218
250
|
'qwen-3.7-max': 'qwen/qwen3.7-max',
|
|
251
|
+
// Qwen 3.8 (live 2026-10-20, both chains). Max is $2/$6, Flash $0.15/$0.47
|
|
252
|
+
// and takes images. Explicit pins — `qwen-max` / `qwen-flash` stay on 3.7.
|
|
253
|
+
'qwen3.8-max': 'qwen/qwen3.8-max',
|
|
254
|
+
'qwen-3.8-max': 'qwen/qwen3.8-max',
|
|
255
|
+
'qwen3.8-flash': 'qwen/qwen3.8-flash',
|
|
256
|
+
'qwen-3.8-flash': 'qwen/qwen3.8-flash',
|
|
257
|
+
'qwen-vision': 'qwen/qwen3.8-flash',
|
|
219
258
|
// Plus and Flash round out the paid Qwen line — both 1M context with
|
|
220
259
|
// reasoning. Flash at $0.03/$0.13 is the cheapest paid model on the gateway.
|
|
221
260
|
'qwen-plus': 'qwen/qwen3.7-plus',
|
|
@@ -223,16 +262,13 @@ const LEGACY_SHORTCUTS = {
|
|
|
223
262
|
'qwen-flash': 'qwen/qwen3.7-flash',
|
|
224
263
|
'qwen3.7-flash': 'qwen/qwen3.7-flash',
|
|
225
264
|
// GLM-5.3 (2026-08) is Z.AI's flagship — same $1.4/$4.4 as 5.2 with 1M
|
|
226
|
-
// context and always-on reasoning
|
|
227
|
-
// (
|
|
228
|
-
//
|
|
229
|
-
//
|
|
230
|
-
//
|
|
231
|
-
//
|
|
232
|
-
|
|
233
|
-
// on `/model glm`. 5.2 is on both, identically priced, one generation back.
|
|
234
|
-
// Promote this line the day 5.3 lands on Solana.
|
|
235
|
-
glm: 'zai/glm-5.2',
|
|
265
|
+
// context and always-on reasoning. It shipped Base-only, so `glm` held at 5.2
|
|
266
|
+
// (a bare alias has to resolve on BOTH chains, or every Solana user gets an
|
|
267
|
+
// HTTP 400 on `/model glm`) with a note to promote it the day 5.3 reached
|
|
268
|
+
// Solana. It has: sol.blockrun.ai lists zai/glm-5.3 at $1.4/$4.4 (verified
|
|
269
|
+
// 2026-10-20), so `glm` / `glm5` now follow the flagship like `gpt`, `grok`
|
|
270
|
+
// and `gemini`. 5.2 stays reachable as `glm-5.2`.
|
|
271
|
+
glm: 'zai/glm-5.3',
|
|
236
272
|
'glm-5': 'zai/glm-5',
|
|
237
273
|
'glm-5.3': 'zai/glm-5.3',
|
|
238
274
|
// GLM-5.3 Flash (2026-08-29 catalog sync): 1M ctx, vision, $0.15/$0.5.
|
|
@@ -243,13 +279,20 @@ const LEGACY_SHORTCUTS = {
|
|
|
243
279
|
// routes for anyone who wants the 200K-context build explicitly.
|
|
244
280
|
'glm-5.1': 'zai/glm-5.1',
|
|
245
281
|
'glm-turbo': 'zai/glm-5-turbo',
|
|
246
|
-
'glm5': 'zai/glm-5.
|
|
282
|
+
'glm5': 'zai/glm-5.3',
|
|
247
283
|
// Tencent + Xiaomi joined the gateway in 2026-08 — cheap reasoning at long
|
|
248
|
-
// context, below the frontier tier.
|
|
249
|
-
|
|
250
|
-
tencent
|
|
284
|
+
// context, below the frontier tier. tencent/hy3 was retired 2026-09-24 (the
|
|
285
|
+
// gateway now redirects it to qwen3.7-flash); Hy4 Preview is Tencent's live
|
|
286
|
+
// model, so `hy3` / `tencent` follow it the way the K2.x pins follow K3.
|
|
287
|
+
hy3: 'tencent/hy4-preview',
|
|
288
|
+
tencent: 'tencent/hy4-preview',
|
|
289
|
+
hy4: 'tencent/hy4-preview',
|
|
290
|
+
'hy4-preview': 'tencent/hy4-preview',
|
|
251
291
|
mimo: 'xiaomi/mimo-v2.5-pro',
|
|
252
292
|
'mimo-v2.5-pro': 'xiaomi/mimo-v2.5-pro',
|
|
293
|
+
// MiMo V2.5 (non-Pro): cheaper and the vision-capable one ($0.14/$0.28).
|
|
294
|
+
'mimo-v2.5': 'xiaomi/mimo-v2.5',
|
|
295
|
+
'mimo-vision': 'xiaomi/mimo-v2.5',
|
|
253
296
|
xiaomi: 'xiaomi/mimo-v2.5-pro',
|
|
254
297
|
kimi: 'moonshot/kimi-k3',
|
|
255
298
|
k3: 'moonshot/kimi-k3',
|
|
@@ -260,6 +303,16 @@ const LEGACY_SHORTCUTS = {
|
|
|
260
303
|
'k2.6': 'moonshot/kimi-k3',
|
|
261
304
|
'kimi-k2.5': 'moonshot/kimi-k3',
|
|
262
305
|
'k2.5': 'moonshot/kimi-k3',
|
|
306
|
+
// Mistral Large 4 (live 2026-10-20, both chains): $0.68/$2.09, reasoning +
|
|
307
|
+
// vision. Bare `mistral` is safe to take — `mistral-small` / `mistral-nemotron`
|
|
308
|
+
// are the free aliases and stay free.
|
|
309
|
+
mistral: 'mistral/mistral-large-4',
|
|
310
|
+
'mistral-large': 'mistral/mistral-large-4',
|
|
311
|
+
'mistral-large-4': 'mistral/mistral-large-4',
|
|
312
|
+
// Poolside Laguna S 2.1 — the PAID sibling of the free laguna-xs ($0.09/$0.18).
|
|
313
|
+
// `laguna` stays on the free XS model: a free alias never moves to a paid one.
|
|
314
|
+
'laguna-s': 'poolside/laguna-s-2.1',
|
|
315
|
+
'laguna-s-2.1': 'poolside/laguna-s-2.1',
|
|
263
316
|
};
|
|
264
317
|
/**
|
|
265
318
|
* Resolve a model name — supports shortcuts. Returns the canonical model id.
|
|
@@ -320,6 +373,9 @@ const PROVIDER_ORDER = [
|
|
|
320
373
|
'deepseek',
|
|
321
374
|
'tencent',
|
|
322
375
|
'xiaomi',
|
|
376
|
+
'mistral',
|
|
377
|
+
'poolside',
|
|
378
|
+
'cohere',
|
|
323
379
|
'nvidia',
|
|
324
380
|
];
|
|
325
381
|
const PROVIDER_LABELS = {
|
|
@@ -334,6 +390,9 @@ const PROVIDER_LABELS = {
|
|
|
334
390
|
deepseek: 'DeepSeek',
|
|
335
391
|
tencent: 'Tencent / Hunyuan',
|
|
336
392
|
xiaomi: 'Xiaomi / MiMo',
|
|
393
|
+
mistral: 'Mistral',
|
|
394
|
+
poolside: 'Poolside / Laguna',
|
|
395
|
+
cohere: 'Cohere',
|
|
337
396
|
nvidia: 'Free / NVIDIA',
|
|
338
397
|
};
|
|
339
398
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockrun/franklin",
|
|
3
|
-
"version": "3.49.
|
|
3
|
+
"version": "3.49.14",
|
|
4
4
|
"description": "Franklin Agent — The AI agent with a wallet. Spends USDC autonomously to get real work done. Pay per action, no subscriptions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@blockrun/llm": "^3.19.1",
|
|
79
|
-
"@blockrun/model-catalog": "https://codeload.github.com/BlockRunAI/model-catalog/tar.gz/
|
|
80
|
-
"@blockrun/router-core": "https://codeload.github.com/BlockRunAI/router-core/tar.gz/
|
|
79
|
+
"@blockrun/model-catalog": "https://codeload.github.com/BlockRunAI/model-catalog/tar.gz/b95efe2f025c9968742e6479bc9ec71b6a40c0f4",
|
|
80
|
+
"@blockrun/router-core": "https://codeload.github.com/BlockRunAI/router-core/tar.gz/2cd5a1026f755cd39a3f0d6e61cab23a5ad391a9",
|
|
81
81
|
"@colbymchenry/codegraph": "^1.5.0",
|
|
82
82
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
83
83
|
"@polymarket/builder-relayer-client": "^0.0.10",
|