mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
New exported methods: getCharacters(), uuidv4(), humanizedDateTime()
This commit is contained in:
@ -12,6 +12,7 @@ import {
|
|||||||
extension_prompts,
|
extension_prompts,
|
||||||
Generate,
|
Generate,
|
||||||
generateQuietPrompt,
|
generateQuietPrompt,
|
||||||
|
getCharacters,
|
||||||
getCurrentChatId,
|
getCurrentChatId,
|
||||||
getRequestHeaders,
|
getRequestHeaders,
|
||||||
getThumbnailUrl,
|
getThumbnailUrl,
|
||||||
@ -55,7 +56,7 @@ import { MacrosParser } from './macros.js';
|
|||||||
import { oai_settings } from './openai.js';
|
import { oai_settings } from './openai.js';
|
||||||
import { callGenericPopup, Popup, POPUP_RESULT, POPUP_TYPE } from './popup.js';
|
import { callGenericPopup, Popup, POPUP_RESULT, POPUP_TYPE } from './popup.js';
|
||||||
import { power_user, registerDebugFunction } from './power-user.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 { ScraperManager } from './scrapers.js';
|
||||||
import { executeSlashCommands, executeSlashCommandsWithOptions, registerSlashCommand } from './slash-commands.js';
|
import { executeSlashCommands, executeSlashCommandsWithOptions, registerSlashCommand } from './slash-commands.js';
|
||||||
import { SlashCommand } from './slash-commands/SlashCommand.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 { textgenerationwebui_settings } from './textgen-settings.js';
|
||||||
import { tokenizers, getTextTokens, getTokenCount, getTokenCountAsync, getTokenizerModel } from './tokenizers.js';
|
import { tokenizers, getTextTokens, getTokenCount, getTokenCountAsync, getTokenizerModel } from './tokenizers.js';
|
||||||
import { ToolManager } from './tool-calling.js';
|
import { ToolManager } from './tool-calling.js';
|
||||||
import { timestampToMoment } from './utils.js';
|
import { timestampToMoment, uuidv4 } from './utils.js';
|
||||||
|
|
||||||
export function getContext() {
|
export function getContext() {
|
||||||
return {
|
return {
|
||||||
@ -167,6 +168,9 @@ export function getContext() {
|
|||||||
chatCompletionSettings: oai_settings,
|
chatCompletionSettings: oai_settings,
|
||||||
textCompletionSettings: textgenerationwebui_settings,
|
textCompletionSettings: textgenerationwebui_settings,
|
||||||
powerUserSettings: power_user,
|
powerUserSettings: power_user,
|
||||||
|
getCharacters,
|
||||||
|
uuidv4,
|
||||||
|
humanizedDateTime,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user