Skip to content

Commit b8e2420

Browse files
cbornetmdrxy
andauthored
langchain: Fix Evaluator's _check_evaluation_args (#31910)
Co-authored-by: Mason Daugherty <[email protected]>
1 parent a3e3fd2 commit b8e2420

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/langchain/langchain/evaluation/schema.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ def _check_evaluation_args(
120120
ValueError: If the evaluator requires an input string but none is provided,
121121
or if the evaluator requires a reference label but none is provided.
122122
"""
123-
if self.requires_input and input is None:
123+
if self.requires_input and input_ is None:
124124
msg = f"{self.__class__.__name__} requires an input string."
125125
raise ValueError(msg)
126-
if input is not None and not self.requires_input:
126+
if input_ is not None and not self.requires_input:
127127
warn(self._skip_input_warning)
128128
if self.requires_reference and reference is None:
129129
msg = f"{self.__class__.__name__} requires a reference string."

0 commit comments

Comments
 (0)