From f717edeacb93424f2a63a12870b48fc13730149e Mon Sep 17 00:00:00 2001 From: tcpsyn Date: Sat, 21 Mar 2026 02:45:21 -0600 Subject: [PATCH] =?UTF-8?q?Fix=20style=20map=20key=20mismatch=20=E2=80=94?= =?UTF-8?q?=20API=20uses=20'map',=20frontend=20was=20using=20'style=5Fmap'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/js/app.js b/frontend/js/app.js index 4a28fdf..06753a0 100644 --- a/frontend/js/app.js +++ b/frontend/js/app.js @@ -1363,7 +1363,7 @@ async function loadCallerModels() { strategy: data.strategy || 'single', pool: data.pool || [], fallback: data.fallback || '', - style_map: data.style_map || {}, + style_map: data.map || data.style_map || {}, }; callerModelAssignments = data.assignments || {}; updateCallerModelUI(); @@ -1502,7 +1502,7 @@ async function saveCallerModels() { const res = await fetch('/api/caller-models', { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ strategy, pool, fallback, style_map }) + body: JSON.stringify({ strategy, pool, fallback, map: style_map }) }); if (!res.ok) throw new Error(res.status); callerModelSettings = { strategy, pool, fallback, style_map };