mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix: remove unused variable original_guardrails in pipeline_executor
Remove unused local variable 'original_guardrails' that was assigned but never used in the _execute_guardrail_step method. Fixes Ruff F841 linting error. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
951c230ff0
commit
6caedfd2a5
1 changed files with 0 additions and 1 deletions
|
|
@ -154,7 +154,6 @@ class PipelineExecutor:
|
|||
# Inject guardrail name into metadata so should_run_guardrail() allows it
|
||||
if "metadata" not in data:
|
||||
data["metadata"] = {}
|
||||
original_guardrails = data["metadata"].get("guardrails")
|
||||
data["metadata"]["guardrails"] = [step.guardrail]
|
||||
|
||||
# Use unified_guardrail path if callback implements apply_guardrail
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue