Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Suppress model-switch warning on empty chat threads
Daniel Han042598d9f1cf
diff --git a/studio/frontend/src/features/chat/chat-page.tsx b/studio/frontend/src/features/chat/chat-page.tsxindex 0e06d89b286..bd506f6b425 100644--- a/studio/frontend/src/features/chat/chat-page.tsx+++ b/studio/frontend/src/features/chat/chat-page.tsx@@ -352,6 +352,18 @@ export function ChatPage(): ReactElement {.where("threadId").equals(activeThreadId).toArray();+ if (messages.length === 0) {+ // No history -- just switch silently+ await db.threads.update(activeThreadId, { modelId: value });+ await selectModel({+ id: value,+ isLora: meta?.isLora,+ ggufVariant: meta?.ggufVariant,+ isDownloaded: meta?.isDownloaded,+ expectedBytes: meta?.expectedBytes,+ });+ return;+ }const hasImage = messages.some(messageHasImage);const targetModel = modelsFromStore.find((model) => model.id === value);const nonVisionWithImages = hasImage && targetModel?.isVision === false;