mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-18 21:09:00 +00:00
don't emit none from eval config (#9963)
This commit is contained in:
parent
8fb0a9594c
commit
cedfad541d
@ -48,6 +48,8 @@ class EvalConfig(BaseModel):
|
|||||||
for field, val in self:
|
for field, val in self:
|
||||||
if field == "evaluator_type":
|
if field == "evaluator_type":
|
||||||
continue
|
continue
|
||||||
|
elif val is None:
|
||||||
|
continue
|
||||||
kwargs[field] = val
|
kwargs[field] = val
|
||||||
return kwargs
|
return kwargs
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user