mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
fix(llm_as_a_judge): guard guardrail_name Optional for mypy
This commit is contained in:
parent
25abe2af83
commit
bdc087d84b
1 changed files with 1 additions and 1 deletions
|
|
@ -193,7 +193,7 @@ class LLMAsAJudgeGuardrail(CustomGuardrail):
|
|||
passed = overall_score >= self.overall_threshold
|
||||
|
||||
eval_info: "StandardLoggingEvalInformation" = {
|
||||
"eval_name": self.guardrail_name,
|
||||
"eval_name": self.guardrail_name or "",
|
||||
"overall_score": overall_score,
|
||||
"passed": passed,
|
||||
"judge_model": self.judge_model,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue