Fix first.mes continue for Chat Comps

This commit is contained in:
Cohee 2023-10-10 20:54:09 +03:00
parent 2c54627926
commit 7be3718a36
1 changed files with 1 additions and 1 deletions

View File

@ -2691,7 +2691,7 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
}
// Only add the chat in context if past the greeting message
if (isContinue && chat2.length > 1) {
if (isContinue && (chat2.length > 1 || main_api === 'openai')) {
cyclePrompt = chat2.shift();
}