diff --git a/htdocs/ai/class/ai.class.php b/htdocs/ai/class/ai.class.php index 617aa731ace..aabb2da2957 100644 --- a/htdocs/ai/class/ai.class.php +++ b/htdocs/ai/class/ai.class.php @@ -160,12 +160,17 @@ class Ai $postPrompt = $configurations[$function]['postPrompt']; } } + + // Get the default value of prePrompt if not defined if (empty($prePrompt) && $function == 'textgenerationemail') { $prePrompt = self::AI_DEFAULT_PROMPT_FOR_EMAIL; } if (empty($prePrompt) && $function == 'textgenerationwebpage') { $prePrompt = self::AI_DEFAULT_PROMPT_FOR_WEBPAGE; } + if (empty($prePrompt) && $function == 'textgenerationextrafield') { + $prePrompt = self::AI_DEFAULT_PROMPT_FOR_EXTRAFIELD_FILLER; + } if (empty($prePrompt) && $function == 'texttranslation') { $prePrompt = self::AI_DEFAULT_PROMPT_FOR_TEXT_TRANSLATION; }