From a993ef3b009ca93f7ea6215bac45b7d725b3ed09 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 11 Jun 2025 03:56:29 +0200 Subject: [PATCH] Debug v22 --- htdocs/ai/class/ai.class.php | 5 +++++ 1 file changed, 5 insertions(+) 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; }