diff --git a/src/tokenizers.js b/src/tokenizers.js index 10d43e9b8..71ffc8683 100644 --- a/src/tokenizers.js +++ b/src/tokenizers.js @@ -2808,7 +2808,7 @@ export class PreTrainedTokenizer extends Callable { * @param {number} [options.max_length=null] Maximum length (in tokens) to use for padding or truncation. Has no effect if tokenize is false. * If not specified, the tokenizer's `max_length` attribute will be used as a default. * @param {boolean} [options.return_tensor=true] Whether to return the output as a Tensor or an Array. Has no effect if tokenize is false. - * @returns {string | Tensor | number[]| number[][]} A promise that resolves to the tokenized output. + * @returns {string | Tensor | number[]| number[][]} The tokenized output. */ apply_chat_template(conversation, { chat_template = null,