[WIP} infinity context

This commit is contained in:
Mark Ceter
2023-05-17 17:58:58 +00:00
parent 9156e7f43d
commit d2803f6451
5 changed files with 107 additions and 1 deletions

View File

@ -107,7 +107,7 @@ import {
} from "./scripts/poe.js";
import { debounce, delay, restoreCaretPosition, saveCaretPosition, end_trim_to_sentence } from "./scripts/utils.js";
import { extension_settings, loadExtensionSettings } from "./scripts/extensions.js";
import { extension_settings, loadExtensionSettings, runGenerationInterceptors } from "./scripts/extensions.js";
import { executeSlashCommands, getSlashCommandsHelp, registerSlashCommand } from "./scripts/slash-commands.js";
import {
tag_map,
@ -1651,6 +1651,8 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
setGenerationProgress(0);
tokens_already_generated = 0;
generation_started = new Date();
await runGenerationInterceptors();
const isImpersonate = type == "impersonate";
const isInstruct = power_user.instruct.enabled;