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

Aperta
#3,449 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C#
Stelle
567
Fork
107
Merge medio
1h 19m
PR unite (30g)
353

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fluentcms/FluentCMS

Tutte le issue di fluentcms/FluentCMS

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.