Skip to content

Commit

Permalink
fix: hide LlmApiKeyList in settings when not on langfuse cloud as rel…
Browse files Browse the repository at this point in the history
…ated features are in beta right now and will be released in v3
  • Loading branch information
marcklingen committed May 16, 2024
1 parent 07671c7 commit 4139cce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/src/features/public-api/components/LLMApiKeyList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 4139cce

Please sign in to comment.