For offensive queries the library sometimes throws BlockedPromptException or StopCandidateException which are already caught but other times it just returns empty parts which causes a ValueError when converted to text. Avoid that by responding with: "Sorry, I had a problem talking to Google Generative AI. Likely blocked"
Breaking change
Proposed change
For offensive queries the library sometimes throws BlockedPromptException or StopCandidateException which are already caught but other times it just returns empty parts which causes a ValueError when converted to text. Avoid that by responding with: "Sorry, I had a problem talking to Google Generative AI. Likely blocked"
(Ignore the dependency upgrade, that is being done in https://github.com/home-assistant/core/pull/116845)
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: