Skip to content

Commit b57b63d

Browse files
authored
a minor fix to structured_output example for running on window OS (#200)
1 parent d67f298 commit b57b63d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/examples/python/structured_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class PersonInfo(BaseModel):
4141
age: int
4242
occupation: str
4343

44-
with tempfile.NamedTemporaryFile() as person_file:
44+
with tempfile.NamedTemporaryFile(delete=False) as person_file:
4545
person_file.write(b"John Smith is a 30-year old software engineer")
4646
person_file.flush()
4747

0 commit comments

Comments
 (0)