Skip to content

Uploading files to a thread #261

Closed Answered by sashirestela
reegz asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @reegz, thanks for using simple-openai!

I wanted to find out if it is currently possible to upload a file (either image or audio file) to an existing threaded conversation with an Open AI assistant?

Yes, you can add a file to an existing conversation: first you upload the file and use the fileId in a ThredMessage object or in a ThreadRun object. You can upload images for vision and pdf/txt for file search. For images you have the option to provide the url to upload directly too.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by reegz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants