Debug v22

This commit is contained in:
Laurent Destailleur 2025-06-11 03:56:29 +02:00
parent 333a32ba97
commit a993ef3b00

View file

@ -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;
}