I am getting an internal server error using GPT-4 vision API. But my code is the same and the API was working well until just a minute ago? I am pretty sure my code is the same so not sure wh there is an error all of a suddon
openai.InternalServerError: Error code: 500 - {‘error’: {‘message’: ‘Something went wrong processing one of your images.’, ‘type’: ‘server_error’, ‘param’: None, ‘code’: None}}
Same problem here! I get exactly the same error while I use the same code as in the documentation.
Here is a snippet from my code:
messages = [
{
"role": "user",
"content": [
{
"type":"text",
"text":prompt
}
]+[
{
"type": "image_url",
"image_url": {
"url": f"data:image/jpeg;base64,{encode_image(image_path)}"
}
}
for image_path in images
]
}
]
chat_completion = self.openai.chat.completions.create(
model=self.config["model_name"], # Choose the engine according to your OpenAI plan
messages=messages,
max_tokens=min(n_predict, 128), # Adjust the desired length of the generated response
n=1, # Specify the number of responses you want
temperature=gpt_params["temperature"], # Adjust the temperature for more or less randomness in the output
stream=True
)
Same here, I just reported the issue to OpenAI through their help portal. It’ll be their servers throwing errors. Not currently showing any downtime or issues on their status page.
I just wanted to report that I am also experiencing the internal server error with the GPT-4 Vision API, similar to what other users have described. My code, which was working fine until recently, is now returning a 500 Internal Server Error with the message Something went wrong processing one of your images. I’m certain that my code hasn’t changed, so it seems this issue might be on the server side.
I hope this issue can be resolved quickly, as many of us rely on this API for important tasks. Looking forward to an update or a fix soon.
Error code: 500 - {‘error’: {‘message’: 'The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if you keep seeing this error