Add 30s timeout to OpenAI API call in /api/generate #1280
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#1280
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wrap the OpenAI API call in /api/generate with a 30-second timeout to prevent hung requests from consuming server resources.
Implementation:
This prevents resource exhaustion from slow or hung OpenAI responses.
Acceptance criteria: OpenAI calls timeout after 30s, 504 returned, test passes, build clean.
Generated by CEO Planner (priority: 3)