2025.4.0 Google Generative AI with Assist - Error

Using Gemini Flash 2.0 I get

Error sending message: <class 'google.genai.errors.ClientError'> 400 INVALID_ARGUMENT. {'error': {'code': 400, 'message': 'Tool use with function calling is unsupported', 'status': 'INVALID_ARGUMENT'}}

With Gemini Flash 1.5 I get

Error sending message: <class 'google.genai.errors.ClientError'> 429 RESOURCE_EXHAUSTED. {'error': {'code': 429, 'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits.', 'status': 'RESOURCE_EXHAUSTED', 'details': [{'@type': 'type.googleapis.com/google.rpc.Help', 'links': [{'description': 'Learn more about Gemini API quotas', 'url': 'https://ai.google.dev/gemini-api/docs/rate-limits'}]}]}}

I am using generative ai to look at snapshots of cameras and that still works, so something is amiss with the assist integration with Gemini by the looks of it.

This might be related: Google Generative AI integration / Gemini "Enable Google Search tool" does not work · Issue #142121 · home-assistant/core · GitHub

Maybe try to not use local control as a workaround for now

1 Like

Thanks, I’ve unticked “Enable Google Search tool” and it’s working again.

By the way, there is a workaround for the “Enable Google Search Tool” issue, still applicable now as it appears that the option won’t be coming back. Issue #141712 described creating an additional agent and the thread describing this was locked on 6th April, so I cannot provide this alternative there.

These long winded methods are unnecessary. All that is required is the instruction

Enable Google Search

in your Google Generative AI prompt.

Here’s proof that this exposes the World Wide Web as a resource to your smart home. Enjoy!

[https://youtu.be/FGKma430R5c]