Fix group nudge causing error

This commit is contained in:
maver 2023-08-20 20:18:10 +02:00
parent c3c99c534e
commit cb5b410daf
1 changed files with 1 additions and 1 deletions

View File

@ -489,7 +489,7 @@ function populateChatHistory(prompts, chatCompletion, type = null, cyclePrompt =
// Reserve budget for group nudge
let groupNudgeMessage = null;
if (selected_group) {
const groupNudgeMessage = new Message.fromPrompt(prompts.get('groupNudge'));
const groupNudgeMessage = Message.fromPrompt(prompts.get('groupNudge'));
chatCompletion.reserveBudget(groupNudgeMessage);
}