Skip to content

Add rate limiting to the API route #1

Description

@joeltikoo

Currently the /api/recommend route has no rate limiting, meaning a single user could spam requests and burn through the Groq API quota quickly.

What needs to be done:

  • Limit requests per IP address to prevent abuse
  • Suggested limit: 10 requests per minute per IP
  • Return a 429 Too Many Requests response with a clear message when the limit is exceeded

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions