Merge pull request #3186 from Succubyss/getcontext_gettexttokens Expose `tokenizers` & `getTextTokens` in `getContext`

103251070fd0659fcf0bff4577e81c3fe8252553

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +3 -1Showing whitespace changes
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,