This commit is contained in:
greeneclipse committed 2026-10-14 18:47:00 +02:00
1 parent 7537a41955
commit ff6c2df618
14 files changed
+767 -349

No files matched your search

+2 -1
View File
@@ -102,7 +102,7 @@ func loadCategoryPromptsFromWPSQL(path string) (categoryPromptsFile, error) {
entries = append(entries, categoryPromptEntry{
Name: e.Name,
UniqueID: e.UniqueID,
Prompt: e.Prompt,
Prompt: func() string { value, _ := aiprompts.NormalizeA1RepeatedBenefits(e.Prompt); return value }(),
})
}
if len(entries) == 0 {
@@ -201,6 +201,7 @@ func applyCategoryPrompts(ctx context.Context, pg *pgxpool.Pool, companyID uuid.
continue
}
raw := strings.TrimSpace(e.Prompt)
raw, _ = aiprompts.NormalizeA1RepeatedBenefits(raw)
var canonical string
if raw == "" {
out.Skipped++