Repository navigation
Expand file tree
/
Copy pathconfig.example.yaml
More file actions
65 lines (65 loc) · 2.37 KB
/
Copy pathconfig.example.yaml
File metadata and controls
65 lines (65 loc) · 2.37 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
server:
host: 127.0.0.1 # keep loopback for local use; see docs/guides/VPS-DEPLOY.md before any public bind
port: 8788
require_client_key: true
admin_key: gw-admin-change-me # REQUIRED: replace with a long random key (8+ chars);
# the gateway refuses public binds with any template placeholder
client_keys:
- key: gw-client-change-me # REQUIRED: replace with a long random key
name: local
upstream:
base_url: https://zcode.z.ai/api/v1
chat_path: /zcode-plan/anthropic/v1/messages
timeout_connect: 15
timeout_read: 600
max_attempts: 3
overload_max_attempts: 11
overload_base_delay_seconds: 2
overload_max_delay_seconds: 60
pool:
strategy: drain_first
cooldown_seconds: 30
max_in_flight_per_account: 4
acquire_wait_seconds: 5
balance_poll_seconds: 60
blocked_model_cooldown_seconds: 900
accounts:
source: accounts_dir
providers_json: "~/.zcode/v2/credentials.json"
dir: ./accounts
pool_file: ./pool.json
models:
aliases:
glm-5.4: GLM-5.4
glm-5.3-flash: GLM-5.3-Flash
default: GLM-5.3-Flash
default_anthropic: GLM-5.4
default_max_tokens: 128000
default_effort: high # reasoning effort when the client doesn't say: low | high | max
pacing:
enabled: true # randomized gap between upstream sends (WAF prevention)
min_gap_ms: 150
max_gap_ms: 400
auto_free_fallback:
enabled: false
chain: [GLM-5.4, GLM-5.3-Flash]
logging:
level: INFO
capture: false
capture_dir: ./logs
store:
sqlite_path: ./gateway.db
update:
enabled: true # update badge in the dashboard; set false for fully offline
repo: B3hnamR/AutoZcoder
generator:
enabled: false
zcodeauto_dir: "" # '' = auto-detect; or set the generator folder (has main.py)
captcha: "manual" # manual = you solve it in a visible browser | auto = solver
headless: false # only used with captcha: auto (manual always needs a window)
claim: false # claim the 100M invite Global Build after signup
claim500: false # legacy 500M giveaway (wins over claim)
claim_start: false # claim offered plans after signup
invite_code: "MT9GNDQ8" # referral code claimed after signup ('' = off)
socks_only: true # legacy bool (proxy_types below overrides it)
proxy_types: "socks" # all | socks | socks5 | socks4 | http — pool scheme filter