Multi-Image GPT-4 Vision
Hi,
I am using the Files input with multiple files and using the Multi-Image GPT-4 Vision to explain the images. I get the errors
Error communicating with OpenAI API: 400 Failed to download image from 20241121_094856.jpg. Image URL is invalid.
Please check attached image20 Replies
AI Support Bot Information
<@941204254218129418> you can react on the relevant answer (message) with a ✅ in this thread when you think it has been solved, by the bot or by a human!
Anyone can react on this message with a ❌ if the GPT bot is unhelpful or hallucinating answers.
Please note: Team members will review and answer the questions on best efforts basis.
AI Response
The error message you're encountering, "Error communicating with OpenAI API: 400 Failed to download image from 20241121_094856.jpg. Image URL is invalid," suggests that the image URL used is not accessible or incorrectly formatted.
Here are a few steps you can take to troubleshoot and resolve this issue:
1. Verify Image URL: Ensure that the image URL is correct and accessible. The URL needs to lead directly to the image file and should be publicly accessible without requiring authentication.
2. Check File Format: Confirm that the file format and extension of the image are supported by the system you are using.
3. Network Permissions: Make sure that there are no network restrictions or firewall settings preventing access to the URL.
4. Debugging: If the image is uploaded as part of a workflow, check that the image was successfully uploaded and that the URL being used is generated correctly.
If you've verified the above and the issue persists, you may need to consult OpenAI or your service provider's documentation, or contact their support for more specific guidance tailored to the tools you are using. If this doesn't resolve your issue, please consider reaching out via the support channels provided by your service provider.
BuildShip AI Support
Hi @haleem` , the node expects you to pass an array of image urls. What you can do is upload the file to BuildShip storage, perhaps using the Upload File Buffer node which will then give you a download image url that you can pass to the gpt vision node.
thanks, let me try it
hi @Luis,
I have multiple images. How do i upload the multiple images as the Upload File Buffer allow only one image
I used loop to upload the image using the Upload File Buffer, and the image is not uploaded properly.
here is an image that is uploaded using the node
https://storage.googleapis.com/buildship-r37mbo-us-central1/image/image_x7x30o4slhg.png
I am using loop. So first I create the variable, then use the loop to upload one by one, and then assign the downloadUrl using the index to the array
but the images are not properly uploaded
Hey @haleem`, are you still using the Rest API file upload trigger in your workflow?
I am using Upload File Buffer
Actually since you are using a File input this can be done much easier. There's no need to upload the file again because it's already in BuildShip storage.
Here's a remix link to give you an idea https://app.buildship.com/remix/fb6f59b6-8c6a-492c-904d-e557f0e305ec
BuildShip - Visual backend workflow builder
Visually build workflows and powerful backend logic for your apps. Powered by AI, connect to anything with or without code.
thanks
it worked. Thank you
I am now testing the api in postman. I am sending two images(20KB and 30KB) and I get this error
This is because you’re using the rest api trigger. If you want to submit files to your workflow then you may consider connecting and using the file upload trigger https://docs.buildship.com/connecting-triggers/file-upload
Rest API File Upload – BuildShip
The Rest API File Upload Trigger is designed to handle incoming HTTP requests with multipart/form-data content type, which is commonly used for file uploads.
I added the rest api file upload trigger. Now I am getting the below error
{
"error": {},
"label": "Loop",
"message": "Cannot read properties of undefined (reading 'length')"
}
Could you please check the images and let me know how I can debug this error?
Could you please give a direction?
@haleem` hopefully this short recording helps https://share.descript.com/view/UZBDSpaXoln
Luis Rodge
Descript
File upload trigger support - Descript
You want to upload an image file? From your client directly to bullshit. But you want to store that in bill shift storage, you want to get a public URL of the image you upload, and then you want to
Wow, this video saved me, i forgot to put the / in the path too, I debug for hours, contacted buildship support and everything. This was it. Feels good but so dumb at the same time lol 😅
That’s awesome! Happy to help 🙌
Anyone can help? I upload an image file but it shows this output.