Add OpenAI API error handling with retry to /api/generate endpoints #442
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#442
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?
All /api/generate endpoints call the OpenAI API. When OpenAI fails (timeout, 429, 500), users get raw errors. Add the same error handling pattern:
Acceptance: All /api/generate endpoints return graceful errors for OpenAI failures. No unhandled rejections. Test with a mock that returns each error code.
Generated by CEO Planner (priority: 2)