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:
@@ -44,6 +44,7 @@ The `config.json` file has several key sections:
|
||||
|
||||
- **`Providers`**: Used to configure different model providers.
|
||||
- **`Router`**: Used to set up routing rules. `default` specifies the default model, which will be used for all requests if no other route is configured.
|
||||
- **`API_TIMEOUT_MS`**: Specifies the timeout for API calls in milliseconds.
|
||||
|
||||
Here is a comprehensive example:
|
||||
|
||||
@@ -52,6 +53,7 @@ Here is a comprehensive example:
|
||||
"APIKEY": "your-secret-key",
|
||||
"PROXY_URL": "http://127.0.0.1:7890",
|
||||
"LOG": true,
|
||||
"API_TIMEOUT_MS": 600000,
|
||||
"Providers": [
|
||||
{
|
||||
"name": "openrouter",
|
||||
|
||||
Reference in New Issue
Block a user