Merge pull request #3340 from bmen25124/export_getCharacters_uuidv4_humanizedDateTime New exported methods: getCharacters(), uuidv4(), humanizedDateTime()
Signed| @@ -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'; | |||
| 55 | import { oai_settings } from './openai.js'; | 56 | import { oai_settings } from './openai.js'; |
| 56 | import { callGenericPopup, Popup, POPUP_RESULT, POPUP_TYPE } from './popup.js'; | 57 | import { callGenericPopup, Popup, POPUP_RESULT, POPUP_TYPE } from './popup.js'; |
| 57 | import { power_user, registerDebugFunction } from './power-user.js'; | 58 | import { power_user, registerDebugFunction } from './power-user.js'; |
| 58 | import { isMobile, shouldSendOnEnter } from './RossAscends-mods.js'; | 59 | import { humanizedDateTime, isMobile, shouldSendOnEnter } from './RossAscends-mods.js'; |
| 59 | import { ScraperManager } from './scrapers.js'; | 60 | import { ScraperManager } from './scrapers.js'; |
| 60 | import { executeSlashCommands, executeSlashCommandsWithOptions, registerSlashCommand } from './slash-commands.js'; | 61 | import { executeSlashCommands, executeSlashCommandsWithOptions, registerSlashCommand } from './slash-commands.js'; |
| 61 | import { SlashCommand } from './slash-commands/SlashCommand.js'; | 62 | import { SlashCommand } from './slash-commands/SlashCommand.js'; |
| @@ -65,7 +66,7 @@ import { tag_map, tags } from './tags.js'; | |||
| 65 | import { textgenerationwebui_settings } from './textgen-settings.js'; | 66 | import { textgenerationwebui_settings } from './textgen-settings.js'; |
| 66 | import { tokenizers, getTextTokens, getTokenCount, getTokenCountAsync, getTokenizerModel } from './tokenizers.js'; | 67 | import { tokenizers, getTextTokens, getTokenCount, getTokenCountAsync, getTokenizerModel } from './tokenizers.js'; |
| 67 | import { ToolManager } from './tool-calling.js'; | 68 | import { ToolManager } from './tool-calling.js'; |
| 68 | import { timestampToMoment } from './utils.js'; | 69 | import { timestampToMoment, uuidv4 } from './utils.js'; |
| 69 | 70 | ||
| 70 | export function getContext() { | 71 | export 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 | } |
| 172 | 176 | ||