Integrate posthog feature flags + setup Claude 3 experiment (#251)

This commit is contained in:
Kerem Yilmaz
2024-05-02 15:06:21 -07:00
committed by GitHub
parent 55444e3ae0
commit 4459ca7d09
6 changed files with 43 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
from abc import ABC, abstractmethod
import structlog
LOG = structlog.get_logger()
class BaseExperimentationProvider(ABC):
@abstractmethod
def is_feature_enabled(self, feature_name: str, distinct_id: str) -> bool:
"""Check if a specific feature is enabled."""
class NoOpExperimentationProvider(BaseExperimentationProvider):
def is_feature_enabled(self, feature_name: str, distinct_id: str) -> bool:
return False