Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The server should return better error codes when generating OpenAI images with unacceptable parameters #565

Open
KallynGowdy opened this issue Oct 30, 2024 · 0 comments · May be fixed by #582
Assignees
Labels
area:backend Is related to the backend server. (Everything in aux-records and aux-server/aux-backend) bug Something isn't working

Comments

@KallynGowdy
Copy link
Member

KallynGowdy commented Oct 30, 2024

Currently, when calling ai.generateImage() with a parameter that isn't accepted by the selected model, the server will simply return a server_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 with dall-e-2 and dall-e-3
  • steps < 10 with stable-diffusion-xl-1024-v1-0
@KallynGowdy KallynGowdy converted this from a draft issue Oct 30, 2024
@KallynGowdy KallynGowdy added bug Something isn't working area:backend Is related to the backend server. (Everything in aux-records and aux-server/aux-backend) labels Oct 30, 2024
@TroyceGowdy TroyceGowdy self-assigned this Dec 6, 2024
@TroyceGowdy TroyceGowdy moved this from Backlog to In progress in CasualOS Dec 6, 2024
@TroyceGowdy TroyceGowdy moved this from In progress to In review in CasualOS Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:backend Is related to the backend server. (Everything in aux-records and aux-server/aux-backend) bug Something isn't working
Projects
Status: In review
2 participants