@blockrun/franklin 3.27.0 → 3.27.2
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/loop.js +1 -1
- package/dist/learnings/extractor.js +1 -1
- package/dist/router/index.js +10 -7
- package/dist/tools/moa.js +1 -1
- package/dist/ui/model-picker.js +4 -4
- package/package.json +1 -1
package/dist/agent/loop.js
CHANGED
|
@@ -1348,7 +1348,7 @@ export async function interactiveSession(config, getUserInput, onEvent, onAbortR
|
|
|
1348
1348
|
const hasTools = responseParts.some(p => p.type === 'tool_use');
|
|
1349
1349
|
const hasThinking = responseParts.some(p => p.type === 'thinking');
|
|
1350
1350
|
if (!hasText && !hasTools && !hasThinking) {
|
|
1351
|
-
const EMPTY_FALLBACK_MODELS = ['nvidia/qwen3-coder-480b', 'nvidia/
|
|
1351
|
+
const EMPTY_FALLBACK_MODELS = ['nvidia/qwen3-coder-480b', 'nvidia/llama-4-maverick', 'zai/glm-5.1'];
|
|
1352
1352
|
const nextModel = EMPTY_FALLBACK_MODELS.find(m => m !== config.model && !turnFailedModels.has(m));
|
|
1353
1353
|
if (nextModel && recoveryAttempts < 2) {
|
|
1354
1354
|
recoveryAttempts++;
|
|
@@ -11,7 +11,7 @@ import { loadLearnings, mergeLearning, saveLearnings, loadSkills, saveSkill } fr
|
|
|
11
11
|
const EXTRACTION_MODELS = [
|
|
12
12
|
'nvidia/qwen3-coder-480b', // Agent-tested free model; strong at JSON tasks
|
|
13
13
|
'nvidia/llama-4-maverick', // Agent-tested fallback
|
|
14
|
-
'nvidia/
|
|
14
|
+
'nvidia/deepseek-v4-flash', // 1M-ctx fallback (was glm-4.7 — NVIDIA NIM hung 2026-06-07)
|
|
15
15
|
];
|
|
16
16
|
const VALID_CATEGORIES = new Set([
|
|
17
17
|
'language', 'model_preference', 'tool_pattern', 'coding_style',
|
package/dist/router/index.js
CHANGED
|
@@ -575,16 +575,19 @@ export function getFallbackChain(tier, profile = 'auto') {
|
|
|
575
575
|
// models was being handed to qwen3-coder-480b — a coder model trying to
|
|
576
576
|
// do technical analysis. Reported 2026-05-03 with a markets question
|
|
577
577
|
// routed to a coder model on Sonnet failure.
|
|
578
|
+
// 2026-06-07: nvidia/glm-4.7 dropped from every chain — NVIDIA NIM hung, the
|
|
579
|
+
// gateway redirects it to qwen3-coder-480b (already present here), so routing to
|
|
580
|
+
// it just wasted a slot and mislabeled the model. qwen3-coder-480b + llama-4-
|
|
581
|
+
// maverick are both healthy and cover all categories.
|
|
578
582
|
const FREE_MODELS_BY_CATEGORY = {
|
|
579
|
-
coding: ['nvidia/qwen3-coder-480b', 'nvidia/
|
|
580
|
-
trading: ['nvidia/
|
|
581
|
-
research: ['nvidia/
|
|
582
|
-
reasoning: ['nvidia/
|
|
583
|
-
chat: ['nvidia/llama-4-maverick', 'nvidia/
|
|
584
|
-
creative: ['nvidia/llama-4-maverick', 'nvidia/
|
|
583
|
+
coding: ['nvidia/qwen3-coder-480b', 'nvidia/llama-4-maverick'],
|
|
584
|
+
trading: ['nvidia/llama-4-maverick', 'nvidia/qwen3-coder-480b'],
|
|
585
|
+
research: ['nvidia/llama-4-maverick', 'nvidia/qwen3-coder-480b'],
|
|
586
|
+
reasoning: ['nvidia/llama-4-maverick', 'nvidia/qwen3-coder-480b'],
|
|
587
|
+
chat: ['nvidia/llama-4-maverick', 'nvidia/qwen3-coder-480b'],
|
|
588
|
+
creative: ['nvidia/llama-4-maverick', 'nvidia/qwen3-coder-480b'],
|
|
585
589
|
};
|
|
586
590
|
const DEFAULT_FREE_CHAIN = [
|
|
587
|
-
'nvidia/glm-4.7',
|
|
588
591
|
'nvidia/llama-4-maverick',
|
|
589
592
|
'nvidia/qwen3-coder-480b',
|
|
590
593
|
];
|
package/dist/tools/moa.js
CHANGED
|
@@ -16,7 +16,7 @@ import { ModelClient } from '../agent/llm.js';
|
|
|
16
16
|
const REFERENCE_MODELS = [
|
|
17
17
|
'nvidia/qwen3-coder-480b', // Free, agent-tested coding
|
|
18
18
|
'nvidia/llama-4-maverick', // Free, agent-tested general chat
|
|
19
|
-
'nvidia/
|
|
19
|
+
'nvidia/deepseek-v4-flash', // Free, 1M ctx (was glm-4.7 — NVIDIA NIM hung 2026-06-07)
|
|
20
20
|
'google/gemini-2.5-flash', // Fast, cheap
|
|
21
21
|
'deepseek/deepseek-chat', // Cheap, good reasoning
|
|
22
22
|
];
|
package/dist/ui/model-picker.js
CHANGED
|
@@ -72,10 +72,10 @@ export const MODEL_SHORTCUTS = {
|
|
|
72
72
|
'deepseek-v4': 'nvidia/deepseek-v4-flash',
|
|
73
73
|
'deepseek-v4-flash': 'nvidia/deepseek-v4-flash',
|
|
74
74
|
dsv4: 'nvidia/deepseek-v4-flash',
|
|
75
|
-
// V3.2
|
|
76
|
-
//
|
|
77
|
-
'deepseek-v3.2': 'nvidia/deepseek-
|
|
78
|
-
'deepseek-v3': 'nvidia/deepseek-
|
|
75
|
+
// V3.2 NVIDIA NIM hung (server redirects to V4 Flash) — point the aliases
|
|
76
|
+
// straight at the live V4 Flash so the picker doesn't hand back a dead id.
|
|
77
|
+
'deepseek-v3.2': 'nvidia/deepseek-v4-flash',
|
|
78
|
+
'deepseek-v3': 'nvidia/deepseek-v4-flash',
|
|
79
79
|
// Free (agent-tested BlockRun gateway free tier — refreshed 2026-04)
|
|
80
80
|
free: 'nvidia/qwen3-coder-480b',
|
|
81
81
|
glm4: 'nvidia/qwen3-coder-480b',
|
package/package.json
CHANGED