Modules
Main context for PhoenixKit AI system.
Struct representing a normalized AI model from the OpenRouter API.
OpenRouter completion client for making AI API calls.
Shared AI-translation UI for multilang form LiveViews — the
publishing/projects-style trigger button + modal, on top of core's
PhoenixKitAI.Translations pipeline.
Host-side wiring for the AI-translate modal — use this in a form
LiveView and it injects the boilerplate that every consumer of
PhoenixKitAI.Components.AITranslate.FormGlue was hand-duplicating
The small storage-specific contract a form LiveView supplies to the
shared AI-translate glue (PhoenixKitAI.Components.AITranslate.FormGlue).
Shared LiveView glue for the AI-translate modal — the stateful counterpart
to the render-only PhoenixKitAI.Components.AITranslate components.
AI endpoint schema for PhoenixKit AI system.
Central mapping from error atoms (returned by the AI module's public API) to translated human-readable strings.
OpenRouter API client for PhoenixKit AI system.
AI prompt schema for PhoenixKit AI system.
AI request schema for PhoenixKit AI system.
Route module for PhoenixKit AI admin routes.
Behaviour a feature module implements to make a resource AI-translatable
through core's generic translation pipeline
(PhoenixKitAI.TranslateWorker +
PhoenixKitAI.Translations).
Discovery for AI-translatable adapters.
Generic Oban worker that translates one resource's fields into a single target language, shared by every consumer module.
Generic AI translation helper. Translates a %{field_name => text}
map from source_lang to target_lang using PhoenixKitAI's endpoint
and prompt system, and parses the structured response back into the
same shape.
Orchestration for AI-driven translation — the shared layer every feature module enqueues against instead of re-implementing its own context + worker.
Per-LV actor-resolution helpers.
LiveView for creating and editing AI endpoints.
LiveView for AI endpoints management.
LiveView for testing AI endpoints and prompts.
LiveView for creating and editing AI prompts.
LiveView for AI prompts management.
Shared URL-param parsing for the AI admin LVs (endpoints.ex,
prompts.ex, plus the usage tab inside endpoints).