@blockrun/franklin 3.9.1 → 3.9.3
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 +6 -0
- package/dist/pricing.js +2 -0
- package/dist/proxy/server.js +3 -2
- package/dist/ui/model-picker.js +12 -11
- package/package.json +1 -1
package/dist/agent/optimize.js
CHANGED
|
@@ -35,6 +35,12 @@ const MODEL_MAX_OUTPUT = {
|
|
|
35
35
|
'google/gemini-2.5-pro': 65_536,
|
|
36
36
|
'google/gemini-2.5-flash': 65_536,
|
|
37
37
|
'deepseek/deepseek-chat': 8_192,
|
|
38
|
+
// Kimi K2.6 supports 65K output per the BlockRun gateway model entry
|
|
39
|
+
// (moonshot/kimi-k2.6 max_output: 65536). Without this entry the default
|
|
40
|
+
// 16K cap left users with 4× headroom on the table for long-form coding
|
|
41
|
+
// outputs and dashboard scaffolds the model can otherwise emit in a
|
|
42
|
+
// single response.
|
|
43
|
+
'moonshot/kimi-k2.6': 65_536,
|
|
38
44
|
};
|
|
39
45
|
/** Get max output tokens for a model */
|
|
40
46
|
export function getMaxOutputTokens(model) {
|
package/dist/pricing.js
CHANGED
|
@@ -73,6 +73,8 @@ export const MODEL_PRICING = {
|
|
|
73
73
|
'minimax/minimax-m2.5': { input: 0.3, output: 1.2 },
|
|
74
74
|
// Moonshot
|
|
75
75
|
'moonshot/kimi-k2.6': { input: 0.95, output: 4.0 },
|
|
76
|
+
// Retired (kept for legacy session-cost records; the gateway no longer
|
|
77
|
+
// serves these and the picker shortcuts now resolve to K2.6).
|
|
76
78
|
'moonshot/kimi-k2.5': { input: 0.6, output: 3.0 },
|
|
77
79
|
'nvidia/kimi-k2.5': { input: 0.55, output: 2.5 },
|
|
78
80
|
// PROMOTION (active ~2026-04): flat $0.001/call for all GLM models
|
package/dist/proxy/server.js
CHANGED
|
@@ -175,8 +175,9 @@ const MODEL_SHORTCUTS = {
|
|
|
175
175
|
'glm5': 'zai/glm-5.1',
|
|
176
176
|
kimi: 'moonshot/kimi-k2.6',
|
|
177
177
|
'k2.6': 'moonshot/kimi-k2.6',
|
|
178
|
-
|
|
179
|
-
'k2.5': 'moonshot/kimi-k2.
|
|
178
|
+
// K2.5 retired by the gateway — aliases resolve to K2.6 for muscle memory.
|
|
179
|
+
'kimi-k2.5': 'moonshot/kimi-k2.6',
|
|
180
|
+
'k2.5': 'moonshot/kimi-k2.6',
|
|
180
181
|
};
|
|
181
182
|
// Model pricing now uses shared source from src/pricing.ts
|
|
182
183
|
function detectModelSwitch(parsed) {
|
package/dist/ui/model-picker.js
CHANGED
|
@@ -79,8 +79,11 @@ export const MODEL_SHORTCUTS = {
|
|
|
79
79
|
'glm5': 'zai/glm-5.1',
|
|
80
80
|
kimi: 'moonshot/kimi-k2.6',
|
|
81
81
|
'k2.6': 'moonshot/kimi-k2.6',
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
// K2.5 was retired by the gateway in favor of K2.6 (256K ctx, vision +
|
|
83
|
+
// reasoning, $0.95 in / $4 out — strictly better in every dimension).
|
|
84
|
+
// The aliases stay so muscle memory keeps working but resolve to K2.6.
|
|
85
|
+
'kimi-k2.5': 'moonshot/kimi-k2.6',
|
|
86
|
+
'k2.5': 'moonshot/kimi-k2.6',
|
|
84
87
|
};
|
|
85
88
|
/**
|
|
86
89
|
* Resolve a model name — supports shortcuts.
|
|
@@ -115,26 +118,26 @@ export const PICKER_CATEGORIES = [
|
|
|
115
118
|
],
|
|
116
119
|
},
|
|
117
120
|
{
|
|
121
|
+
// Picker trim (v3.9.3): hide superseded / awkward-middle / niche-premium
|
|
122
|
+
// entries to bring choice paralysis down. Their shortcuts (`opus-4.6`,
|
|
123
|
+
// `gpt-5.4`, `gpt-5.4-pro`, `grok`, `o1`, `o4`, `nano`) all stay live in
|
|
124
|
+
// MODEL_SHORTCUTS, so muscle memory keeps working — they just aren't
|
|
125
|
+
// listed in the visible picker. Same pattern v3.9.0 used to retire dead
|
|
126
|
+
// free-tier entries and v3.9.2 used to retire Kimi K2.5.
|
|
118
127
|
category: '✨ Premium frontier',
|
|
119
128
|
models: [
|
|
120
129
|
{ id: 'anthropic/claude-opus-4.7', shortcut: 'opus', label: 'Claude Opus 4.7', price: '$5/$25', highlight: true },
|
|
121
130
|
{ id: 'anthropic/claude-sonnet-4.6', shortcut: 'sonnet', label: 'Claude Sonnet 4.6', price: '$3/$15' },
|
|
122
|
-
{ id: 'anthropic/claude-opus-4.6', shortcut: 'opus-4.6', label: 'Claude Opus 4.6', price: '$5/$25' },
|
|
123
131
|
{ id: 'openai/gpt-5.5', shortcut: 'gpt', label: 'GPT-5.5', price: '$5/$30', highlight: true },
|
|
124
|
-
{ id: 'openai/gpt-5.4', shortcut: 'gpt-5.4', label: 'GPT-5.4', price: '$2.5/$15' },
|
|
125
|
-
{ id: 'openai/gpt-5.4-pro', shortcut: 'gpt-5.4-pro', label: 'GPT-5.4 Pro', price: '$30/$180' },
|
|
126
|
-
{ id: 'google/gemini-2.5-pro', shortcut: 'gemini', label: 'Gemini 2.5 Pro', price: '$1.25/$10' },
|
|
127
132
|
{ id: 'google/gemini-3.1-pro', shortcut: 'gemini-3', label: 'Gemini 3.1 Pro', price: '$2/$12' },
|
|
133
|
+
{ id: 'google/gemini-2.5-pro', shortcut: 'gemini', label: 'Gemini 2.5 Pro', price: '$1.25/$10' },
|
|
128
134
|
{ id: 'xai/grok-4-0709', shortcut: 'grok-4', label: 'Grok 4', price: '$0.2/$1.5' },
|
|
129
|
-
{ id: 'xai/grok-3', shortcut: 'grok', label: 'Grok 3', price: '$3/$15' },
|
|
130
135
|
],
|
|
131
136
|
},
|
|
132
137
|
{
|
|
133
138
|
category: '🔬 Reasoning',
|
|
134
139
|
models: [
|
|
135
140
|
{ id: 'openai/o3', shortcut: 'o3', label: 'O3', price: '$2/$8' },
|
|
136
|
-
{ id: 'openai/o4-mini', shortcut: 'o4', label: 'O4 Mini', price: '$1.1/$4.4' },
|
|
137
|
-
{ id: 'openai/o1', shortcut: 'o1', label: 'O1', price: '$15/$60' },
|
|
138
141
|
{ id: 'openai/gpt-5.3-codex', shortcut: 'codex', label: 'GPT-5.3 Codex', price: '$1.75/$14' },
|
|
139
142
|
{ id: 'deepseek/deepseek-reasoner', shortcut: 'r1', label: 'DeepSeek R1', price: '$0.28/$0.42' },
|
|
140
143
|
{ id: 'xai/grok-4-1-fast-reasoning', shortcut: 'grok-fast', label: 'Grok 4.1 Fast R.', price: '$0.2/$0.5' },
|
|
@@ -145,11 +148,9 @@ export const PICKER_CATEGORIES = [
|
|
|
145
148
|
models: [
|
|
146
149
|
{ id: 'anthropic/claude-haiku-4.5-20251001', shortcut: 'haiku', label: 'Claude Haiku 4.5', price: '$1/$5' },
|
|
147
150
|
{ id: 'openai/gpt-5-mini', shortcut: 'mini', label: 'GPT-5 Mini', price: '$0.25/$2' },
|
|
148
|
-
{ id: 'openai/gpt-5-nano', shortcut: 'nano', label: 'GPT-5 Nano', price: '$0.05/$0.4' },
|
|
149
151
|
{ id: 'google/gemini-2.5-flash', shortcut: 'flash', label: 'Gemini 2.5 Flash', price: '$0.3/$2.5' },
|
|
150
152
|
{ id: 'deepseek/deepseek-chat', shortcut: 'deepseek', label: 'DeepSeek V3', price: '$0.28/$0.42' },
|
|
151
153
|
{ id: 'moonshot/kimi-k2.6', shortcut: 'kimi', label: 'Kimi K2.6', price: '$0.95/$4' },
|
|
152
|
-
{ id: 'moonshot/kimi-k2.5', shortcut: 'kimi-k2.5', label: 'Kimi K2.5 (legacy)', price: '$0.6/$3' },
|
|
153
154
|
{ id: 'minimax/minimax-m2.7', shortcut: 'minimax', label: 'Minimax M2.7', price: '$0.3/$1.2' },
|
|
154
155
|
],
|
|
155
156
|
},
|
package/package.json
CHANGED