allow Chroma slider to go to 0 to disable

This commit is contained in:
RossAscends
2023-05-28 18:53:55 +09:00
parent 6ab9e0f182
commit 0e0f490c98
2 changed files with 5 additions and 3 deletions

View File

@@ -1862,8 +1862,10 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
coreChat.pop();
}
await runGenerationInterceptors(coreChat);
console.log(`Core/all messages: ${coreChat.length}/${chat.length}`);
if (extension_settings.chromadb.n_results !== 0) {
await runGenerationInterceptors(coreChat);
console.log(`Core/all messages: ${coreChat.length}/${chat.length}`);
}
if (main_api === 'openai') {
message_already_generated = ''; // OpenAI doesn't have multigen