Skip to content

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

fix: hide LlmApiKeyList in settings when not on langfuse cloud as related features are in beta right now and will be released in v3

Marc Klingen4139ccec9840
diff --git a/web/src/features/public-api/components/LLMApiKeyList.tsx b/web/src/features/public-api/components/LLMApiKeyList.tsx
index d7752c7877..e74a55dd46 100644
--- a/web/src/features/public-api/components/LLMApiKeyList.tsx
+++ b/web/src/features/public-api/components/LLMApiKeyList.tsx
@@ -34,6 +34,7 @@ import {
TableHeader,
TableRow,
} from "@/src/components/ui/table";
+import { env } from "@/src/env.mjs";
import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";
import { useHasAccess } from "@/src/features/rbac/utils/checkAccess";
import { api } from "@/src/utils/api";
@@ -63,6 +64,7 @@ export function LlmApiKeyList(props: { projectId: string }) {
);
if (!hasAccess) return null;
+ if (env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === undefined) return null;
return (
<div>