Merge pull request #3340 from bmen25124/export_getCharacters_uuidv4_humanizedDateTime New exported methods: getCharacters(), uuidv4(), humanizedDateTime()

d4672b3517a09e023dcae9257eff3f2adff68797

Wolfsblvt <wolfsblvt@gmail.com>

Signed
1 files changed, +6 -2Showing whitespace changes
public/scripts/st-context.js+6 -2
@@ -12,6 +12,7 @@ import {
1212 extension_prompts,
1313 Generate,
1414 generateQuietPrompt,
15+ getCharacters,
1516 getCurrentChatId,
1617 getRequestHeaders,
1718 getThumbnailUrl,
@@ -55,7 +56,7 @@ import { MacrosParser } from './macros.js';
5556import { oai_settings } from './openai.js';
5657import { callGenericPopup, Popup, POPUP_RESULT, POPUP_TYPE } from './popup.js';
5758import { power_user, registerDebugFunction } from './power-user.js';
5859import { humanizedDateTime, isMobile, shouldSendOnEnter } from './RossAscends-mods.js';
5960import { ScraperManager } from './scrapers.js';
6061import { executeSlashCommands, executeSlashCommandsWithOptions, registerSlashCommand } from './slash-commands.js';
6162import { SlashCommand } from './slash-commands/SlashCommand.js';
@@ -65,7 +66,7 @@ import { tag_map, tags } from './tags.js';
6566import { textgenerationwebui_settings } from './textgen-settings.js';
6667import { tokenizers, getTextTokens, getTokenCount, getTokenCountAsync, getTokenizerModel } from './tokenizers.js';
6768import { ToolManager } from './tool-calling.js';
6869import { timestampToMoment, uuidv4 } from './utils.js';
6970
7071export function getContext() {
7172 return {
@@ -167,6 +168,9 @@ export function getContext() {
167168 chatCompletionSettings: oai_settings,
168169 textCompletionSettings: textgenerationwebui_settings,
169170 powerUserSettings: power_user,
171+ getCharacters,
172+ uuidv4,
173+ humanizedDateTime,
170174 };
171175}
172176