Problem/Motivation

A description made only of symbols, such as "!!! ***", is sent to the provider. That is a paid request, and the model invents a subject.

Steps to reproduce

  1. Enter !!! *** as the description.
  2. Click Generate.

Proposed resolution

Refuse a description with no letter or digit in any script (\p{L}\p{N}) with a field error, before any request.

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

  • Before (1.0.x): a description of only symbols is sent to the provider.
     a description of only symbols is sent to the provider.
  • After: "Enter words, not only symbols." under the field, and no request.
     "Enter words, not only symbols." under the field, and no request.

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A

AI-Generated: Yes

Issue fork ai_media-3634867

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’s picture

Issue summary: View changes
StatusFileSize
new70.8 KB
new69.62 KB

  • rajab natshah committed 5e15f45b on 1.0.x
    fix: #3634867 Refuse a description with no letters or digits before...
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.