From 4abc1a05c1326c38b43381c3c9fb15de2b7180d5 Mon Sep 17 00:00:00 2001 From: Matthew Tang Date: Thu, 20 Jun 2024 11:13:30 -0700 Subject: [PATCH] chore: Fix typo in _validate_response message for generative models PiperOrigin-RevId: 645096108 --- vertexai/generative_models/_generative_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vertexai/generative_models/_generative_models.py b/vertexai/generative_models/_generative_models.py index a0124afb6b..9a451ec664 100644 --- a/vertexai/generative_models/_generative_models.py +++ b/vertexai/generative_models/_generative_models.py @@ -835,7 +835,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]