mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix Novel tablet tier context size
This commit is contained in:
@ -2769,20 +2769,16 @@ function getMaxContextSize() {
|
|||||||
this_max_context = (max_context - amount_gen);
|
this_max_context = (max_context - amount_gen);
|
||||||
}
|
}
|
||||||
if (main_api == 'novel') {
|
if (main_api == 'novel') {
|
||||||
if (novel_tier === 1) {
|
this_max_context = Number(max_context);
|
||||||
this_max_context = 1024;
|
if (nai_settings.model_novel == 'krake-v2' || nai_settings.model_novel == 'euterpe-v2') {
|
||||||
} else {
|
// Krake and Euterpe have a max context of 2048
|
||||||
this_max_context = Number(max_context);
|
// Should be used with nerdstash tokenizer for best results
|
||||||
if (nai_settings.model_novel == 'krake-v2') {
|
this_max_context = Math.min(max_context, 2048);
|
||||||
// Krake has a max context of 2048
|
}
|
||||||
// Should be used with nerdstash tokenizer for best results
|
if (nai_settings.model_novel == 'clio-v1') {
|
||||||
this_max_context = Math.min(max_context, 2048);
|
// Clio has a max context of 8192
|
||||||
}
|
// Should be used with nerdstash_v2 tokenizer for best results
|
||||||
if (nai_settings.model_novel == 'clio-v1') {
|
this_max_context = Math.min(max_context, 8192);
|
||||||
// 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') {
|
if (main_api == 'openai') {
|
||||||
|
Reference in New Issue
Block a user