constructor(temperature) {
        super();

        if (typeof temperature !== 'number' || temperature <= 0) {
            let errorMessage =
                `\`temperature\` (=${temperature}) must be a strictly positive float, otherwise your next token scores will be invalid.`;

            if (temperature === 0) {
                errorMessage += " If you're looking for greedy decoding strategies, set `do_sample=false`."
            }
        }
        this.temperature = temperature;
    }
Create a `TemperatureLogitsWarper`.
@param {number} temperature Strictly positive float value used to modulate the logits distribution.
A value smaller than `1` decreases randomness (and vice versa), with `0` being equivalent to shifting
all probability mass to the most likely token.