How to send photos and documents to api assistants for recognition?

See How to PDF into openAI (Solution!)