From bbf28c74f76e44d344fbb39713ae0a7db1c5cce9 Mon Sep 17 00:00:00 2001 From: bmen25124 Date: Fri, 24 Jan 2025 04:27:12 +0300 Subject: [PATCH] New exported methods: getCharacters(), uuidv4(), humanizedDateTime() --- public/scripts/st-context.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/scripts/st-context.js b/public/scripts/st-context.js index 9cbf18210..a02fd5492 100644 --- a/public/scripts/st-context.js +++ b/public/scripts/st-context.js @@ -12,6 +12,7 @@ import { extension_prompts, Generate, generateQuietPrompt, + getCharacters, getCurrentChatId, getRequestHeaders, getThumbnailUrl, @@ -55,7 +56,7 @@ import { MacrosParser } from './macros.js'; import { oai_settings } from './openai.js'; import { callGenericPopup, Popup, POPUP_RESULT, POPUP_TYPE } from './popup.js'; import { power_user, registerDebugFunction } from './power-user.js'; -import { isMobile, shouldSendOnEnter } from './RossAscends-mods.js'; +import { humanizedDateTime, isMobile, shouldSendOnEnter } from './RossAscends-mods.js'; import { ScraperManager } from './scrapers.js'; import { executeSlashCommands, executeSlashCommandsWithOptions, registerSlashCommand } from './slash-commands.js'; import { SlashCommand } from './slash-commands/SlashCommand.js'; @@ -65,7 +66,7 @@ import { tag_map, tags } from './tags.js'; import { textgenerationwebui_settings } from './textgen-settings.js'; import { tokenizers, getTextTokens, getTokenCount, getTokenCountAsync, getTokenizerModel } from './tokenizers.js'; import { ToolManager } from './tool-calling.js'; -import { timestampToMoment } from './utils.js'; +import { timestampToMoment, uuidv4 } from './utils.js'; export function getContext() { return { @@ -167,6 +168,9 @@ export function getContext() { chatCompletionSettings: oai_settings, textCompletionSettings: textgenerationwebui_settings, powerUserSettings: power_user, + getCharacters, + uuidv4, + humanizedDateTime, }; }