mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-29 06:33:28 +00:00
style(guardrails): format disconnect guard condition
This commit is contained in:
parent
6805573102
commit
9901032e4c
1 changed files with 1 additions and 5 deletions
|
|
@ -1398,11 +1398,7 @@ class UnifiedLLMGuardrails(CustomLogger):
|
|||
yield error_item
|
||||
except (GeneratorExit, asyncio.CancelledError):
|
||||
translation_class: Final = None if call_type is None else mappings.get(CallTypes(call_type))
|
||||
if (
|
||||
chunks_yielded
|
||||
and not verdict_settled
|
||||
and translation_class is not None
|
||||
):
|
||||
if chunks_yielded and not verdict_settled and translation_class is not None:
|
||||
await self._scan_released_stream_after_disconnect(
|
||||
endpoint_translation=translation_class(),
|
||||
responses_released=responses_yielded,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue