diff --git a/litellm/proxy/guardrails/guardrail_hooks/headroom/headroom.py b/litellm/proxy/guardrails/guardrail_hooks/headroom/headroom.py index e48c00c0437..4b9be35e1c0 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/headroom/headroom.py +++ b/litellm/proxy/guardrails/guardrail_hooks/headroom/headroom.py @@ -890,9 +890,9 @@ class HeadroomGuardrail(CustomGuardrail): if not has_headroom_retrieve_tool(effective.get("tools")): return base_result return { # mutable-ok: the hook contract is a plain dict the router merges into the request kwargs - **{ + **{ # mutable-ok: removes stream-only options key: value for key, value in effective.items() if key != "stream_options" - }, # mutable-ok: removes stream-only options + }, "stream": False, HEADROOM_CONVERTED_STREAM_KEY: True, }