We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d67f298 commit b57b63dCopy full SHA for b57b63d
docs/examples/python/structured_output.py
@@ -41,7 +41,7 @@ class PersonInfo(BaseModel):
41
age: int
42
occupation: str
43
44
- with tempfile.NamedTemporaryFile() as person_file:
+ with tempfile.NamedTemporaryFile(delete=False) as person_file:
45
person_file.write(b"John Smith is a 30-year old software engineer")
46
person_file.flush()
47
0 commit comments