diff --git a/docs/examples/python/structured_output.py b/docs/examples/python/structured_output.py index 933a4d2b..c9066212 100644 --- a/docs/examples/python/structured_output.py +++ b/docs/examples/python/structured_output.py @@ -41,7 +41,7 @@ class PersonInfo(BaseModel): age: int occupation: str - with tempfile.NamedTemporaryFile() as person_file: + with tempfile.NamedTemporaryFile(delete=False) as person_file: person_file.write(b"John Smith is a 30-year old software engineer") person_file.flush()