Repository navigation
Expand file tree
/
Copy pathconfig.defaults.toml
More file actions
78 lines (68 loc) · 2.07 KB
/
Copy pathconfig.defaults.toml
File metadata and controls
78 lines (68 loc) · 2.07 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
# ==================== 访问控制 ====================
[app]
# 管理后台密码
app_key = "grok2api"
# API 调用密钥(留空不鉴权,逗号分隔多个)
api_key = ""
# ==================== 日志配置 ====================
[logging]
file_level = "INFO"
max_files = 7
# ==================== 应用功能 ====================
[features]
# 是否启用临时对话
temporary = true
# 是否启用会话记忆
memory = false
# 是否启用流式响应
stream = true
# 是否输出思考过程
thinking = true
# 聊天类 AUTO 模型在 auto 额度耗尽时,是否自动降级到 fast/expert
auto_chat_mode_fallback = true
# 全局附加指令
custom_instruction = ""
# ==================== 本地缓存 ====================
[cache.local]
# 图片缓存上限(MB),0 = 不限制
image_max_mb = 0
# 视频缓存上限(MB),0 = 不限制
video_max_mb = 0
# ==================== 代理配置 ====================
[proxy.egress]
# 代理 URL
proxy_url = ""
[proxy.clearance]
# 手动模式:Cloudflare Cookie 字符串
cf_cookies = ""
# User-Agent(需与 cf_cookies 匹配)
user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36"
statsig_seed = ""
statsig_hex = ""
# 推荐:启用后自动从 grok.com HTML 种子 + 内置 SVG 路径表生成 HEX
statsig_from_html = false
# ==================== 重试策略 ====================
[retry]
# 触发重建代理 Session 的 HTTP 状态码
reset_session_status_codes = [403]
# 换账号重试最大次数(0 = 不重试)
max_retries = 1
# 触发换账号重试的 HTTP 状态码,英文逗号分隔
on_codes = "429,401,503"
# ==================== 账号刷新 ====================
[account.refresh]
# 总开关:true=配额刷新模式;false=随机选号模式
enabled = true
basic_interval_sec = 86400
super_interval_sec = 7200
heavy_interval_sec = 7200
[account.selection]
# 单号并发上限
max_inflight = 8
# ==================== 超时配置 ====================
[asset]
upload_timeout = 60
list_timeout = 60
delete_timeout = 60
[nsfw]
timeout = 60