Add Erato preamble token
| @@ -4863,7 +4863,7 @@ export function getMaxContextSize(overrideResponseLength = null) { | ||
| 4863 | 4863 | this_max_context = Math.min(max_context, 8192); |
| 4864 | 4864 | |
| 4865 | 4865 | // Added special tokens and whatnot |
| 4866 | 4866 | this_max_context -= 110; |
| 4867 | 4867 | } |
| 4868 | 4868 | |
| 4869 | 4869 | this_max_context = this_max_context - (overrideResponseLength || amount_gen); |
| @@ -538,7 +538,7 @@ export function getNovelGenerationData(finalPrompt, settings, maxLength, isImper | ||
| 538 | 538 | |
| 539 | 539 | |
| 540 | 540 | if (isErato) { |
| 541 | 541 | finalPrompt = '<|startoftext|><|reserved_special_token81|>' + finalPrompt; |
| 542 | 542 | } |
| 543 | 543 | |
| 544 | 544 | const adjustedMaxLength = (isKayra || isErato) ? getKayraMaxResponseTokens() : maximum_output_length; |