fix(webui): only highlight actual model fallbacks

This commit is contained in:
chengyongru
2026-08-21 16:49:30 +08:00
committed by chengyongru
parent 761e95b659
commit 7f97373490
9 changed files with 26 additions and 2 deletions
+1 -1
View File
@@ -959,7 +959,7 @@ export function ThreadShell({
setFallbackModelName(null);
return client.onChat(chatId, (event) => {
if (event.event !== "turn_model_updated") return;
setFallbackModelName(event.model_name);
setFallbackModelName(event.is_fallback ? event.model_name : null);
});
}, [chatId, client]);