Uploading files to a thread #261
-
Hello team, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @reegz, thanks for using simple-openai!
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. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the feedback. Appreciate it.
Working through the demo classes I was able to get this working.
Thanks again :-)
…On Fri, 17 Jan 2025, 20:09 Sashir Estela, ***@***.***> wrote:
Hi @reegz <https://github.com/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.
—
Reply to this email directly, view it on GitHub
<#261 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIHIZV64VHCF7DQ3KI6J3D2LFBMLAVCNFSM6AAAAABVL6PPJGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCOBXGAYTKMQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
Hi @reegz, thanks for using simple-openai!
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.