An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
Hi Rahul Navalakha,
From what is described, this usually comes down to the request taking longer to complete when images are included, rather than a hard service failure. When ChatMessageImageContent is used, the request payload becomes much larger and the model needs extra time to process both the text and the image. If the client or HTTP library has a shorter timeout configured, the connection can get closed before the service finishes generating the response, which shows up as a connection timeout.
Another thing to watch is how the image is being sent. Large images or uncompressed base64 payloads can noticeably increase request size and processing time. In practice, resizing the image to a reasonable resolution and avoiding unnecessary metadata helps reduce latency and makes the call more reliable.
This behavior can also feel intermittent because it depends on current load and how complex the prompt plus image combination is. Text only requests may succeed quickly, while image-based requests hit the timeout more easily under the same settings.
What has helped others is increasing the client-side timeout to allow enough time for multimodal processing, keeping image sizes modest, and testing the same request with and without images to confirm that the delay is image related rather than a general connectivity issue. Once those are aligned, the timeouts usually stop occurring and the same setup works consistently.
Do let me know if you have any further queries.
Thankyou!