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.

920 B
Raw Blame
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0

/** Longest prefix first: the recipe editor sits under the Data Recipes route. */
export const TOUR_ROUTES: ReadonlyArray<{ prefix: string; id: string }> = [
  { prefix: "/data-recipes/", id: "recipe-editor" },
  { prefix: "/data-recipes", id: "data-recipes" },
  { prefix: "/api-monitor", id: "api-monitor" },
  { prefix: "/projects", id: "projects" },
  { prefix: "/studio", id: "studio" },
  { prefix: "/export", id: "export" },
  { prefix: "/images", id: "images" },
  { prefix: "/video", id: "video" },
  { prefix: "/audio", id: "audio" },
  { prefix: "/chat", id: "chat" },
  { prefix: "/hub", id: "hub" },
];

export function getTourId(pathname: string): string | null {
  return (
    TOUR_ROUTES.find((route) => pathname.startsWith(route.prefix))?.id ?? null
  );
}