Skip to content

Multi-Channel Configuration Advanced

Configure multiple API channels for load balancing and failover.

Channel Concept

A channel represents an API endpoint configuration including URL, API key, and model settings.

Supported Channels

ProviderBase URLModels
OpenAIhttps://api.openai.com/v1gpt-4o, gpt-4o-mini
Claudehttps://api.anthropic.comclaude-3.5-sonnet
Geminihttps://generativelanguage.googleapis.comgemini-pro
DeepSeekhttps://api.deepseek.comdeepseek-chat

Configuration Example

yaml
channels:
  - name: openai-main
    baseUrl: https://api.openai.com/v1
    apiKey: ${OPENAI_API_KEY}
    model: gpt-4o
    priority: 1

  - name: deepseek-backup
    baseUrl: https://api.deepseek.com
    apiKey: ${DEEPSEEK_API_KEY}
    model: deepseek-chat
    priority: 2

Load Balancing

StrategyDescription
PriorityUse by priority order
Round RobinRotate between channels
RandomRandom selection

Failover

Auto Failover

When a channel fails, automatically switches to next available channel.

yaml
channelStrategy:
  failover: true
  maxRetries: 3
  retryDelay: 1000

Web Panel

Manage channels visually in Web Admin Panel:

  1. Go to Channels tab
  2. Click Add Channel
  3. Fill in configuration
  4. Click Test Connection
  5. Save

Next Steps

Released under the MIT License