Open KRIShark opened 1 month ago
Thank you for reaching out, @KRIShark ! Error code 500 suggests that the service was having an issue and not that there was something wrong with your code. Are you still having this issue by any chance?
I found out that the issue was that the prompt contained an image and the options to set some parameters, and if both were given, then the error 500 occurred. I tested it now with both, and now it is working. So it may have been an issue with the OpenAI API.
Service
OpenAI
Describe the bug
Receiving a 500 error when using the OpenAI API to create image descriptions (Vision) in C#. The error occurs on the line making the API call using model "gpt-4o-mini". The code fails when sending a request with an image part, leading to an internal server error.
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
Steps to reproduce
Where the text is bold, the error will occur.
Code snippets
OS
windows 11
.NET version
.NET 8
Library version
2.0.0