From d287f4dc7777ffd43318c95a83110bcc3281677c Mon Sep 17 00:00:00 2001 From: hex2077 Date: Wed, 8 Oct 2025 13:46:52 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6config.json=E5=92=8Cprovide?= =?UTF-8?q?r=5Fpools.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加两个示例配置文件,帮助用户了解配置格式和参数 --- config.json.example | 25 +++++++++ provider_pools.json.example | 108 ++++++++++++++++++++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 config.json.example create mode 100644 provider_pools.json.example diff --git a/config.json.example b/config.json.example new file mode 100644 index 0000000..c032ffa --- /dev/null +++ b/config.json.example @@ -0,0 +1,25 @@ +{ + "REQUIRED_API_KEY": "123456", + "SERVER_PORT": 3000, + "HOST": "127.0.0.1", + "MODEL_PROVIDER": "gemini-cli-oauth", + "OPENAI_API_KEY": "xxx", + "OPENAI_BASE_URL": "https://openai/v1", + "CLAUDE_API_KEY": "xxx", + "CLAUDE_BASE_URL": "https://anthropic/v1", + "PROJECT_ID": null, + "GEMINI_OAUTH_CREDS_BASE64": null, + "GEMINI_OAUTH_CREDS_FILE_PATH": null, + "KIRO_OAUTH_CREDS_BASE64": null, + "KIRO_OAUTH_CREDS_FILE_PATH": null, + "QWEN_OAUTH_CREDS_FILE_PATH": null, + "SYSTEM_PROMPT_FILE_PATH": "input_system_prompt.txt", + "SYSTEM_PROMPT_MODE": "overwrite", + "PROMPT_LOG_BASE_NAME": "prompt_log", + "PROMPT_LOG_MODE": "none", + "REQUEST_MAX_RETRIES": 3, + "REQUEST_BASE_DELAY": 1000, + "CRON_NEAR_MINUTES": 1, + "CRON_REFRESH_TOKEN": false, + "PROVIDER_POOLS_FILE_PATH": "provider_pools.json" +} \ No newline at end of file diff --git a/provider_pools.json.example b/provider_pools.json.example new file mode 100644 index 0000000..460d804 --- /dev/null +++ b/provider_pools.json.example @@ -0,0 +1,108 @@ +{ + "openai-custom": [ + { + "OPENAI_API_KEY": "sk-openai-key1", + "OPENAI_BASE_URL": "https://api.openai.com/v1", + "checkModelName": null, + "uuid": "2f579c65-d3c5-41b1-9985-9f6e3d7bf39c", + "isHealthy": true, + "lastUsed": null, + "usageCount": 0, + "errorCount": 0, + "lastErrorTime": null + }, + { + "OPENAI_API_KEY": "sk-openai-key2", + "OPENAI_BASE_URL": "https://api.openai.com/v1", + "checkModelName": null, + "uuid": "e284628d-302f-456d-91f3-6095386fb3b8", + "isHealthy": true, + "lastUsed": null, + "usageCount": 0, + "errorCount": 0, + "lastErrorTime": null + } + ], + "gemini-cli-oauth": [ + { + "GEMINI_OAUTH_CREDS_FILE_PATH": "./credentials1.json", + "PROJECT_ID": "your-project-id-1", + "checkModelName": null, + "uuid": "ac200154-26b8-4f5f-8650-e8cc738b06e3", + "isHealthy": true, + "lastUsed": null, + "usageCount": 0, + "errorCount": 0, + "lastErrorTime": null + }, + { + "GEMINI_OAUTH_CREDS_FILE_PATH": "./credentials2.json", + "PROJECT_ID": "your-project-id-2", + "checkModelName": null, + "uuid": "4f8afcc2-a9bb-4b96-bb50-3b9667a71f54", + "isHealthy": true, + "lastUsed": null, + "usageCount": 0, + "errorCount": 0, + "lastErrorTime": null + } + ], + "claude-custom": [ + { + "CLAUDE_API_KEY": "sk-claude-key1", + "CLAUDE_BASE_URL": "https://api.anthropic.com", + "checkModelName": null, + "uuid": "bb87047a-3b1d-4249-adbb-1087ecd58128", + "isHealthy": true, + "lastUsed": null, + "usageCount": 0, + "errorCount": 0, + "lastErrorTime": null + }, + { + "CLAUDE_API_KEY": "sk-claude-key2", + "CLAUDE_BASE_URL": "https://api.anthropic.com", + "checkModelName": null, + "uuid": "7c2002c6-122a-4db0-af06-8a0ff433801a", + "isHealthy": true, + "lastUsed": null, + "usageCount": 0, + "errorCount": 0, + "lastErrorTime": null + } + ], + "claude-kiro-oauth": [ + { + "KIRO_OAUTH_CREDS_FILE_PATH": "./kiro_creds1.json", + "uuid": "2c69d0ac-b86f-43d8-9d17-0d300afc5cfd", + "checkModelName": null, + "isHealthy": true, + "lastUsed": null, + "usageCount": 0, + "errorCount": 0, + "lastErrorTime": null + }, + { + "KIRO_OAUTH_CREDS_FILE_PATH": "./kiro_creds2.json", + "uuid": "7482abe6-8083-4288-bb7d-d8ecb7c461e2", + "checkModelName": null, + "isHealthy": true, + "lastUsed": null, + "usageCount": 0, + "errorCount": 0, + "lastErrorTime": null + } + ], + "openai-qwen-oauth": [ + { + "QWEN_OAUTH_CREDS_FILE_PATH": "./qwen_creds.json", + "uuid": "658a2114-c4c9-d713-b8d4-ceabf0e0bf18", + "checkModelName": null, + "isHealthy": true, + "lastUsed": null, + "usageCount": 0, + "errorCount": 0, + "lastErrorTime": null + } + ] +} \ No newline at end of file