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 20, 2024
1 parent 4ee87c8 commit 2be23fb
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 @@ -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]
Expand Down

0 comments on commit 2be23fb

Please sign in to comment.