#1403 Add Aphrodite multi-swipe

This commit is contained in:
Cohee
2023-12-03 20:40:09 +02:00
parent 676cc7731e
commit 1786b0d340
6 changed files with 96 additions and 12 deletions

View File

@ -183,7 +183,7 @@ export async function generateKoboldWithStreaming(generate_data, signal) {
if (subEvent.startsWith('data')) {
let data = JSON.parse(subEvent.substring(5));
getMessage += (data?.token || '');
yield getMessage;
yield { text: getMessage, swipes: [] };
}
}
}