Skip to content

/image command fails – Unknown parameter: 'quality' #695

@Grek-arch

Description

@Grek-arch

Hi! Thanks for this great bot.

I'm using the latest version of the project, deployed on Railway. The /image command doesn't work. Here's the error from the logs:

openai.BadRequestError: 400 - {'error': {'message': "Unknown parameter: 'quality'", 'type': 'invalid_request_error', 'param': 'quality', 'code': 'unknown_parameter'}}

It seems that the call to client.images.generate(...) includes the quality parameter, which is not supported anymore by the OpenAI API.

Could you please update the code to remove or fix the usage of this parameter? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions