-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathconfig.json
More file actions
106 lines (106 loc) · 2.6 KB
/
Copy pathconfig.json
File metadata and controls
106 lines (106 loc) · 2.6 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"auth-key": "chatgpt2api",
"refresh_account_interval_minute": 5,
"image_retention_days": 15,
"image_poll_timeout_secs": 120,
"auto_remove_rate_limited_accounts": false,
"auto_remove_invalid_accounts": true,
"log_levels": [
"debug",
"error",
"info",
"warning"
],
"proxy": "",
"proxy_runtime": {
"enabled": false,
"egress_mode": "single_proxy",
"proxy_url": "http://privoxy:8118",
"resource_proxy_url": "",
"skip_ssl_verify": true,
"reset_session_status_codes": [
403
],
"clearance": {
"enabled": true,
"mode": "flaresolverr",
"cf_cookies": "",
"cf_clearance": "",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36",
"browser": "chrome",
"flaresolverr_url": "http://flaresolverr:8191",
"timeout_sec": 60,
"refresh_interval": 3600,
"warm_up_on_start": true
}
},
"base_url": "",
"sensitive_words": [],
"global_system_prompt": "",
"ai_review": {
"enabled": false,
"base_url": "",
"api_key": "",
"model": "",
"prompt": ""
},
"backup": {
"enabled": false,
"provider": "cloudflare_r2",
"account_id": "admin",
"access_key_id": "",
"secret_access_key": "admin",
"bucket": "",
"prefix": "backups",
"interval_minutes": 1440,
"rotation_keep": 10,
"encrypt": false,
"passphrase": "",
"include": {
"config": true,
"register": true,
"cpa": true,
"sub2api": true,
"logs": true,
"image_tasks": true,
"accounts_snapshot": true,
"auth_keys_snapshot": true,
"images": false
}
},
"image_account_concurrency": 3,
"image_parallel_generation": true,
"image_poll_interval_secs": 10,
"image_poll_initial_wait_secs": 10,
"image_storage": {
"enabled": false,
"mode": "local",
"webdav_url": "",
"webdav_username": "",
"webdav_password": "",
"webdav_root_path": "chatgpt2api/images",
"public_base_url": ""
},
"image_min_free_mb": 500,
"chat_completion_cache": {
"enabled": true,
"ttl_seconds": 60,
"max_entries": 256,
"dedupe_inflight": true,
"stream_cache": true,
"normalize_messages": true,
"drop_adjacent_duplicates": true,
"drop_assistant_history": false
},
"image_settle_enabled": false,
"image_check_before_hit_enabled": false,
"image_settle_secs": 2,
"auto_relogin_after_refresh": false,
"image_timeout_retry_secs": 30,
"third_party_apps": {
"infinite_canvas": {
"enabled": true,
"url": "https://canvas.best"
}
}
}