Skip to content

Commit faaf61d

Browse files
committed
fix: fix global base prompt in free text
1 parent 711113d commit faaf61d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/components/modai/src/Processors/Prompt/FreeText.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function process()
2525
$temperature = (float)Settings::getSetting($this->modx, 'global.temperature', $model);
2626
$maxTokens = (int)Settings::getSetting($this->modx, 'global.max_tokens', $model);
2727

28-
$base = Settings::getPrompt($this->modx, 'base');
28+
$base = Settings::getPrompt($this->modx, 'global.base');
2929
if (!empty($base)) {
3030
$messages[] = [
3131
'role' => 'system',

0 commit comments

Comments
 (0)