Skip to content

Image Generation: Error messages not clear when providers don't support refinement #363

@Adi-ty

Description

@Adi-ty

Description

Referring to: https://core.trac.wordpress.org/ticket/64918

When users attempt to refine (edit) a generated image, they receive the error: "No models found that support image_generation for this prompt."

This error message is unclear because it doesn't explain that some AI providers may not support image refinement, what the user should do to resolve the issue or whether it's a provider configuration issue vs. a model limitation

Step-by-step reproduction instructions

  1. Go to Settings > Connectors and add a valid API key for OpenAI
  2. Generate image in new post using image block.
  3. Refine generated image.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except the AI plugin.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions