Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
docs: document AI provider configuration for self-hosting
Richie McIlroy45bf8b0def78
diff --git a/apps/web/content/docs/self-hosting.mdx b/apps/web/content/docs/self-hosting.mdxindex a8799c97d..45219a81b 100644--- a/apps/web/content/docs/self-hosting.mdx+++ b/apps/web/content/docs/self-hosting.mdx@@ -110,14 +110,61 @@ By default, login links are printed to the server logs. To send emails:### AI Features-For video transcription and AI summaries:+For video transcription and AI features (titles, summaries, chapters,+transcript translation, and docs Ask AI):```bashASSEMBLY_API_KEY=your-key # Transcription-GROQ_API_KEY=your-key # AI summaries (preferred)-OPENAI_API_KEY=your-key # AI summaries (fallback)+GROQ_API_KEY=your-key # AI features+OPENAI_API_KEY=your-key # AI features+ANTHROPIC_API_KEY=your-key # AI features```+When `AI_PROVIDER` is not set, AI providers are auto-detected from whichever+keys are present. Generation features (titles, summaries, chapters,+translation) prefer Groq → OpenAI → Anthropic; chat features (the support+messenger and docs Ask AI) prefer Anthropic → OpenAI → Groq. Earlier+providers are preferred; later ones are automatic fallbacks.++To pick a provider explicitly, set `AI_PROVIDER` to one of `assemblyai`,+`openai`, `anthropic`, `groq`, or `openai-compatible`. Any other configured+providers stay in the chain as fallbacks.++```bash+AI_PROVIDER=assemblyai+```++`assemblyai` reuses your existing `ASSEMBLY_API_KEY` via the AssemblyAI LLM+Gateway, so one key covers transcription and AI features. It is never+auto-detected: transcription-only instances don't start incurring LLM charges+unless you opt in, and opting in bills LLM tokens to the same AssemblyAI+account as transcription.++`openai-compatible` works with any OpenAI-compatible endpoint such as Ollama,+OpenRouter, or LM Studio. It requires `AI_BASE_URL` and `AI_MODEL` (and+`AI_API_KEY` if your endpoint needs one):++```bash+AI_PROVIDER=openai-compatible+AI_BASE_URL=http://localhost:11434/v1+AI_MODEL=llama3.3+AI_API_KEY=your-key # If the endpoint requires one+```++Each provider has sensible default models. You can override them per role for+the provider selected by `AI_PROVIDER`:++```bash+AI_MODEL=your-model # Generation: titles, summaries, chapters, translation+AI_CHAT_MODEL=your-model # Support chat+AI_STREAM_MODEL=your-model # Streaming docs Ask AI+```++For the AssemblyAI EU gateway, set+`AI_BASE_URL=https://llm-gateway.eu.assemblyai.com/v1`. The EU gateway only+serves Claude and Gemini models, so you must also override `AI_MODEL` and+`AI_STREAM_MODEL` (the defaults are OpenAI-family models that are US-only).+### Google OAuth```bashdiff --git a/docker-compose.coolify.env.example b/docker-compose.coolify.env.exampleindex d9a98666b..b57c74417 100644--- a/docker-compose.coolify.env.example+++ b/docker-compose.coolify.env.example@@ -63,9 +63,31 @@ RESEND_FROM_DOMAIN=# For video transcriptionASSEMBLY_API_KEY=-# For AI summaries (Groq is preferred, OpenAI as fallback)+# API keys for AI summaries, chat, and docs search. When AI_PROVIDER is not+# set, providers are auto-detected from whichever of these keys are present.+# Generation (titles/summaries/chapters/translation) prefers+# Groq -> OpenAI -> Anthropic; chat (support messenger, docs Ask AI) prefers+# Anthropic -> OpenAI -> Groq. Later providers are fallbacks.GROQ_API_KEY=OPENAI_API_KEY=+ANTHROPIC_API_KEY=++# Optionally pick the AI provider explicitly instead of auto-detecting.+# One of: assemblyai, openai, anthropic, groq, openai-compatible.+# - "assemblyai" reuses ASSEMBLY_API_KEY via the AssemblyAI LLM Gateway. It+# is never auto-detected, so transcription-only setups don't incur LLM+# charges unless you opt in here.+# - "openai-compatible" works with any OpenAI-compatible endpoint (Ollama,+# OpenRouter, LM Studio, ...) and requires AI_BASE_URL and AI_MODEL.+# AI_MODEL / AI_CHAT_MODEL / AI_STREAM_MODEL override the models used for+# generation (titles/summaries/chapters/translation), support chat, and+# streaming docs search for the provider selected above.+# AI_PROVIDER=+# AI_MODEL=+# AI_CHAT_MODEL=+# AI_STREAM_MODEL=+# AI_BASE_URL=+# AI_API_KEY=# ===================# OAUTH (OPTIONAL)