Skip to content

Commit 00026bd

Browse files
committed
update
1 parent 68177f3 commit 00026bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/ai-services/openai/includes/batch/batch-python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,13 @@ client = AzureOpenAI(
102102
file = client.files.create(
103103
file=open("test.jsonl", "rb"),
104104
purpose="batch",
105-
extra_body={"expires_after":{"seconds": 1209600, "anchor": "created_at"}} # Optional you can set to a number between 1209600-2592000. This is equivalent to 14-30 days
105+
#extra_body={"expires_after":{"seconds": 1209600, "anchor": "created_at"}} # Optional you can set to a number between 1209600-2592000. This is equivalent to 14-30 days
106106
)
107107

108108

109109
print(file.model_dump_json(indent=2))
110110

111-
print(f"File expiration: {datetime.fromtimestamp(file.expires_at) if file.expires_at is not None else 'Not set'}")
111+
#print(f"File expiration: {datetime.fromtimestamp(file.expires_at) if file.expires_at is not None else 'Not set'}")
112112

113113
file_id = file.id
114114
```

0 commit comments

Comments
 (0)