[Unit]
Description=LiteLLM Proxy — unified LLM gateway (Qwen local + Claude API)
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User={{ litellm_user }}
Group={{ litellm_user }}

Environment=ANTHROPIC_API_KEY={{ litellm_anthropic_api_key }}

ExecStart={{ litellm_venv }}/bin/litellm \
    --config {{ litellm_config_dir }}/config.yaml \
    --host {{ litellm_host }} \
    --port {{ litellm_port }}

Restart=on-failure
RestartSec=10
StandardOutput=journal
StandardError=journal
SyslogIdentifier=litellm

[Install]
WantedBy=multi-user.target
