maxtokensize must be greater than 0