30 lines
715 B
YAML
30 lines
715 B
YAML
# Copy to config.openrouter.yaml (or set path explicitly) and fill in keys.
|
|
# Per chat request, an API key and model are chosen at random (uniform) from the lists.
|
|
|
|
base_url: https://openrouter.ai/api/v1
|
|
|
|
api_keys:
|
|
- sk-or-v1-replace-me-1
|
|
- sk-or-v1-replace-me-2
|
|
|
|
models:
|
|
- openai/gpt-4o-mini
|
|
- anthropic/claude-3.5-haiku
|
|
|
|
temperature: 0.7
|
|
max_tokens: 4096
|
|
stop: null
|
|
|
|
# Optional cost accounting (set to 0 if unknown)
|
|
prompt_token_cost: 0.0
|
|
response_token_cost: 0.0
|
|
|
|
# Retries after HTTP 429 / 400 (each retry uses a fresh random key + model)
|
|
max_retries_429: 8
|
|
max_retries_400: 3
|
|
base_backoff_seconds: 1.0
|
|
|
|
# Optional OpenRouter attribution headers (recommended by OpenRouter)
|
|
http_referer: ""
|
|
x_title: ""
|