Review and merge PR #705: OpenAI timeout and error handling in /api/generate #1025
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#1025
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?
Review PR #705 which wraps the OpenAI API call in /api/generate with a timeout and error handler. Reliability-critical — a hung OpenAI call will block the worker and timeout the user request without a useful error. Steps: (1)
gh pr diff 705 --repo pook/compliancebot, (2) verify it sets a reasonable SDK-level timeout (30s), (3) verify it catches OpenAI API errors and returns structured JSON to the client, (4) verify it doesn't swallow the error silently, (5) merge if clean. Acceptance: PR #705 merged or review comment.Generated by CEO Planner (priority: 3)