:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
from posthog.enums import LabeledStrEnum
WIDGET_MODEL_CHOICES = (
"claude-haiku-4-5",
"claude-sonnet-4-6",
"claude-sonnet-5",
"claude-opus-5",
)
DEFAULT_WIDGET_MODEL = "claude-sonnet-5"
# Each label repeats its value, because the API documents these choices as plain values.
class LifecycleStatus(LabeledStrEnum):
AWAITING_GENERATION = "awaiting_generation", "awaiting_generation"
GENERATING = "generating", "generating"
BUILDING = "building", "building"
READY = "ready", "ready"
FAILED = "failed", "failed"
INCOMPATIBLE = "incompatible", "incompatible"
MAX_WIDGET_PROMPT_LENGTH = 20_000
MAX_WIDGET_EFFECTIVE_PROMPT_LENGTH = 50_000