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: fix api-keys access + refresh (#5005)
Wasim Yousef Said97eafd999e4e
diff --git a/studio/backend/main.py b/studio/backend/main.pyindex c2c0a0b6e40..8a40791c06a 100644--- a/studio/backend/main.py+++ b/studio/backend/main.py@@ -353,7 +353,7 @@ def setup_frontend(app: FastAPI, build_path: Path):@app.get("/{full_path:path}")async def serve_frontend(full_path: str):- if full_path.startswith("api"):+ if full_path in {"api", "v1"} or full_path.startswith(("api/", "v1/")):return {"error": "API endpoint not found"}file_path = (build_path / full_path).resolve()diff --git a/studio/frontend/src/app/routes/__root.tsx b/studio/frontend/src/app/routes/__root.tsxindex bac92053033..e1bbdc03f74 100644--- a/studio/frontend/src/app/routes/__root.tsx+++ b/studio/frontend/src/app/routes/__root.tsx@@ -13,7 +13,14 @@ import { AnimatePresence, motion } from "motion/react";import { Suspense } from "react";import { AppProvider } from "../provider";-const CHAT_ONLY_ALLOWED = new Set(["/", "/chat", "/login", "/signup", "/change-password"]);+const CHAT_ONLY_ALLOWED = new Set([+ "/",+ "/chat",+ "/login",+ "/signup",+ "/change-password",+ "/api-keys",+]);function isChatOnlyAllowed(pathname: string): boolean {if (CHAT_ONLY_ALLOWED.has(pathname)) return true;