From f60ab36c16adbfbd42d4bd7d38fecff0a3f6d5b8 Mon Sep 17 00:00:00 2001 From: Yuri Zhao Date: Fri, 1 Aug 2025 15:20:53 -0400 Subject: [PATCH] a minor fix to structured_output example for running on window OS --- docs/examples/python/structured_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()