Skip to content

Commit

Permalink
chore: Fix typo in _validate_response message for generative models
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 636687807
  • Loading branch information
matthew29tang authored and copybara-github committed Jun 5, 2024
1 parent 65f8111 commit 2de9ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vertexai/generative_models/_generative_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 2de9ab4

Please sign in to comment.