🪢 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
fix(ee): pro plan label (#7136)
Marc Klingen9e4d35236633
diff --git a/packages/shared/src/features/entitlements/plans.ts b/packages/shared/src/features/entitlements/plans.tsindex 6d2bc2f34c..6dbd3d70e2 100644--- a/packages/shared/src/features/entitlements/plans.ts+++ b/packages/shared/src/features/entitlements/plans.ts@@ -14,6 +14,7 @@ export const planLabels = {"cloud:pro": "Pro","cloud:team": "Team","cloud:enterprise": "Enterprise",+ "self-hosted:pro": "Pro (self-hosted)","self-hosted:enterprise": "Enterprise (self-hosted)",} as const;diff --git a/web/src/components/VersionLabel.tsx b/web/src/components/VersionLabel.tsxindex 906853df65..ae3413654f 100644--- a/web/src/components/VersionLabel.tsx+++ b/web/src/components/VersionLabel.tsx@@ -54,7 +54,7 @@ export const VersionLabel = ({ className }: { className?: string }) => {? // self-host plan// TODO: clean up to use planLabels in packages/shared/src/features/entitlements/plans.ts{- short: "EE",+ short: plan === "self-hosted:pro" ? "Pro" : "EE",long: planLabels[plan],}: // no plan, ossdiff --git a/web/src/features/entitlements/constants/entitlements.ts b/web/src/features/entitlements/constants/entitlements.tsindex a471a61127..e3d7746073 100644--- a/web/src/features/entitlements/constants/entitlements.ts+++ b/web/src/features/entitlements/constants/entitlements.ts@@ -122,6 +122,16 @@ export const entitlementAccess: Record<"prompt-management-count-prompts": false,},},+ "self-hosted:pro": {+ entitlements: selfHostedAllPlansEntitlements,+ entitlementLimits: {+ "annotation-queue-count": false,+ "organization-member-count": false,+ "data-access-days": false,+ "model-based-evaluations-count-evaluators": false,+ "prompt-management-count-prompts": false,+ },+ },"self-hosted:enterprise": {entitlements: [...selfHostedAllPlansEntitlements,diff --git a/web/src/features/entitlements/server/getPlan.ts b/web/src/features/entitlements/server/getPlan.tsindex e6c7e2f050..164bd1511a 100644--- a/web/src/features/entitlements/server/getPlan.ts+++ b/web/src/features/entitlements/server/getPlan.ts@@ -60,5 +60,8 @@ export function getSelfHostedInstancePlanServerSide(): Plan | null {if (licenseKey.startsWith("langfuse_ee_")) {return "self-hosted:enterprise";}+ if (licenseKey.startsWith("langfuse_pro_")) {+ return "self-hosted:pro";+ }return null;}diff --git a/web/src/features/public-api/server/RateLimitService.ts b/web/src/features/public-api/server/RateLimitService.tsindex 050f4a2819..a04e1e562d 100644--- a/web/src/features/public-api/server/RateLimitService.ts+++ b/web/src/features/public-api/server/RateLimitService.ts@@ -213,6 +213,7 @@ const getPlanBasedRateLimitConfig = (): z.infer<typeof RateLimitConfig> => {switch (plan) {case "oss":+ case "self-hosted:pro":case "self-hosted:enterprise":return {resource,