🪢 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
import { useLangfuseCloudRegion } from "@/src/features/organizations/hooks";
/**
* Client-side hook to check if cloud billing features are available.
* Uses the NEXT_PUBLIC_LANGFUSE_CLOUD_REGION to determine availability.
*
* Components should use this to conditionally render billing features.
*
* @returns true if cloud billing features should be shown/enabled
*/
export function useIsCloudBillingAvailable(): boolean {
const { region } = useLangfuseCloudRegion();
return Boolean(region);
}