Skip to content

Commit

Permalink
fix: change test to use model_dump instead of model_dump_json
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacbmiller committed Feb 3, 2025
1 parent 7b11001 commit 2a2192d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dspy/predict/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def serialize_object(obj):
"""
if isinstance(obj, BaseModel):
# Use model_dump to convert the model into a JSON-serializable dict
return obj.model_dump_json()
return obj.model_dump()
elif isinstance(obj, list):
return [serialize_object(item) for item in obj]
elif isinstance(obj, tuple):
Expand Down

0 comments on commit 2a2192d

Please sign in to comment.