Map<String, dynamic> toMap() { return <String, dynamic>{ 'maxLength': maxLength, 'stopSequences': stopSequences, 'temperature': temperature, 'topK': topK, 'topP': topP, }; }