Skip to content

Commit

Permalink
fix: fix typo in raise exception when tool is unsupported
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 599869191
  • Loading branch information
vertex-sdk-bot authored and Copybara-Service committed Jan 19, 2024
1 parent a00db07 commit 2301d79
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 @@ -294,7 +294,7 @@ def _prepare_request(
elif isinstance(tool, Tool):
gapic_tools.append(tool._raw_tool)
else:
raise TypeError("Unexpected tool type: {tool}.")
raise TypeError(f"Unexpected tool type: {tool}.")

return gapic_prediction_service_types.GenerateContentRequest(
# The `model` parameter now needs to be set for the vision models.
Expand Down

0 comments on commit 2301d79

Please sign in to comment.