Skip to content

Commit 2301d79

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
fix: fix typo in raise exception when tool is unsupported
PiperOrigin-RevId: 599869191
1 parent a00db07 commit 2301d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vertexai/generative_models/_generative_models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def _prepare_request(
294294
elif isinstance(tool, Tool):
295295
gapic_tools.append(tool._raw_tool)
296296
else:
297-
raise TypeError("Unexpected tool type: {tool}.")
297+
raise TypeError(f"Unexpected tool type: {tool}.")
298298

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

0 commit comments

Comments
 (0)