Skip to content

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

fix(ui): do not run llm api key query when it is not available (#2205)

Marc Klingen53a3d58a2fa9
diff --git a/web/src/features/public-api/components/LLMApiKeyList.tsx b/web/src/features/public-api/components/LLMApiKeyList.tsx
index 54c0a1b989..81411aed92 100644
--- a/web/src/features/public-api/components/LLMApiKeyList.tsx
+++ b/web/src/features/public-api/components/LLMApiKeyList.tsx
@@ -59,7 +59,7 @@ export function LlmApiKeyList(props: { projectId: string }) {
projectId: props.projectId,
},
{
- enabled: hasAccess,
+ enabled: hasAccess && env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION !== undefined,
},
);