bricks-cloud / BricksLLM

🔒 Enterprise-grade API gateway that helps you monitor and impose cost or rate limits per API key. Get fine-grained access control and monitoring per user, application, or environment. Supports OpenAI, Azure OpenAI, Anthropic, vLLM, and open-source LLMs.
https://trybricks.ai/
MIT License
863 stars 60 forks source link

Nit: improve route not supported error message #80

Open donfour opened 2 months ago

donfour commented 2 months ago

Currently when a path doesn't match, we just return [BricksLLM] route not supported, which makes it slightly tricky to debug API calls made via an SDK, cause the SDK hide the request path from the user.

Maybe would be nice if we also return the request path along with the error, cause sometimes the error is really obvious.

Something like [BricksLLM] "/api/providers/foo/bar" is not a supported route?