Control generated sequence length in characters

Hello all,
as far as I know, the min_length and max_length parameters in model.generate() refer to the minimum and maximum length in tokens. My question is, whether there is a way to control the length of the generated sequence in characters?