Fix itemization viewer

This commit is contained in:
Cohee 2023-10-11 22:09:24 +03:00
parent c4fbc8373d
commit 59ae661f62
1 changed files with 1 additions and 1 deletions

View File

@ -659,7 +659,7 @@ function populateChatCompletion(prompts, chatCompletion, { bias, quietPrompt, ty
// Add quiet prompt to control prompts
// This should always be last, even in control prompts. Add all further control prompts BEFORE this prompt
const quietPromptMessage = Message.fromPrompt(prompts.get('quietPrompt')) ?? null;
if (quietPromptMessage) controlPrompts.add(quietPromptMessage);
if (quietPromptMessage && quietPromptMessage.content) controlPrompts.add(quietPromptMessage);
chatCompletion.reserveBudget(controlPrompts);