Skip to content

Commit

Permalink
dict() -> model_dump()
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurme committed Sep 4, 2024
1 parent 3d5afcb commit 5572e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/partners/prompty/tests/unit_tests/fake_chat_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _call(
run_manager: Optional[CallbackManagerForLLMRun] = None,
**kwargs: Any,
) -> str:
return json.dumps([message.dict() for message in messages])
return json.dumps([message.model_dump() for message in messages])

async def _agenerate(
self,
Expand Down

0 comments on commit 5572e09

Please sign in to comment.