-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathconfig.example.json
More file actions
37 lines (37 loc) · 1.77 KB
/
Copy pathconfig.example.json
File metadata and controls
37 lines (37 loc) · 1.77 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
{
"model_alias": {
"deepseek-v4-flash": "deepseek-v4-flash-free",
"laguna-s-2.1": "laguna-s-2.1-free",
"ling-3.0-flash": "ling-3.0-flash-free",
"mimo-v2.5": "mimo-v2.5-free",
"nemotron-3-ultra": "nemotron-3-ultra-free",
"north-mini-code": "north-mini-code-free"
},
"max_tokens_cap_per_model": {
"deepseek-v4-flash-free": 131072,
"laguna-s-2.1-free": 262144,
"mimo-v2.5-free": 1048576,
"nemotron-3-ultra-free": 1000000,
"nemotron-3.5-lightning-free": 1000000
},
"protocol_rules": [],
"_comment_password": "Admin panel password. Empty disables /api/* auth AND disables the admin-as-API-key (Bearer) route.",
"admin_password": "",
"_comment_key_pool": "Optional upstream key pool used when Authorization Bearer matches admin_password OR is a real opencode key (sk-/oc_sk-). Strategy: round_robin | weighted | sticky (default). Plain strings in keys[] are shorthand for {\"key\": ...}.",
"key_pool": {
"enabled": false,
"strategy": "sticky",
"max_retries": 2,
"retry_on": [429, 500, 502, 503, 504],
"cooldown_secs": 60,
"blacklist_after": 3,
"keys": [
{"id": "k1", "key": "sk-placeholder-1", "group": "", "weight": 1, "enabled": true, "note": "account A"},
"sk-placeholder-2"
]
},
"_comment_stream_empty_retry": "claude→responses 流式链路的空流兜底:上游 200 后首个有效产出前若遇到空流 EOF / 无数据超时,最多重试 N 次(0=关闭,默认 1)。重试会经 key_pool 自动切到下一个可用 key。",
"stream_empty_retry_max": 1,
"_comment_stream_first_byte_timeout_ms": "空流检测的首字节看门狗(毫秒,默认 30000,<=0 关闭)。上游 200 后一直没发任何 SSE 数据,超过该阈值视为空流并触发重试。",
"stream_first_byte_timeout_ms": 30000
}