Problem/Motivation

With a model that does not exist, the editor reads "This could not be made. Try again." Retrying cannot help. A wrong key already shows "Generation is not available right now. Ask your site administrator."

Steps to reproduce

  1. Set a model name that does not exist.
  2. Generate.

Proposed resolution

Treat an unknown or rejected model as a configuration error and show the administrator message.

Generating with the model set to gpt-image-does-not-exist.

Before (1.0.x), the editor is told to try again:

 This could not be made. Try again.

After, the editor is told to ask the site administrator:

 Generation is not available right now. Ask your site administrator.

Before (1.0.x), the administrator gets the provider details only:

 The model does not exist. Check AI settings

After, the administrator is told to check the model:

 The model does not exist. Check the model chosen for this operation. Check AI settings

Remaining tasks

  • ✅ File an issue
  • ❌ Addition/Change/Update/Fix
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support
  • ➖ User Guide Documentation support
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ✅ Update Release Notes
  • ✅ Release

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A

AI-Generated: Yes

Issue fork ai_media-3634861

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

  • rajab natshah committed 0b455dbb on 1.0.x
    fix: #3634861 Tell the editor to ask an administrator when the model...
rajab natshah’s picture

Issue summary: View changes
StatusFileSize
new78.15 KB
new79.25 KB
new92.32 KB
new94.31 KB
rajab natshah’s picture

Issue summary: View changes
Status: Active » Fixed
Issue tags: +ai_media-1.0.0-rc1

✅ Released ai_media-1.0.0-rc1

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.