Skip to content

Support custom base URLs for self-hosted AI providers (vLLM, self-hosted Whisper, etc.) #1996

Description

@jask87

Cap's self-hosting docs currently support AI features only via fixed cloud providers — DEEPGRAM_API_KEY for transcription, and OPENAI_API_KEY / GROQ_API_KEY / ANTHROPIC_API_KEY for summaries. For teams self-hosting Cap specifically for data sovereignty, having AI calls still go out to third-party clouds undercuts the point.
Request: Add optional base-URL overrides so these features can point at self-hosted infrastructure instead:

OPENAI_BASE_URL (or similar) so the summary/title/chapter generation can point at an OpenAI-compatible endpoint — e.g. vLLM, which exposes a drop-in-compatible /v1/chat/completions API. This should be a small change since the OpenAI SDK already supports a baseURL param.
A similar override for transcription — either a DEEPGRAM_BASE_URL (Deepgram supports self-hosted deployments too), or more flexibly, support for any OpenAI-compatible /v1/audio/transcriptions endpoint, which self-hosted Whisper servers (including vLLM's own transcription API) already expose.

This would let self-hosters keep all AI processing entirely on their own infrastructure, matching the same self-hosting story that already applies to storage (S3-compatible) and the media server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions