Skip to content

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.

Desktop: don't send startup requests to an unvalidated port 8888 (#7852)

Nilay2e5342eebb0f
diff --git a/studio/frontend/src/lib/api-base.ts b/studio/frontend/src/lib/api-base.ts
index 06bb4917599..33efafdf543 100644
--- a/studio/frontend/src/lib/api-base.ts
+++ b/studio/frontend/src/lib/api-base.ts
@@ -12,10 +12,10 @@ function detectTauri(): boolean {
}
const isTauri = detectTauri()
-const isViteDev = import.meta.env.DEV
-if (isTauri && !isViteDev) {
- apiBase = 'http://127.0.0.1:8888'
+if (isTauri) {
+ // never connects; real port arrives via server-port
+ apiBase = 'http://127.0.0.1:0'
}
const initialApiBase = apiBase