diff --git a/htdocs/core/class/html.formmail.class.php b/htdocs/core/class/html.formmail.class.php index d88c24fd9b6..ccf22410156 100644 --- a/htdocs/core/class/html.formmail.class.php +++ b/htdocs/core/class/html.formmail.class.php @@ -1506,6 +1506,10 @@ class FormMail extends Form $out .= ''.$langs->trans("AIProcessingPleaseWait", getDolGlobalString('AI_API_SERVICE', 'chatgpt')); $out .= ''; + if ($function == 'imagegeneration') { + $out .= '
'; // Div for displaying the generated image + } + $out .= "\n"; $out .= "