Skip to content

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

chore(ui) Update LLM connection API key message (#7278)

Jannik Maierhöferd5a79b1830bb
diff --git a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
index a3bd1e98e8..8df41e73a3 100644
--- a/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
+++ b/web/src/features/public-api/components/CreateLLMApiKeyForm.tsx
@@ -33,6 +33,7 @@ import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePos
import { type useUiCustomization } from "@/src/ee/features/ui-customization/useUiCustomization";
import { DialogFooter } from "@/src/components/ui/dialog";
import { DialogBody } from "@/src/components/ui/dialog";
+import { env } from "@/src/env.mjs";
const createFormSchema = (mode: "create" | "update") =>
z
@@ -447,7 +448,9 @@ export function CreateLLMApiKeyForm({
<FormItem>
<FormLabel>API Key</FormLabel>
<FormDescription>
- Your API keys are stored encrypted on our servers.
+ {env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION
+ ? "Your API keys are stored encrypted on our servers."
+ : "Your API keys are stored encrypted in your database."}
</FormDescription>
{currentAdapter === LLMAdapter.VertexAI && (
<FormDescription className="text-dark-yellow">
@@ -497,8 +500,11 @@ export function CreateLLMApiKeyForm({
<FormLabel>Extra Headers</FormLabel>
<FormDescription>
Optional additional HTTP headers to include with requests
- towards LLM provider. All header values stored encrypted on
- our servers.
+ towards LLM provider. All header values stored encrypted{" "}
+ {env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION
+ ? "on our servers"
+ : "in your database"}
+ .
</FormDescription>
{headerFields.map((header, index) => (