CC-Router icon indicating copy to clipboard operation
CC-Router copied to clipboard

add config entry for. proxyRequesTime

Open lzx925060109 opened this issue 6 months ago • 1 comments

Problem

current proxyRequesTime is hard code. expect by config.json to control it.

Proposed solution

Alternatives considered

lzx925060109 avatar May 30 '26 17:05 lzx925060109

Thanks for reporting this. A fix is ready in #2.

The proxy request timeout can now be configured in ~/.cc-router/config.json with proxyRequestTimeoutMs in milliseconds, for example:

{
  "proxyRequestTimeoutMs": 600000
}

If the value is missing or invalid, cc-router keeps the existing 5-minute default. I also added compatibility for the proxyRequesTime spelling from this issue, but proxyRequestTimeoutMs is the preferred key going forward.

Verified with:

  • npm test
  • npm run build

VictorMinemu avatar Jun 05 '26 18:06 VictorMinemu