Skip to content

Commit 526069f

Browse files
committed
Use read_bytes() to load conversation JSON
1 parent c680761 commit 526069f

File tree

1 file changed

+1
-1
lines changed
  • pydantic_ai_slim/pydantic_ai

1 file changed

+1
-1
lines changed

pydantic_ai_slim/pydantic_ai/_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def load_last_conversation(config_dir: Path | None = None) -> list[ModelMessage]
249249
if not last_conversation_path.exists():
250250
return None
251251

252-
return ModelMessagesTypeAdapter.validate_json(last_conversation_path.read_text())
252+
return ModelMessagesTypeAdapter.validate_json(last_conversation_path.read_bytes())
253253

254254

255255
async def run_chat(

0 commit comments

Comments
 (0)