mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
style(headroom): format stream options conversion
This commit is contained in:
parent
6584fd75c4
commit
66a3516c8f
1 changed files with 3 additions and 1 deletions
|
|
@ -890,7 +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
|
||||
**{key: value for key, value in effective.items() if key != "stream_options"}, # 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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue