Skip to content

Commit

Permalink
Update BaseModel output comparison in GenericLMFunctionOptimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
ammirsm committed Aug 1, 2024
1 parent 63604fe commit 80603f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/src/zenbase/predefined/generic_lm_function/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def optimize(self) -> Result:
def _create_default_evaluator(self):
def evaluator(output: BaseModel, ideal_output: dict) -> dict:
return {
"passed": int(output.dict() == ideal_output),
"passed": int(output.model_dump(mode="json") == ideal_output),
}

return evaluator
Expand Down

0 comments on commit 80603f8

Please sign in to comment.