🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
feat: add .env example in API keys page (#9262)
abdallah2a99e7162877
diff --git a/.gitignore b/.gitignoreindex ab1f8426e0..6888fa1337 100644--- a/.gitignore+++ b/.gitignore@@ -5,6 +5,7 @@/.pnp.pnp.jsmigrate+/.pnpm-store# testing/coveragediff --git a/web/src/features/public-api/components/ApiKeyList.tsx b/web/src/features/public-api/components/ApiKeyList.tsxindex 0ecbc06fa5..820408ea6d 100644--- a/web/src/features/public-api/components/ApiKeyList.tsx+++ b/web/src/features/public-api/components/ApiKeyList.tsx@@ -41,6 +41,11 @@ export function ApiKeyList(props: { entityId: string; scope: ApiKeyScope }) {);}+ const envCode = `LANGFUSE_SECRET_KEY = "sk-lf-..."+LANGFUSE_PUBLIC_KEY = "pk-lf-..."+LANGFUSE_HOST = "https://cloud.langfuse.com" # 🇪🇺 EU region+# LANGFUSE_HOST = "https://us.cloud.langfuse.com" # 🇺🇸 US region`;+const hasProjectAccess = useHasProjectAccess({projectId: props.entityId,scope: "apiKeys:CUD",@@ -80,7 +85,7 @@ export function ApiKeyList(props: { entityId: string; scope: ApiKeyScope }) {}return (- <div>+ <div className="space-y-4"><Headertitle={startCase(`${scope} API keys`)}help={{@@ -92,6 +97,7 @@ export function ApiKeyList(props: { entityId: string; scope: ApiKeyScope }) {}}actionButtons={<CreateApiKeyButton entityId={entityId} scope={scope} />}/>+ <CodeView content={envCode} title=".env" /><Card className="mb-4 overflow-hidden"><Table><TableHeader>