in aidial_adapter_vertexai/chat/gemini/generation_config.py [0:0]
def validate_n_parameter(params: ModelParameters) -> None:
# Currently n>1 is emulated by calling the model n times.
# So the individual generation requests are expected to have n=1 or unset.
if params.n is not None and params.n > 1:
raise ValueError("n is expected to be 1 or unset")