DSPy: The framework for programming—not prompting—language models
Python
use model_dump instead of dict (#8493)
TomuHiratab6ae529f3a4c
diff --git a/tests/clients/test_lm.py b/tests/clients/test_lm.pyindex e1ff625d8..b63406ba1 100644--- a/tests/clients/test_lm.py+++ b/tests/clients/test_lm.py@@ -301,7 +301,7 @@ def test_logprobs_included_when_requested():)result = lm("question")assert result[0]["text"] == "test answer"- assert result[0]["logprobs"].dict() == {+ assert result[0]["logprobs"].model_dump() == {"content": [{"token": "test",