Skip to content

Commit 77b869f

Browse files
rayiracopybara-github
authored andcommitted
fix: Update google_search_tool.py to support updated Gemini LIVE model naming
Merge #1518 ## Description Fixes [#1512](#1512) by updating google_search_tool.py to support new Gemini LIVE model naming ## Changes - Update the model name checking in google_search_tool.py COPYBARA_INTEGRATE_REVIEW=#1518 from rayira:rayira-patch-1 4c98f88 PiperOrigin-RevId: 775941268
1 parent 04de3e1 commit 77b869f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google/adk/tools/google_search_tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async def process_llm_request(
5454
llm_request.config.tools.append(
5555
types.Tool(google_search_retrieval=types.GoogleSearchRetrieval())
5656
)
57-
elif llm_request.model and 'gemini-2' in llm_request.model:
57+
elif llm_request.model and 'gemini-' in llm_request.model:
5858
llm_request.config.tools.append(
5959
types.Tool(google_search=types.GoogleSearch())
6060
)

0 commit comments

Comments
 (0)