mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-08 08:08:37 +00:00
fix(proxy): handle unresolved streaming routes
This commit is contained in:
parent
38dca793ea
commit
9fb6f38034
1 changed files with 6 additions and 1 deletions
|
|
@ -1775,7 +1775,12 @@ class ProxyLogging:
|
|||
get_call_types_for_route,
|
||||
)
|
||||
|
||||
call_types: Final = get_call_types_for_route(user_api_key_dict.request_route)
|
||||
route: Final = user_api_key_dict.request_route
|
||||
if not route:
|
||||
return False
|
||||
call_types: Final = get_call_types_for_route(route)
|
||||
if not call_types:
|
||||
return False
|
||||
return any(guardrail.supports_streaming_call_type(call_type) for call_type in call_types)
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue