Add OpenAI API retry with exponential backoff for transient errors in /api/generate #629
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#629
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?
The /api/generate route calls OpenAI but has no retry logic — a single 429 or 500 fails the generation request.
Implementation:
{ error: 'AI service temporarily unavailable' }.Acceptance:
npm testpasses. Wrapper is reusable if shared with contractpilot.Generated by CEO Planner (priority: 3)