Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

feat: launches playground (#1799)

Hassieb Pakzad6161d1cf715f
diff --git a/web/src/components/layouts/routes.ts b/web/src/components/layouts/routes.ts
index 328e079f5c..dc33eb5506 100644
--- a/web/src/components/layouts/routes.ts
+++ b/web/src/components/layouts/routes.ts
@@ -94,7 +94,6 @@ export const ROUTES: Route[] = [
name: "Playground",
pathname: "/project/[projectId]/playground",
icon: TerminalIcon,
- featureFlag: "playground",
cloudOnly: true,
label: "Beta",
},
diff --git a/web/src/ee/features/playground/page/index.tsx b/web/src/ee/features/playground/page/index.tsx
index 8c1ae927cb..0c45551890 100644
--- a/web/src/ee/features/playground/page/index.tsx
+++ b/web/src/ee/features/playground/page/index.tsx
@@ -10,6 +10,7 @@ export default function PlaygroundPage() {
title="Playground"
help={{
description: "A sandbox to test and iterate your prompts",
+ href: "https://docs.langfuse.com/docs/playground",
}}
featureBetaURL="https://github.com/orgs/langfuse/discussions/1170"
/>
diff --git a/web/src/features/feature-flags/available-flags.ts b/web/src/features/feature-flags/available-flags.ts
index a4940ab76e..08a6f2c81b 100644
--- a/web/src/features/feature-flags/available-flags.ts
+++ b/web/src/features/feature-flags/available-flags.ts
@@ -1 +1 @@
-export const availableFlags = ["templateFlag", "evals", "playground"] as const;
+export const availableFlags = ["templateFlag", "evals"] as const;
diff --git a/web/src/features/prompts/components/prompt-detail.tsx b/web/src/features/prompts/components/prompt-detail.tsx
index e70898e732..b58bc80629 100644
--- a/web/src/features/prompts/components/prompt-detail.tsx
+++ b/web/src/features/prompts/components/prompt-detail.tsx
@@ -25,11 +25,9 @@ import { ScrollArea } from "@radix-ui/react-scroll-area";
import { TagPromptDetailsPopover } from "@/src/features/tag/components/TagPromptDetailsPopover";
import { PromptHistoryNode } from "./prompt-history";
-import useIsFeatureEnabled from "@/src/features/feature-flags/hooks/useIsFeatureEnabled";
export const PromptDetail = () => {
const projectId = useProjectIdFromURL();
- const isPlaygroundEnabled = useIsFeatureEnabled("playground");
const promptName = decodeURIComponent(useRouter().query.promptName as string);
const [currentPromptVersion, setCurrentPromptVersion] = useQueryParam(
"version",
@@ -110,19 +108,17 @@ export const PromptDetail = () => {
variant="outline"
/>
- {isPlaygroundEnabled ? (
- <Link
- href={`/project/${projectId}/playground?promptId=${encodeURIComponent(prompt.id)}`}
+ <Link
+ href={`/project/${projectId}/playground?promptId=${encodeURIComponent(prompt.id)}`}
+ >
+ <Button
+ variant="outline"
+ title="Test in prompt playground"
+ size="icon"
>
- <Button
- variant="outline"
- title="Test in prompt playground"
- size="icon"
- >
- <Terminal className="h-5 w-5" />
- </Button>
- </Link>
- ) : null}
+ <Terminal className="h-5 w-5" />
+ </Button>
+ </Link>
<Link
href={`/project/${projectId}/prompts/new?promptId=${encodeURIComponent(prompt.id)}`}