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(); coreChat.pop();
} }
if (extension_settings.chromadb.n_results !== 0) {
await runGenerationInterceptors(coreChat); await runGenerationInterceptors(coreChat);
console.log(`Core/all messages: ${coreChat.length}/${chat.length}`); console.log(`Core/all messages: ${coreChat.length}/${chat.length}`);
}
if (main_api === 'openai') { if (main_api === 'openai') {
message_already_generated = ''; // OpenAI doesn't have multigen message_already_generated = ''; // OpenAI doesn't have multigen

View File

@@ -15,7 +15,7 @@ const defaultSettings = {
keep_context_step: 1, keep_context_step: 1,
n_results: 20, n_results: 20,
n_results_min: 1, n_results_min: 0,
n_results_max: 100, n_results_max: 100,
n_results_step: 1, n_results_step: 1,