forked from CJackHwang/ds2api
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.json
More file actions
95 lines (95 loc) · 2.32 KB
/
config.example.json
File metadata and controls
95 lines (95 loc) · 2.32 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
{
"_comment": "DS2API 配置文件示例 - 复制为 config.json 使用",
"_doc": "详细文档: https://github.com/CJackHwang/ds2api",
"keys": [
"your-api-key-1",
"your-api-key-2"
],
"api_keys": [
{
"key": "your-api-key-1",
"name": "主 API Key",
"remark": "给 OpenAI 客户端使用"
},
{
"key": "your-api-key-2",
"name": "备用 API Key",
"remark": "压测或临时调试"
}
],
"accounts": [
{
"_comment": "邮箱登录方式",
"name": "主账号",
"remark": "优先用于生产流量",
"email": "example1@example.com",
"password": "your-password-1"
},
{
"_comment": "邮箱登录方式 - 账号2",
"name": "备用账号",
"email": "example2@example.com",
"password": "your-password-2"
},
{
"_comment": "手机号登录方式(中国大陆)",
"mobile": "12345678901",
"password": "your-password-3"
}
],
"model_aliases": {
"gpt-4o": "deepseek-v4-flash",
"gpt-5.5": "deepseek-v4-flash",
"gpt-5.3-codex": "deepseek-v4-pro",
"o3": "deepseek-v4-pro"
},
"responses": {
"store_ttl_seconds": 900
},
"current_input_file": {
"enabled": true,
"min_chars": 0,
"inline_max_tokens": 30000,
"filename_policy": "neutral_random"
},
"thinking_injection": {
"enabled": false,
"prompt": ""
},
"tool_calling": {
"enabled": true,
"disabled_behavior": "reject"
},
"embeddings": {
"provider": "deterministic"
},
"admin": {
"jwt_expire_hours": 24
},
"runtime": {
"account_max_inflight": 2,
"account_max_queue": 0,
"global_max_inflight": 0,
"token_refresh_interval_hours": 6
},
"auto_delete": {
"mode": "none"
},
"parser_v2": {
"_comment": "Tool Parser v2 feature flag: off | shadow | enforce (recommended for production)",
"mode": "enforce"
},
"context_engine": {
"_comment": "Context Engine: mode off | shadow | enforce; strategy raw_transcript | natural_context | context_capsule | hybrid_recent | auto",
"mode": "enforce",
"strategy": "hybrid_recent"
},
"log": {
"_comment": "日志配置:file为空时使用默认路径 logs/ds2api.log",
"level": "info",
"file": "logs/ds2api.log",
"file_enabled": false,
"max_size_mb": 100,
"max_backups": 3
}
}