core icon indicating copy to clipboard operation
core copied to clipboard

Google Generative AI returns "400 bad request" on system control prompt

Open jhbruhn opened this issue 7 months ago • 14 comments

The problem

When trying to use the Assist control functionality with the predefined prompt and enabling the Google Generative AI Assist Agent to control the HA System, it always responds with "Sorry, I had a problem talking to Google Generative AI: 400 Request contains an invalid argument.".

When I use the Generative AI without the default HA system prompt (which allows controllability of the HA instance), it works fine.

I tried the newest beta and the latest stable release of 2024.6. I tried both the recommended model settings and custom settings with content blocking set to "none".

What version of Home Assistant Core has the issue?

2024.7.0b2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

google_generative_ai

Link to integration documentation on our website

No response

Diagnostics information

I downloaded the log (from 2024.6, 2024.7 does not log the system prompt anymore) to hopefully aid in debugging.

generative_ai.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

jhbruhn avatar Jun 27 '24 14:06 jhbruhn