Allow group nudge in chat completions.

This commit is contained in:
Cohee 2023-10-02 00:24:16 +03:00
parent 384e8d43a6
commit 82182015e2
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 // Reserve budget for group nudge
let groupNudgeMessage = null; let groupNudgeMessage = null;
if (selected_group) { if (selected_group) {
const groupNudgeMessage = Message.fromPrompt(prompts.get('groupNudge')); groupNudgeMessage = Message.fromPrompt(prompts.get('groupNudge'));
chatCompletion.reserveBudget(groupNudgeMessage); chatCompletion.reserveBudget(groupNudgeMessage);
} }