Make groups on OAI work

This commit is contained in:
SillyLossy
2023-03-24 22:21:33 +02:00
parent 73b76d3974
commit 4f0e9ab417
2 changed files with 20 additions and 1 deletions

View File

@ -1129,7 +1129,7 @@ async function Generate(type, automatic_trigger, force_name2) {//encode("dsfs").
let mesExamplesArray = mesExamples.split(/<START>/gi).slice(1).map(block => `<START>\n${block.trim()}\n`);
if (main_api === 'openai') {
const oai_chat = [...chat];
const oai_chat = [...chat].filter(x => !x.is_system);
if (type == 'swipe') {
oai_chat.pop();