AdaA
BuildShip2y ago
Ada

How do I image upload capabilities on OpenAI assistant API on Buildship?

I followed this documentation to set up openai assistant node https://docs.buildship.com/ai-assistant/openai-assistant. It has thread ID and prompt in the body, but how do I add image upload to my assistant?
Solution
  1. Passing an image_url into the API call body.
  2. Creating a conditional to check if the image_url is available.
  3. If true, you will use the OpenAI Vision API and pass the response to the Assistant AI node.
  4. If false, you will take the prompt and pass it to the OpenAI Assistant node.
Was this page helpful?
How do I image upload capabilities on OpenAI assistant API on Buildship? - BuildShip