fix
This commit is contained in:
1 parent
7537a41955
commit
ff6c2df618
14 files changed
+767
-349
No files matched your search
@@ -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++
|
||||
|
||||
Reference in new issue
Block a user