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 -2Ignore whitespace
public/scripts/st-context.js+6 -2
@@ -12,6 +12,7 @@ import {
12 extension_prompts,12 extension_prompts,
13 Generate,13 Generate,
14 generateQuietPrompt,14 generateQuietPrompt,
15 getCharacters,
15 getCurrentChatId,16 getCurrentChatId,
16 getRequestHeaders,17 getRequestHeaders,
17 getThumbnailUrl,18 getThumbnailUrl,
@@ -55,7 +56,7 @@ import { MacrosParser } from './macros.js';
55import { oai_settings } from './openai.js';56import { oai_settings } from './openai.js';
56import { callGenericPopup, Popup, POPUP_RESULT, POPUP_TYPE } from './popup.js';57import { callGenericPopup, Popup, POPUP_RESULT, POPUP_TYPE } from './popup.js';
57import { power_user, registerDebugFunction } from './power-user.js';58import { power_user, registerDebugFunction } from './power-user.js';
58import { isMobile, shouldSendOnEnter } from './RossAscends-mods.js';59import { humanizedDateTime, isMobile, shouldSendOnEnter } from './RossAscends-mods.js';
59import { ScraperManager } from './scrapers.js';60import { ScraperManager } from './scrapers.js';
60import { executeSlashCommands, executeSlashCommandsWithOptions, registerSlashCommand } from './slash-commands.js';61import { executeSlashCommands, executeSlashCommandsWithOptions, registerSlashCommand } from './slash-commands.js';
61import { SlashCommand } from './slash-commands/SlashCommand.js';62import { SlashCommand } from './slash-commands/SlashCommand.js';
@@ -65,7 +66,7 @@ import { tag_map, tags } from './tags.js';
65import { textgenerationwebui_settings } from './textgen-settings.js';66import { textgenerationwebui_settings } from './textgen-settings.js';
66import { tokenizers, getTextTokens, getTokenCount, getTokenCountAsync, getTokenizerModel } from './tokenizers.js';67import { tokenizers, getTextTokens, getTokenCount, getTokenCountAsync, getTokenizerModel } from './tokenizers.js';
67import { ToolManager } from './tool-calling.js';68import { ToolManager } from './tool-calling.js';
68import { timestampToMoment } from './utils.js';69import { timestampToMoment, uuidv4 } from './utils.js';
6970
70export function getContext() {71export function getContext() {
71 return {72 return {
@@ -167,6 +168,9 @@ export function getContext() {
167 chatCompletionSettings: oai_settings,168 chatCompletionSettings: oai_settings,
168 textCompletionSettings: textgenerationwebui_settings,169 textCompletionSettings: textgenerationwebui_settings,
169 powerUserSettings: power_user,170 powerUserSettings: power_user,
171 getCharacters,
172 uuidv4,
173 humanizedDateTime,
170 };174 };
171}175}
172176