diff --git a/faster_whisper/transcribe.py b/faster_whisper/transcribe.py index 6d6ef41a..593d1bea 100644 --- a/faster_whisper/transcribe.py +++ b/faster_whisper/transcribe.py @@ -568,6 +568,13 @@ def generate_segments( not options.condition_on_previous_text or temperature > options.prompt_reset_on_temperature ): + if options.condition_on_previous_text: + self.logger.debug( + "Reset prompt. prompt_reset_on_temperature threshold is met %f > %f", + temperature, + options.prompt_reset_on_temperature, + ) + prompt_reset_since = len(all_tokens) def encode(self, features: np.ndarray) -> ctranslate2.StorageView: