{ "_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": "压测或临时调试", "thinking_injection": { "custom": true, "enabled": true, "prompt": "(可选)这个 Key 专属的思考格式注入提示词;留空则跟随全局 prompt" } } ], "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-flash", "o3": "deepseek-v4-flash" }, "responses": { "store_ttl_seconds": 900 }, "current_input_file": { "enabled": true, "min_chars": 0 }, "thinking_injection": { "enabled": true, "prompt": "" }, "prompt_profile": { "_comment": "提示词特化层:默认关闭。开启后按 preset 给每次请求前置一段 System 规范,可选 default / writing;prompt 留空则用内置正文", "enabled": false, "name": "default", "prompt": "" }, "prompt_style": "v2", "_prompt_style_comment": "内置提示词风格:v2(缺省,衔接指令带执行要求并注入执行契约)/ legacy(旧版短文案,不注入执行契约)", "model_profiles": [], "tools": { "enabled": false }, "skills": { "enabled": false, "max_chars": 8000, "items": [] }, "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" } }