Install
Works with Drupal: ^11.1 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
515.63 KB
MD5: aa53f457ffdf1a2dbdf399cc55487d83
SHA-1: a837390e54d87f2de71a7124f4fbdc68bf475d82
SHA-256: 3e5796542dc7f4ca62804ed3d354c959015aa763dd8cd10ee2392ef273a54cb7
Download zip
674.11 KB
MD5: 17fb12cdf13042f541c2edffd696ffc9
SHA-1: 86fca5c012bde5a286ed24da7bce5a3f11a88859
SHA-256: 461f76c12ebf5ccc71c14c09e51cca20b5d46252667a3e14fad57f2d47cfb40a
Release notes
Changes since 1.0.0-beta1.
Highlights
- No AI core patches required. Model IDs use a dot separator (
server.model, smart routesroute.<id>) andgetConfiguredModels()returns a flatmodel_id => labelmap. AI settings andai_searchresolve Universal models out of the box (fixes #3611069 — “Universal | Array” in the embeddings engine select). - Content governance submodule (
ai_provider_universal_governance): default Guardrail set attach, AI-origin provenance events, disclosure suffix / origin marker / fact-check and AI-likelihood Guardrail plugins, field-based disclosure UI, and recipes (see below). - Scheduled content review (factcheck): scan profiles enqueue checks on node save; cron/queue runs them; optional content-review events for ECA/Workflow.
Recipes
Bundled under recipes/ in the project. Apply with core’s recipe runner (path relative to your Drupal root; adjust if the module lives elsewhere). Recommended one-shot for an Art. 50-style setup:
php core/scripts/drupal recipe modules/contrib/ai_provider_universal/recipes/ai_content_governance_starter
ai_content_governance_starter— applies disclosure, enables governance + factcheck, installs scan profileeditorial_light(readability on published articles, event on threshold). Provenance emission and default Guardrail attach stay off until you configure them. Does not install ECA/Workflow.ai_content_disclosure— disclosure fields only: field storages + Article fields for AI origin, disclosure-required flag, and human-asserted exemption (with audit). Requires the Article content type. The governance submodule can render<meta name="ai-origin">and a visible label from these fields.factcheck_trusted_sites— trusted site content type (domain + reputation −10…10) for curating web evidence in fact check.factcheck_trusted_sites_seeds— optional example trusted-site nodes (created unpublished). Applyfactcheck_trusted_sitesfirst; set reputation and publish editorially.
Full design and ECA wiring notes: docs/content-governance.md. Fact-check trusted sites: docs/factcheck.md.
Upgrade notes (from beta1)
- Run database updates:
drush updb(update10102renames model entity IDs fromserver__machinetoserver.machineand rewrites stored references in AI defaults, smart routes, router/factcheck settings, Search API embeddings engines, and usage counters). - Clear caches:
drush cr. - If you previously applied the module’s recommended
drupal/aipatches (optgroups /explodelimit 2), you can remove them — they are no longer needed for this provider. - Optional: enable
ai_provider_universal_governance, or apply theai_content_governance_starterrecipe, then review Configuration → AI → Providers → Universal → Content governance.
Changes
- Flat model options with
Server: modellabels (no nested optgroups). - Model ID separator
.instead of__so AI core’sprovider__modelparsing stays correct. - Content governance submodule + recipes
ai_content_disclosure/ai_content_governance_starter. - Scan profiles for async content review (factcheck); starter profile via the governance recipe.
- Docs: glossary, servers-and-models, smart routing, usage limits, content governance; README installation, config paths, and recipes.
- Spanish translations updated (main, router, factcheck); new
ai_provider_universal_governance.es.po.
Requirements
Install: composer require 'drupal/ai_provider_universal:^1.0@beta'