Don't use user filler

2b32c8638aa93059d636d54876869e67386e5f7c

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -3Ignore whitespace
src/prompt-converters.js+2 -3
@@ -401,9 +401,8 @@ function convertAI21Messages(messages, charName = '', userName = '') {
401401
402402 messages.splice(0, i);
403403
404- // Check if the first message in the array is of type user, if not, interject with humanMsgFix or a blank message.
404+ // Prevent erroring out if the messages array is empty.
405- // Also prevents erroring out if the messages array is empty.
405+ if (messages.length === 0) {
406- if (messages.length === 0 || (messages.length > 0 && messages[0].role !== 'user')) {
407406 messages.unshift({
408407 role: 'user',
409408 content: '[Start a new chat]',