Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 10, 2025

Client-side streaming requests were timing out at 2 minutes when processing documents with complex prompts. Server-side timeout was even shorter at 1 minute.

Changes

Client (client/src/api/client.js)

  • STREAMING_REQUEST_TIMEOUT: 120000ms → 300000ms

Server (server/config.js)

  • REQUEST_TIMEOUT default: 60000ms → 300000ms

Both timeouts now allow 5 minutes for LLM generation, with inline comments documenting the duration. Server timeout is configurable via REQUEST_TIMEOUT environment variable.

Original prompt

This section details on the original issue you should resolve

<issue_title>Increase API Timeout from 2 minutes to 5 minutes for generation</issue_title>
<issue_description>When a document with a complicated prompt is send to the llm, we run into a client api 120000ms (2min) timeout. we should increase this timeout for generation to 5min</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits December 10, 2025 12:54
- Updated client-side STREAMING_REQUEST_TIMEOUT from 120000ms (2 min) to 300000ms (5 min)
- Updated server-side REQUEST_TIMEOUT default from 60000ms (1 min) to 300000ms (5 min)
- This resolves timeout issues when processing documents with complicated prompts

Co-authored-by: manzke <[email protected]>
- Added inline comment to REQUEST_TIMEOUT configuration to document it's 5 minutes
- This improves code maintainability and consistency with client-side documentation

Co-authored-by: manzke <[email protected]>
Copilot AI changed the title [WIP] Increase API timeout for generation from 2 minutes to 5 minutes Increase API timeout from 2 to 5 minutes for generation requests Dec 10, 2025
Copilot AI requested a review from manzke December 10, 2025 12:59
@manzke manzke marked this pull request as ready for review December 10, 2025 12:59
@manzke manzke merged commit 0dd4544 into main Dec 10, 2025
4 checks passed
@manzke manzke deleted the copilot/increase-api-timeout-to-5-minutes branch December 10, 2025 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Increase API Timeout from 2 minutes to 5 minutes for generation

2 participants