Debug v22
This commit is contained in:
parent
333a32ba97
commit
a993ef3b00
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue