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

Offen
#3,449 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
25/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
csharp

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
C#
Sterne
567
Forks
107
Ø Merge
1 Std. 19 Min.
Gemergte PRs (30 T.)
353

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus fluentcms/FluentCMS

Alle Issues in fluentcms/FluentCMS

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.