Fix some code

This commit is contained in:
Cohee
2024-03-24 21:42:27 +02:00
parent 6f7e7b85ab
commit df805d692b
2 changed files with 8 additions and 8 deletions

View File

@ -4586,7 +4586,7 @@ function extractMultiSwipes(data, type) {
return swipes;
}
if (main_api === 'openai' || main_api === 'mancer' || (main_api === 'textgenerationwebui' && textgen_settings.type === textgen_types.APHRODITE)) {
if (main_api === 'openai' || (main_api === 'textgenerationwebui' && [MANCER, APHRODITE].includes(textgen_settings.type))) {
if (!Array.isArray(data.choices)) {
return swipes;
}