Impersonate poe

This commit is contained in:
SillyLossy
2023-04-15 00:50:48 +03:00
parent c0eb8190c7
commit 1df57fd9ed
4 changed files with 51 additions and 9 deletions

View File

@ -1919,10 +1919,10 @@ async function Generate(type, automatic_trigger, force_name2) {
}
else if (main_api == 'poe') {
if (isStreamingEnabled()) {
streamingProcessor.generator = await generatePoe(finalPromt);
streamingProcessor.generator = await generatePoe(type, finalPromt);
}
else {
generatePoe(finalPromt).then(onSuccess).catch(onError);
generatePoe(type, finalPromt).then(onSuccess).catch(onError);
}
}
else if (main_api == 'textgenerationwebui' && textgenerationwebui_settings.streaming) {