-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfig.yaml.example
More file actions
56 lines (52 loc) · 1.75 KB
/
Copy pathconfig.yaml.example
File metadata and controls
56 lines (52 loc) · 1.75 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
server:
host: "0.0.0.0"
port: 8000
api_key: "sk-gpt2api" # API 访问密钥
admin_key: "admin-gpt2api" # 管理端点密钥
deployment_url: "" # gpt2api 部署 URL(用于图片代理,如 https://your-domain.com)
register:
cf_url: "" # Cloudflare Worker 邮箱后端 URL
cf_auth: "" # 站点访问密码
cf_admin_auth: "" # 管理密码
cf_domain: "" # 邮箱域名
proxy: "" # 注册用代理
auto_register: false # 自动注册(token 不足时)
min_tokens: 3
max_register_parallel: 1
register_interval: 60
token:
refresh_interval_hours: 2 # 自动刷新过期 token
dead_retain_hours: 24 # 死 token 保留时间
cooling_reset_hours: 24 # 冷却重置时间
fail_threshold: 5 # 失败多少次标记为 dead
load_balance: "round-robin" # 负载策略: round-robin / random / least-used
chatgpt:
proxy: "" # 全局代理(每个 token 的 proxy 字段优先)
sse_timeout: 120
pow_max_iter: 500000
image_download_timeout: 60
turnstile_solver_url: "" # 外部 Turnstile 求解器(可选)
models:
- id: "gpt-5.5"
upstream: "gpt-5-5"
- id: "gpt-5.3"
upstream: "gpt-5-3"
- id: "gpt-5.2"
upstream: "gpt-5-2"
- id: "gpt-5.1"
upstream: "gpt-5-1"
- id: "gpt-5"
upstream: "gpt-5"
- id: "gpt-5-mini"
upstream: "gpt-5-mini"
- id: "gpt-5.3-mini"
upstream: "gpt-5-3-mini"
- id: "gpt-5.4-mini-thinking"
upstream: "gpt-5-4-t-mini"
- id: "auto"
upstream: "auto"
- id: "research"
upstream: "research"
- id: "gpt-image-2"
upstream: "gpt-5-3"
type: "image"