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
Studio: also persist external checkpoint when picker calls setParams (#5700)
Daniel Han9d3ad3ba12e8
diff --git a/studio/frontend/src/features/chat/stores/chat-runtime-store.ts b/studio/frontend/src/features/chat/stores/chat-runtime-store.tsindex 287dd1fa8b1..1f7442ccd29 100644--- a/studio/frontend/src/features/chat/stores/chat-runtime-store.ts+++ b/studio/frontend/src/features/chat/stores/chat-runtime-store.ts@@ -627,6 +627,17 @@ export const useChatRuntimeStore = create<ChatRuntimeStore>((set, get) => ({if (state.settingsHydrated && hasKeys(changedParams)) {saveSettingsPatch({ inferenceParams: changedParams });}+ // chat-page picks an external model by mutating `params.checkpoint`+ // through this setter (not through `setCheckpoint`), so the+ // localStorage mirror needs to be refreshed here too. Otherwise+ // the persisted slot stays empty and a refresh falls back to+ // whatever the backend's `/api/inference/status.active_model`+ // returns -- usually the previously loaded local model.+ if (params.checkpoint !== state.params.checkpoint) {+ saveLastExternalCheckpoint(+ isExternalModelId(params.checkpoint) ? params.checkpoint : null,+ );+ }return { params };}),setCustomPresets: (customPresets) =>