don't emit none from eval config (#9963)

This commit is contained in:
William FH 2023-08-29 16:14:32 -07:00 committed by GitHub
parent 8fb0a9594c
commit cedfad541d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,8 @@ class EvalConfig(BaseModel):
for field, val in self:
if field == "evaluator_type":
continue
elif val is None:
continue
kwargs[field] = val
return kwargs