Skip to content

feat: add rate limiting to chat_stream endpoints with slowapi#18

Open
jackson-jpeg wants to merge 1 commit intomainfrom
eevee/task-c26f1f36
Open

feat: add rate limiting to chat_stream endpoints with slowapi#18
jackson-jpeg wants to merge 1 commit intomainfrom
eevee/task-c26f1f36

Conversation

@jackson-jpeg
Copy link
Copy Markdown
Owner

What

Added slowapi rate limiting decorators to chat_stream.py endpoints to protect against token-exhaustion attacks.

Task

Add rate limiting middleware in middleware/security.py using slowapi to protect /api/v1/chat_stream.py endpoints from token-exhaustion attacks

Changes

  • backend/app/api/v1/chat_stream.py
  • backend/app/api/v1/chat_stream.py
  • backend/app/api/v1/chat_stream.py
  • backend/app/api/v1/chat_stream.py
  • backend/app/api/v1/chat_stream.py
  • backend/app/api/v1/chat_stream.py

Automated by Eevee 🦊

Co-authored-by: Eevee <eevee@aimpov.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 25, 2026

Deployment failed with the following error:

Resource is limited - try again in 3 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/jackson-sangers-projects?upgradeToPro=build-rate-limit

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant