forked from Aculeasis/openrouter-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yml.example
More file actions
44 lines (37 loc) · 1.63 KB
/
Copy pathconfig.yml.example
File metadata and controls
44 lines (37 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# OpenRouter Proxy Configuration
# Server settings
server:
host: "0.0.0.0" # Default interface
port: 5555 # Default port
access_key: "your_local_access_key_here" # Key for accessing the local proxy
log_level: "INFO" # Logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
http_log_level: "INFO" # HTTP access logs level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
# OpenRouter API keys
openrouter:
keys:
- "sk-or-v1-your-first-api-key"
- "sk-or-v1-your-second-api-key"
- "sk-or-v1-your-third-api-key"
# Key selection strategy: "round-robin" (default), "first" or "random".
key_selection_strategy: "round-robin"
# List of key selection options:
# "same": Always use the last used key as long as it is possible.
key_selection_opts: []
# OpenRouter API base URL
base_url: "https://openrouter.ai/api/v1"
# Public endpoints that don't require authentication
public_endpoints:
- "/api/v1/models"
# Time in seconds to temporarily disable a key when rate limit is reached by default
rate_limit_cooldown: 14400 # 4 hours
free_only: false # try to show only free models
# OpenRouter can return a 429 error if a model is overloaded.
# Additionally, Google sometimes returns 429 RESOURCE_EXHAUSTED errors repeatedly,
# which can cause Roo Code to stop.
# This option prevents repeated failures by introducing a delay before retrying.
# global_rate_delay: 10 # in seconds
global_rate_delay: 0
# Proxy settings for outgoing requests to OpenRouter
requestProxy:
enabled: false # Set to true to enable proxy
url: "socks5://username:password@example.com:1080" # Proxy URL with optional credentials embedded