Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to protect chat endpoint like in chat.vercel.ai #661

Open
aryadytm opened this issue Dec 27, 2024 · 1 comment
Open

How to protect chat endpoint like in chat.vercel.ai #661

aryadytm opened this issue Dec 27, 2024 · 1 comment

Comments

@aryadytm
Copy link

So I cloned this repo and used as a template for my next SaaS project, and I've been thinking to protect my endpoints from bots.

I noticed that the endpoint in the https://chat.vercel.ai/api/chat returns 429 Too Many Requests when I copy the full request using cURL to reproduce in Postman.

However, this protection functionality didn't seem exist in this source code (or am I missed something?), as I tried to request to my instance but it is still unprotected.

Any details about the implementation?

@BaileySimrell
Copy link

@aryadytm they probably are using this https://vercel.com/guides/add-rate-limiting-vercel

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

No branches or pull requests

2 participants