class ImageToTextParameters(BaseInferenceType):
    """Additional inference parameters for Image To Text"""

    max_new_tokens: Optional[int] = None
    """The amount of maximum tokens to generate."""
    # Will be deprecated in the future when the renaming to `generation_parameters` is implemented in transformers
    generate_kwargs: Optional[ImageToTextGenerationParameters] = None
    """Parametrization of the text generation process"""
/Users/nielsrogge/Documents/python_projecten/huggingface_hub/src/huggingface_hub/inference/_generated/types/image_to_text.py