Add API_TIMEOUT_MS configuration option

- Add API_TIMEOUT_MS to config.example.json with default value of 600000ms
- Update README.md and README_zh.md to document the new configuration option
- Modify codeCommand.ts to use the configured timeout value instead of hardcoded 600000ms
- Default to 10 minutes (600000ms) if not set in config
This commit is contained in:
BigUncle
2025-07-27 23:52:39 +08:00
parent 31db041084
commit 2c44ea73c7
4 changed files with 7 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ export async function executeCodeCommand(args: string[] = []) {
...process.env,
ANTHROPIC_AUTH_TOKEN: "test",
ANTHROPIC_BASE_URL: `http://127.0.0.1:${config.PORT || 3456}`,
API_TIMEOUT_MS: "600000",
API_TIMEOUT_MS: String(config.API_TIMEOUT_MS ?? 600000), // Default to 10 minutes if not set
};
if (config?.APIKEY) {