Catch GoogleAPICallError in Google Generative AI (#119118)

pull/118435/head
tronikos 2024-06-07 23:51:42 -07:00 committed by GitHub
parent e4be3d8435
commit 5fdfafd57f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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,