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.

updated fetch to auth fetch in the frontend

samitece51dca1381
diff --git a/studio/frontend/src/features/training/api/datasets-api.ts b/studio/frontend/src/features/training/api/datasets-api.ts
index 7bba75ca381..b2348abed8b 100644
--- a/studio/frontend/src/features/training/api/datasets-api.ts
+++ b/studio/frontend/src/features/training/api/datasets-api.ts
@@ -1,3 +1,4 @@
+import { authFetch } from "@/features/auth";
import type { CheckFormatResponse } from "../types/datasets";
type CheckDatasetFormatArgs = {
@@ -15,7 +16,7 @@ export async function checkDatasetFormat({
split,
isVlm,
}: CheckDatasetFormatArgs): Promise<CheckFormatResponse> {
- const res = await fetch("/api/datasets/check-format", {
+ const res = await authFetch("/api/datasets/check-format", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({