Fixed out of index error
| @@ -242,7 +242,7 @@ export class TextCompletionService { | ||
| 242 | 242 | |
| 243 | 243 | // Format messages using instruct formatting |
| 244 | 244 | const formattedMessages = []; |
| 245 | 245 | const prefillActive = prompt.length > 0 ? prompt[prompt.length - 1].role === 'assistant' : false; |
| 246 | 246 | for (const message of prompt) { |
| 247 | 247 | let messageContent = message.content; |
| 248 | 248 | if (!message.ignoreInstruct) { |