Code error 500 with api gpt-4-vision-preview

Finally, I solved the problem. It wasn’t due to the size of the image
as I initially thought, but rather a somewhat complicated issue
related to the client-server transit in Flask (Python). From a web
page (client), I was making a request to my server, which then queried
the gpt-4-vision-preview API by providing it with a link to download
the image, also provided by the Flask server (Python). The API was
supposed to then send back the image analysis to my server, which
would then return the response to the client (web page). It was the
back and forth between the API (gpt4 server) and my server that was
causing the bug. I had to modify the request architecture so that the
exchanges go through the client before being returned… and now there
are no more bugs.

1 Like