AI assist: a site switch for alt text on assets, the altText reservation, a bound on totals.groups and the scrub of a principal's name

Ouverte
#3,449 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
25/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
csharp

Piste de recherche

Start in src/plugins/FluentCMS.Plugins.AiAssist/, especially AiAssistService.cs around line 241, and trace the asset field settings, usage endpoint, and SDK activity text helpers described in the issue. Read the related issues #3418 and #3439 and backend spec 5.5; the request spans plugin behavior, SDK access, tests, and spec corrections. Done means all six requested changes are covered, including a test for the site switch.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

plugin type:bug

Follow-ups of alt text for an asset and of the names in the AI usage (#3418, #3439), found in its review. Paths are under src/plugins/FluentCMS.Plugins.AiAssist/.

  • No site switch for alt text on assets. Once a site names a provider, every image a caller may read and update can be sent to it, also with fields empty. Let a site turn the action off for assets.
  • altText reserves the estimate of a draft it does not read. With no text, the call reserves MaxInputLength × 3 tokens (60,000 by default) until the image is read (AiAssistService.cs, around line 241). Older than #3439; the asset path always meets it.
  • totals.groups has no bound. It is computed and returned with every page of GET /ai/usage: principals × actions.
  • A plugin cannot scrub and cut an actor's name as core does. Core writes a version's author and an activity row's actor through ActivityText.Required (SecretScrubber.Of, then a cut that respects surrogate pairs), both internal. The AI usage row stores the name raw, so one key name can read scrubbed in a version's authorName and raw in /ai/usage. Give plugins the scrub and the cut through the SDK.
  • Text. Backend spec 5.5 ("Usage") names the migration InitialAi; the class is Initial. The line "Waits for #3101 and #3103" under the table of admin spec 5.5 is stale.
  • Nit. MayDescribeAssetsAsync asks ResourcesAsync twice; IEffectiveAccess.HeldAsync, already injected, answers it in one call.

Wanted

  • A setting of the site, off or on, for alt text on assets, shown by GET /ai/fields, with a test.
  • The reservation of altText sized to what the call sends.
  • totals.groups bounded or paged, or asked for by a parameter.
  • The SDK member, and the usage row written through it.
  • The two sentences corrected.

Bundle 29.

Langage dominant
C#
Étoiles
567
Forks
107
Merge moyen
1 h 19 min
PR mergées (30 j)
353

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de fluentcms/FluentCMS

Toutes les issues de fluentcms/FluentCMS

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.