# LiteLLM config — GENERERT FIL
#
# Denne filen genereres fra PostgreSQL-tabellene ai_model_aliases
# og ai_model_providers. Rediger ikke manuelt — bruk admin-panelet
# eller kjør scripts/generate-litellm-config.sh.
#
# Bare providers med gyldige API-nøkler i .env inkluderes.
# Fyll inn GEMINI_API_KEY, ANTHROPIC_API_KEY, XAI_API_KEY i
# /srv/synops/.env for å aktivere flere leverandører.

model_list:
  # === sidelinja/resonering ===
  - model_name: "sidelinja/resonering"
    litellm_params:
      model: "openrouter/anthropic/claude-sonnet-4"
      api_key: "os.environ/OPENROUTER_API_KEY"
    model_info:
      priority: 1
  - model_name: "sidelinja/resonering"
    litellm_params:
      model: "openrouter/google/gemini-2.5-flash"
      api_key: "os.environ/OPENROUTER_API_KEY"
    model_info:
      priority: 2
  # === sidelinja/rutine ===
  - model_name: "sidelinja/rutine"
    litellm_params:
      model: "openrouter/google/gemini-2.5-flash"
      api_key: "os.environ/OPENROUTER_API_KEY"
    model_info:
      priority: 4

router_settings:
  routing_strategy: "simple-shuffle"
  num_retries: 3
  timeout: 60
  allowed_fails: 1
  retry_after: 5
  enable_pre_call_checks: true

general_settings:
  master_key: "os.environ/LITELLM_MASTER_KEY"
