mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-14 09:03:16 +00:00
The managed Responses WebSocket handler calls litellm.aresponses once per response.create frame, and the HTTP s3 media check only saw the first frame as a raw JSON string. A non-admin key could send an s3 object from an unlisted bucket, or one under LiteLLM-managed storage, to Bedrock over WS /v1/responses The WS route now hands the handler a frame check bound to the connection's key, general_settings, managed files hook and router. The handler runs it on the params it is about to forward for every frame, the first one included, and a refused frame gets an invalid_request_error frame with the 403 message while the socket keeps serving later frames |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_endpoints.py | ||