I’m trying to use GPT-4 Turbo to interpret an image. Although I’ve confirmed that the image URL is accessible in a web browser, I consistently encounter the following error message:
OpenAI checks the robots.txt file of a site to see if a webmaster has put in “no ChatGPT bot” rules, or others, which OpenAI respects.
The robots.txt file https://i.ibb.co/robots.txt returns a secure connection error when used in a stateless browser. That may be why the image retriever cannot continue.
If you’re encountering a timeout error when providing a URL link as the source of an image to the API method, it might be due to network issues with retrieval, as previously mentioned. Here’s a recommended approach to handle this, which may be your solution:
Download the Image Locally: Instead of providing the URL directly to the API, you could download the image to your local system or server. This gives you more control over the process and allows you to handle any network issues that might occur during the download.
Persistent Network Requests: Network issues can be unpredictable. Therefore, it’s advisable to implement a retry mechanism for your network requests. This ensures that temporary network issues don’t cause permanent failures.
Verify the Image Contents: Once the image is downloaded, verify its contents to ensure it’s valid and meets the requirements of the API. This could include checking the file type, size, and dimensions.
Rescale to a Token Budget: If the image is too large, it might exceed the cost you enforce, or take longer to transmit. In this case, you can rescale or resize the image to fit within the token budget, or use the detail setting.
Provide Feedback: If an image isn’t returned or if there’s an issue with the image, provide feedback to the user. This could be in the form of an error message or a prompt to upload a different image. No need to make unnecessary API requests.
Upload the Image: Once the image has been validated and possibly rescaled, you can then upload it to the API, attaching to the content of a user message. Use the appropriate method for the endpoint you’re using.
By following these steps, you can ensure a more robust and reliable image handling process when working with the API than relying on OpenAI’s downloader.
It randomly works without me changing anything. Same image will go through. Then it won’t. Fails more often than succeeds though. New problem with an old workflow that just started to pop up in the last week.
From all my experiments, I have realised the base64 format of providing the image for vision purposes failed very rarely. Although for large images, the request could get slow or timeout, it’s better to compress the image, and send as base64. It is faster too.
hey dude, the full stop symbol has nothing to be seen as something strange. It is the error message in a proper sentence form with a ‘.’ at the end . So ‘Timeout while downloading image_url.’ is the error message sentence generated from the api call. If i click on the image_url, it is opening properly which means the image_url stays original. In the image below you can see that the image_url is in green color while the . symbol at the end is in black color.