fix: #3634861 Tell the editor to ask an administrator when the model does not exist

Issue: https://www.drupal.org/project/ai_media/issues/3634861

A model that does not exist (HTTP 404, model_not_found, or a "model ... does not exist" message) is a setup problem, so the editor now reads "Generation is not available right now. Ask your site administrator." instead of being told to try again. Administrators get "Check the model chosen for this operation." Kernel cases added.

Before and after

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

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

Before, editor: This could not be made. Try again.

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

After, editor: Generation is not available right now. Ask your site administrator.

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

Before, administrator: This could not be made. Try again. Details: The model does not exist. Check AI settings

After, the administrator is told to check the model:

After, administrator: Generation is not available right now. Details: The model does not exist. Check the model chosen for this operation. Check AI settings

AI-Generated: Yes

Checkpoints:

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

🤖 Generated with Claude Code

Edited by Rajab Natshah

Merge request reports

Loading
Loading