Can I add application/pdf to client.chat.completions.create API?

I want to create a chatbot,
which will have input pdf file( containing image text & source code)

How can I pass a file to API?