What motivated you to submit this feature request?
I am pre-processing my files to prepare metadata and in order to upload them to the assistant via assistant.upload_file() I must pass a filepath which means writing a temp file.
Describe the solution you'd like
Allow the assistant to handle a reference to in memory data e.g stringio
Describe alternatives you've considered
Using python tempfile
Additional context
N/A