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
- Set a model name that does not exist.
- 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:

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

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

After, the administrator is told to check the model:

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
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3634861-after-admin.png | 94.31 KB | rajab natshah |
| #4 | 3634861-before-admin.png | 92.32 KB | rajab natshah |
| #4 | 3634861-after-editor.png | 79.25 KB | rajab natshah |
| #4 | 3634861-before-editor.png | 78.15 KB | rajab natshah |
Issue fork ai_media-3634861
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
Comment #4
rajab natshahComment #5
rajab natshah✅ Released ai_media-1.0.0-rc1