diff --git a/src/huggingface_hub/inference/_generated/types/automatic_speech_recognition.py b/src/huggingface_hub/inference/_generated/types/automatic_speech_recognition.py index 1733aae663..7e20a8116c 100644 --- a/src/huggingface_hub/inference/_generated/types/automatic_speech_recognition.py +++ b/src/huggingface_hub/inference/_generated/types/automatic_speech_recognition.py @@ -76,10 +76,11 @@ class AutomaticSpeechRecognitionGenerationParameters(BaseInferenceType): class AutomaticSpeechRecognitionParameters(BaseInferenceType): """Additional inference parameters for Automatic Speech Recognition""" - generation_parameters: Optional[AutomaticSpeechRecognitionGenerationParameters] = None - """Parametrization of the text generation process""" return_timestamps: Optional[bool] = None """Whether to output corresponding timestamps with the generated text""" + # Will be deprecated in the future when the renaming to `generation_parameters` is implemented in transformers + generate_kwargs: Optional[AutomaticSpeechRecognitionGenerationParameters] = None + """Parametrization of the text generation process""" @dataclass diff --git a/src/huggingface_hub/inference/_generated/types/image_to_text.py b/src/huggingface_hub/inference/_generated/types/image_to_text.py index b0c47b3f44..d00ae3cf9c 100644 --- a/src/huggingface_hub/inference/_generated/types/image_to_text.py +++ b/src/huggingface_hub/inference/_generated/types/image_to_text.py @@ -76,10 +76,11 @@ class ImageToTextGenerationParameters(BaseInferenceType): class ImageToTextParameters(BaseInferenceType): """Additional inference parameters for Image To Text""" - generation_parameters: Optional[ImageToTextGenerationParameters] = None - """Parametrization of the text generation process""" 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""" @dataclass diff --git a/src/huggingface_hub/inference/_generated/types/text_to_audio.py b/src/huggingface_hub/inference/_generated/types/text_to_audio.py index 84a2e33acb..0a6d64e4d9 100644 --- a/src/huggingface_hub/inference/_generated/types/text_to_audio.py +++ b/src/huggingface_hub/inference/_generated/types/text_to_audio.py @@ -76,7 +76,8 @@ class TextToAudioGenerationParameters(BaseInferenceType): class TextToAudioParameters(BaseInferenceType): """Additional inference parameters for Text To Audio""" - generation_parameters: Optional[TextToAudioGenerationParameters] = None + # Will be deprecated in the future when the renaming to `generation_parameters` is implemented in transformers + generate_kwargs: Optional[TextToAudioGenerationParameters] = None """Parametrization of the text generation process""" diff --git a/src/huggingface_hub/inference/_generated/types/text_to_speech.py b/src/huggingface_hub/inference/_generated/types/text_to_speech.py index 7c43837425..12f6b50e4d 100644 --- a/src/huggingface_hub/inference/_generated/types/text_to_speech.py +++ b/src/huggingface_hub/inference/_generated/types/text_to_speech.py @@ -76,7 +76,8 @@ class TextToSpeechGenerationParameters(BaseInferenceType): class TextToSpeechParameters(BaseInferenceType): """Additional inference parameters for Text To Speech""" - generation_parameters: Optional[TextToSpeechGenerationParameters] = None + # Will be deprecated in the future when the renaming to `generation_parameters` is implemented in transformers + generate_kwargs: Optional[TextToSpeechGenerationParameters] = None """Parametrization of the text generation process"""