mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-19 19:38:39 -05:00
850fb8acc3
- Server-side: Replace hardcoded OpenAI with provider-agnostic `getAiModel(env)` and enforce `assertOrganizationAIConfigured(organizationId, "dataAnalysis")` which validates license entitlement, org-level toggle, and instance configuration - Client-side: Instead of hiding AI section when unavailable, show it disabled with a tooltip explaining the reason (not in plan / not enabled / instance not configured), following the same pattern as AI translate - Thread `isAIAvailable` and `aiUnavailableReason` through the component chain from server pages down to `AIQuerySection` - Update test mocks to match new provider-agnostic AI imports