From d813ec4ef3a5f1af4ef4975940037bf564705a5c Mon Sep 17 00:00:00 2001 From: Cohee Date: Thu, 29 Jun 2023 18:32:57 +0300 Subject: [PATCH] Fix Novel tablet tier context size --- public/script.js | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/public/script.js b/public/script.js index 7f267434d..3f665e0f9 100644 --- a/public/script.js +++ b/public/script.js @@ -2769,20 +2769,16 @@ function getMaxContextSize() { this_max_context = (max_context - amount_gen); } if (main_api == 'novel') { - if (novel_tier === 1) { - this_max_context = 1024; - } else { - this_max_context = Number(max_context); - if (nai_settings.model_novel == 'krake-v2') { - // Krake has a max context of 2048 - // Should be used with nerdstash tokenizer for best results - this_max_context = Math.min(max_context, 2048); - } - if (nai_settings.model_novel == 'clio-v1') { - // Clio has a max context of 8192 - // Should be used with nerdstash_v2 tokenizer for best results - this_max_context = Math.min(max_context, 8192); - } + this_max_context = Number(max_context); + if (nai_settings.model_novel == 'krake-v2' || nai_settings.model_novel == 'euterpe-v2') { + // Krake and Euterpe have a max context of 2048 + // Should be used with nerdstash tokenizer for best results + this_max_context = Math.min(max_context, 2048); + } + if (nai_settings.model_novel == 'clio-v1') { + // Clio has a max context of 8192 + // Should be used with nerdstash_v2 tokenizer for best results + this_max_context = Math.min(max_context, 8192); } } if (main_api == 'openai') {