The documentation says client.files.retrieve_content(“file_abc123”), but as of python openai == 1.21.2, I believe that is deprecated.
here was my fix: file_contents = client.files.content(“file_abc123”)
also, file_batches for the python client instead of .fileBatches
1 Like
Hey @rdswearingen ,
Just wanted to check, why you believe that retrieve_content
is deprecated. Is it giving any such warnings?
nikunj
3
Sorry for these errors – all being fixed and rolled out now! Appreciate you raising this.
1 Like
Thanks, no problem. Glad I could help! While at it, I noticed the pip openai == 1.21.2 client is also using client.beta.vector_stores.file_batches.list_files now, instead of
client.beta.vector_stores.file_batches.files.list as posted in the documentation here: https://platform.openai.com/docs/api-reference/vector-stores-file-batches/listBatchFiles
1 Like