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

Abierto
#3,449 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C#
Estrellas
567
Forks
107
Merge medio
1 h 19 min
PR fusionados (30 d)
353

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de fluentcms/FluentCMS

Todos los issues de fluentcms/FluentCMS

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.