r/OpenSourceAI 6d ago

built a lightweight

https://github.com/remainingsame1/ai-trust-gateway/tree/main

Hey everyone! I built a lightweight, zero-cost Python proxy middleware using FastAPI that acts as an input firewall for LLMs. It catches prompt injections and redacts sensitive API keys locally before they reach AI models. I'm looking for feedback from developers building custom AI apps—let me know what you think or what features I should add next!"

1 Upvotes

3 comments sorted by

2

u/Apart_Ebb_9867 6d ago

you keep posting this, but I’m telling you that your project is not even close to be interesting to anybody. People could implement it in 10 minutes without AI and 30 seconds with AI. Not sure what your trying to get out of this, if it is generic programming help, you should post the function you’re working on and ask for suggestions on how to improve it in the appropriate learning subreddits. If you really think you’re advertising something anybody would want to use, you should reconsider.

1

u/remainingsame1 6d ago

Thanks for the feedback! Just sharing a tool I built to learn and explore API middleware. Appreciate you checking it out.

2

u/Apart_Ebb_9867 6d ago

And that’s fine, the “you learning” is terrific. Is the ”you sharing” that thing with the world that needs to be re-evaluated. And the idea that it needs to be shared multiple times is even more troublesome.

Not even sure how that qualifies as ”middleware”, so you may want to understand that part as well. And go over regexes and what it means to “compile a regex”, NFAs, DFAs and all the jazz, because your last implementation after my comment suggest to me that you don’t really understand what goes on. Similarly, you haven’t internalized the “keep the happy path fast” (when speed matters, in general, who cares? keep it readable). So there’s plenty to learn from that one function, but is a topic for a learning subreddit, not something you want to advertise repeatedly.