[Tracker]
Update Summary: [One-line status update for stakeholders]
Short Description: Replace the custom provider/model selectors in the AI Validations FieldValidationRule plugins with the Provider Configuration Form Element, with default models enabled.
Check-in Date: MM/DD/YYYY
[/Tracker]
Problem/Motivation
The AI Validations module currently rolls its own provider/model selection UI in each FieldValidationRule plugin that doesn't allow for default model, making recipes hard. The AI module now ships a reusable Provider Configuration Form Element that handles this consistently, including default model selection. See AI Provider Configuration Form Element.
Proposed resolution
- Switch
AiTextConstraintFieldValidationRuleto the Provider Configuration Form Element. - Switch
AiImageConstraintFieldValidationRuleto the Provider Configuration Form Element. - Switch
AiImageClassificationConstraintFieldValidationRuleto the Provider Configuration Form Element. - Enable default models on the element so each rule falls back to the site's configured default.
AI usage (if applicable)
[x] AI Assisted Issue
This issue was generated with AI assistance, but was reviewed and refined by the creator.
[ ] AI Assisted Code
[ ] AI Generated Code
[ ] Vibe Coded
- This issue was created with the help of AI
Issue fork ai_validations-3586397
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 #2
ahmad-khalil-imagexComment #4
ahmad-khalil-imagexComment #5
marcus_johansson commentedReviewing
Comment #6
marcus_johansson commentedSome feedback there. One of them you can skip if you feel like it, the other ones should be done if I didn't missunderstand something.
I also wonder if we should set these rules to final, so we can be pretty lenient with changing them in the future. Less of an issue though.