expose tokenizers & getTextTokens in getContext

0e5100180b38c47049cb51ec690e9de87f2ece0d

Succubyss <87207237+Succubyss@users.noreply.github.com>

1 files changed, +3 -1Ignore whitespace
public/scripts/st-context.js+3 -1
@@ -63,7 +63,7 @@ import { ARGUMENT_TYPE, SlashCommandArgument, SlashCommandNamedArgument } from '
6363import { SlashCommandParser } from './slash-commands/SlashCommandParser.js';
6464import { tag_map, tags } from './tags.js';
6565import { textgenerationwebui_settings } from './textgen-settings.js';
6666import { tokenizers, getTextTokens, getTokenCount, getTokenCountAsync, getTokenizerModel } from './tokenizers.js';
6767import { ToolManager } from './tool-calling.js';
6868import { timestampToMoment } from './utils.js';
6969
@@ -95,6 +95,8 @@ export function getContext() {
9595 sendStreamingRequest,
9696 sendGenerationRequest,
9797 stopGeneration,
98+ tokenizers,
99+ getTextTokens,
98100 /** @deprecated Use getTokenCountAsync instead */
99101 getTokenCount,
100102 getTokenCountAsync,