diff --git a/vertexai/generative_models/_generative_models.py b/vertexai/generative_models/_generative_models.py index 85afc688a5..46dd0cdef9 100644 --- a/vertexai/generative_models/_generative_models.py +++ b/vertexai/generative_models/_generative_models.py @@ -719,7 +719,7 @@ def _validate_response( if not response.candidates: message += ( f"The model response was blocked due to {response._raw_response.prompt_feedback.block_reason}.\n" - f"Blocke reason message: {response._raw_response.prompt_feedback.block_reason_message}.\n" + f"Block reason message: {response._raw_response.prompt_feedback.block_reason_message}.\n" ) else: candidate = response.candidates[0]