Fixed out of index error

294dc3b3b149f57e60a0e3164a0b058edc844dea

bmen25124 <bmen25124@gmail.com>

1 files changed, +1 -1Showing whitespace changes
public/scripts/custom-request.js+1 -1
@@ -242,7 +242,7 @@ export class TextCompletionService {
242242
243243 // Format messages using instruct formatting
244244 const formattedMessages = [];
245245 const prefillActive = prompt.length > 0 ? prompt[prompt.length - 1].role === 'assistant' : false;
246246 for (const message of prompt) {
247247 let messageContent = message.content;
248248 if (!message.ignoreInstruct) {