The server should return better error codes when generating OpenAI images with unacceptable parameters #565
Labels
area:backend
Is related to the backend server. (Everything in aux-records and aux-server/aux-backend)
bug
Something isn't working
Currently, when calling
ai.generateImage()
with a parameter that isn't accepted by the selected model, the server will simply return aserver_error
code. The should be able to handle HTTP 400 Bad Request responses from the model provider (openai, google, etc.), and return a proper response to the user.Examples of parameters which can cause this issue:
width=123
withdall-e-2
anddall-e-3
steps < 10
withstable-diffusion-xl-1024-v1-0
The text was updated successfully, but these errors were encountered: