Issue with gpt-4-vision-preview API when passing base64 encoded image

Thank you @danny-avila @HenriqueMelo!!

Yeah in fact the error was that. The content was malformed which was causing it to fail. The error goes away but the API does not work and throws a CORS error followed by an Internal server error.

I’m also using the Completions API with the gpt-4-1106-preview model for text completion use case.

Is the CORS error expected and leading to the internal server error? Any suggestions on how this could be handled, thanks!

1 Like