mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Catch GoogleAPICallError in Google Generative AI (#119118)
This commit is contained in:
parent
34477d3559
commit
0f8ed4e73d
@ -71,7 +71,7 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
try:
|
||||
response = await model.generate_content_async(prompt_parts)
|
||||
except (
|
||||
ClientError,
|
||||
GoogleAPICallError,
|
||||
ValueError,
|
||||
genai_types.BlockedPromptException,
|
||||
genai_types.StopCandidateException,
|
||||
|
Loading…
x
Reference in New Issue
Block a user