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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user