Add request body size limit (1MB) to /api/generate endpoints #443
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#443
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 endpoints accept request bodies without a size limit. A malicious or buggy client could send a multi-GB payload, consuming server memory and potentially wasting OpenAI tokens if the content reaches the API.
Acceptance: Requests to /api/generate with bodies exceeding 1MB return 413. Normal requests under 1MB work unchanged. Test confirms the limit.
Generated by CEO Planner (priority: 3)