fixes
This commit is contained in:
1 parent
3b0d692839
commit
8b540d22bc
14 files changed
+526
-82
No files matched your search
@@ -95,7 +95,14 @@ func withDefaultCategoryFormula(in ProductInput) ProductInput {
|
||||
if def.Overlay == "" {
|
||||
return in
|
||||
}
|
||||
// The language selected for product processing must also select the
|
||||
// formula language, even when this is an uncached legacy category.
|
||||
in.CategoryEnhancePrompt = def.Overlay
|
||||
if lang := company.NormalizeLanguage(in.Language); company.IsAllowedLanguage(lang) {
|
||||
if localized, err := aiprompts.OfflineDefaultPrompt(lang); err == nil {
|
||||
in.CategoryEnhancePrompt = localized
|
||||
}
|
||||
}
|
||||
if in.TitleTemplate == nil && def.TitleTemplateJSON != "" {
|
||||
in.TitleTemplate = decodeOptionalJSONObject([]byte(def.TitleTemplateJSON))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user