mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-28 06:23:07 +00:00
fix(guardrails): pass the resolved guardrail to the end-of-stream scan check
This commit is contained in:
parent
10f3c2be50
commit
296681bdc3
1 changed files with 1 additions and 1 deletions
|
|
@ -1385,7 +1385,7 @@ class UnifiedLLMGuardrails(CustomLogger):
|
|||
end_scan_key: Final = endpoint_translation.get_streaming_scan_key(responses_so_far)
|
||||
verdict_settled = True
|
||||
if _is_redundant_scan(end_scan_key, last_scan_key) and not _owes_ended_scan(
|
||||
endpoint_translation, guardrail_to_apply, responses_so_far, last_scan_key
|
||||
endpoint_translation, resolved_guardrail, responses_so_far, last_scan_key
|
||||
):
|
||||
verbose_proxy_logger.debug(
|
||||
"Skipping end-of-stream scan for guardrail %s: the last sampled round already scanned it all",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue