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

copy query params when forwarding requests #55

Closed donfour closed 4 months ago

donfour commented 4 months ago

Some endpoints are not behaving properly because we currently don't copy query params when forwarding requests.

For example, GET /threads/{thread_id}/messages (doc) takes in query params for pagination.

Added a line to copy query params before making the request.