How to override model.generate()

I was wondering how to override model.generate() such that there are more than one input features can be included?