#PDF in threads

1 messages · Page 1 of 1 (latest)

sullen token
#

I have a URL of a PDF that a user uploaded in my nextjs app how can I pass the PDF to a thread using the openai API?

dire quiver
#

Hi, @sullen token

#

You can use openai's files.create endpoint

#

and then you can get the return value for file

#

and then you can create your thread using that file id

#

i hope this helps you