MCPcopy
hub / github.com/openai/openai-python / from_disk

Function from_disk

examples/uploads.py:14–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def from_disk() -> None:
15 print("uploading file from disk")
16
17 upload = client.uploads.upload_file_chunked(
18 file=file,
19 mime_type="txt",
20 purpose="batch",
21 )
22 rich.print(upload)
23
24
25def from_in_memory() -> None:

Callers 1

uploads.pyFile · 0.85

Calls 1

upload_file_chunkedMethod · 0.45

Tested by

no test coverage detected