constructor(eos_token_id) {
        super();
        if (!Array.isArray(eos_token_id)) {
            eos_token_id = [eos_token_id];
        }
        this.eos_token_id = eos_token_id;
    }
@param {number|number[]} eos_token_id The id of the *end-of-sequence* token.
Optionally, use a list to set multiple *end-of-sequence* tokens.