Error with Vision request #334
Unanswered
drosos-kal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
];
ChatCompletion completion = await client.CompleteChatAsync(messages);
This code block returns this exception on CompleteChatAsync:
System.ClientModel.ClientResultException: HTTP 400 (invalid_request_error: image_parse_error)
You uploaded an unsupported image. Please make sure your image is valid.
However, the mediaType is "image/jpeg" as it should, the byteImage is a correct, working file when saved with this:
File.WriteAllBytesAsync("debug-image.jpg", byteImage)
and a rather small file too.
Code works as intended for all other images tested (~20 or so) except a specific one
Any help will be much appreciated! Thanks
Beta Was this translation helpful? Give feedback.
All reactions