Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
fix: AI Search implem to catch more rate limited errors
Clémence Lesné64442fe5eb3f
diff --git a/app/persistence/ai_search.py b/app/persistence/ai_search.pyindex a5610bb..5719c3c 100644--- a/app/persistence/ai_search.py+++ b/app/persistence/ai_search.py@@ -165,7 +165,8 @@ class AiSearchSearch(ISearch):except ResourceNotFoundError:logger.warning('AI Search index "%s" not found', self._config.index)except HttpResponseError as e:- if "too many requests" in e.message.lower():+ message = e.message.lower()+ if "too many requests" in message or "exceed the limits" in message:raise TooManyRequests()logger.error("Error requesting AI Search: %s", e)except ServiceRequestError as e: