Make WordPress Core

Opened 8 months ago

Closed 5 months ago

#64918 closed defect (bug) (reported-upstream)

WP 7.0 Connectors: No models found that support image_generation

Reported by: ecairol Owned by:
Priority: normal Milestone:
Component: AI Version: 7.0
Severity: normal Keywords: ai-client has-patch close
Cc: Focuses:

Description

Immediately after generating an image with AI, the modal offers the option to Refine.

However, I keep getting the error No models found that support image_generation for this prompt. after trying to refine the image that was just generated.

Steps to Reproduce

  1. Go to Settings > Connectors and add a valid API key for OpenAI
  2. Create a New Post and add an Image Block
  3. Click on "Generate Image" and type in a prompt
  4. After the image is created, click on Refine Image
  5. Type in a prompt for the image refinement

Expected
The image should be updated.

Actual
The site throws an error saying there are no models that support image generation.

Attachments (1)

Screenshot 2026-03-20 at 1.30.21 PM.png​ (1.7 MB ) - added by ecairol 8 months ago.

Download all attachments as: .zip

Change History (14)

#1 @JeffPaul
8 months ago

  • Keywords ai-client added

#2 @JeffPaul
8 months ago

  • Milestone Awaiting Review → 7.0
  • Version → trunk

This ticket was mentioned in ​Slack in #core by mukeshpanchal27. ​View the logs.


8 months ago

#4 @joedolson
8 months ago

  • Milestone 7.0 → 7.0.1

#5 @JeffPaul
8 months ago

Similar to #64917, we should ensure there's better direction for a user on how to resolve this issue. Perhaps something as noted in https://core.trac.wordpress.org/ticket/64917#comment:5:

This requires an AI provider that supports <capability-name>, but none are active. Please go to the Connectors settings page and enable an appropriate provider.

Separately, this is something we've wrestled with in the ​AI plugin and whether we should disable feature/experiment availability if a corresponding provider+model-capability is not available. However if someone has this working as expected and then runs out of tokens/credits or there's an issue with a provider's API, then we run into the same problem. Curious for folks' input on most optimal way to handle for various scenarios here.

#6 @kapilpaul
8 months ago

When I am trying to generate an image it's giving me an error like this.

https://i.ibb.co/Lh1ZkZ7N/Screenshot-2026-03-24-at-9-49-16-PM.png

#7 @iamadisingh
7 months ago

After investigating, I think this is more likely a plugin capability/declaration issue. With Gemini image refinement works fine. With OpenAI, the error shown is "No models found that support image_generation for this prompt," that suggests this is likely a plugin capability-mapping issue. The current error, “No models found that support image_generation for this prompt,” is probably happening because OpenAI provider still advertises GPT image models with text-only input.

Last edited 7 months ago by iamadisingh (previous) (diff)

#8 @audrasjb
6 months ago

Removing trunk version as this is not going to be shipped with WP 7.0 but in the next releases.

#9 follow-up: @khokansardar
6 months ago

  • Keywords has-patch added

I've addressed the issues here with a PR ​https://github.com/WordPress/ai-provider-for-openai/pull/29

#10 in reply to: ↑ 9 @desrosj
6 months ago

  • Keywords close added

Replying to khokansardar:

I've addressed the issues here with a PR ​https://github.com/WordPress/ai-provider-for-openai/pull/29

Adding a close suggestion with reported-upstream resolution after validating this is the desired approach.

This ticket was mentioned in ​Slack in #core by jorbin. ​View the logs.


5 months ago

This ticket was mentioned in ​Slack in #core-ai by masteradhoc. ​View the logs.


5 months ago

#13 @masteradhoc
5 months ago

  • Milestone 7.0.1
  • Resolution → reported-upstream
  • Status new → closed
Note: See TracTickets for help on using tickets.