Skip to content

Commit 4654d7e

Browse files
authored
Merge pull request #6 from google-gemini/MarkDaoust-patch-4
Fix error message, `google_search_grounding`, not the modes.
2 parents 739b89a + ea85233 commit 4654d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/generativeai/types/content_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def _make_tool(tool: ToolType) -> Tool:
728728
return Tool(google_search_retrieval=protos.GoogleSearchRetrieval())
729729
else:
730730
raise ValueError(
731-
"The only string that can be passed as a tool is 'code_execution', or one of the specified values for the `mode` parameter for google_search_retrieval."
731+
"The only strings that can be passed as a `tool` is 'code_execution' or 'google_search_retrieval'."
732732
)
733733
elif isinstance(tool, protos.CodeExecution):
734734
return Tool(code_execution=tool)

0 commit comments

Comments
 (0)