Add Erato preamble token

c4462cc8bb2f4898a250dfa6d29d526668d073b6

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +2 -2Ignore whitespace
public/script.js+1 -1
@@ -4863,7 +4863,7 @@ export function getMaxContextSize(overrideResponseLength = null) {
4863 this_max_context = Math.min(max_context, 8192);4863 this_max_context = Math.min(max_context, 8192);
48644864
4865 // Added special tokens and whatnot4865 // Added special tokens and whatnot
4866 this_max_context -= 1;4866 this_max_context -= 10;
4867 }4867 }
48684868
4869 this_max_context = this_max_context - (overrideResponseLength || amount_gen);4869 this_max_context = this_max_context - (overrideResponseLength || amount_gen);
public/scripts/nai-settings.js+1 -1
@@ -538,7 +538,7 @@ export function getNovelGenerationData(finalPrompt, settings, maxLength, isImper
538538
539539
540 if (isErato) {540 if (isErato) {
541 finalPrompt = '<|startoftext|>' + finalPrompt;541 finalPrompt = '<|startoftext|><|reserved_special_token81|>' + finalPrompt;
542 }542 }
543543
544 const adjustedMaxLength = (isKayra || isErato) ? getKayraMaxResponseTokens() : maximum_output_length;544 const adjustedMaxLength = (isKayra || isErato) ? getKayraMaxResponseTokens() : maximum_output_length;