Skip to content

feat: Add LiteLLM as a direct connection provider #506

Description

@RheagalFire

Hi @OvidijusParsiunas,

I'd like to propose adding LiteLLM as a new direct connection provider. LiteLLM is an AI gateway that provides a unified OpenAI-compatible API for 100+ LLM providers (OpenAI, Anthropic, Azure, AWS Bedrock, Vertex AI, Groq, Ollama, etc.).

Why this would be useful:

  • Users who self-host their LLM infrastructure can route through a single LiteLLM proxy instead of configuring individual providers
  • Access to providers not yet directly supported by deep-chat (e.g., AWS Bedrock, Vertex AI, Azure OpenAI)
  • Built-in provider routing, load balancing, and cost tracking

Proposed implementation:

  • New liteLLM option in directConnection, following the same pattern as DeepSeek/OpenRouter
  • Configurable proxy URL (default http://localhost:4000/v1/chat/completions)
  • Standard OpenAI-compatible request/response format (which is what LiteLLM proxy serves)
  • Key verification via the proxy's /v1/models endpoint

Example usage:

<deep-chat
  directConnection='{
    "liteLLM": {
      "key": "sk-your-litellm-key",
      "url": "http://localhost:4000/v1/chat/completions",
      "model": "anthropic/claude-3-5-sonnet"
    }
  }'
></deep-chat>

I already have an implementation ready following the existing provider pattern.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions