Fix unbounded AI conversation history causing token explosion and DoW abuse#231
Conversation
|
@dheeraj12347 is attempting to deploy a commit to the Karan Mani Tripathi 's projects Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Technical Review
Hi @dheeraj12347! Thank you for your contribution to DoubtDesk.
The code changes look good. Before we can complete the technical review, approve, and merge this pull request, we have one final requirement for all contributors: Please star the DoubtDesk repository.
Once you have starred the repository, please drop a comment here saying "done" (or we will automatically detect it) and we will proceed with approving and merging your PR. Thank you.
hi @knoxiboy , "done" :) |
knoxiboy
left a comment
There was a problem hiding this comment.
Automated review: Thank you for starring the repository! The PR is approved.
Summary
This PR fixes unbounded AI conversation history growth in
/api/ask-ai, which could previously allow excessive token consumption and denial-of-wallet style abuse.Changes Made
Security Improvements
This mitigates:
Fixes #222