Update agents/tools/ai_tools.py
Browse files- agents/tools/ai_tools.py +0 -1
agents/tools/ai_tools.py
CHANGED
|
@@ -49,7 +49,6 @@ class AITools():
|
|
| 49 |
return genai.Client(api_key=os.environ["GEMINI_API_KEY"])
|
| 50 |
|
| 51 |
def _is_rate_limit_error(exception):
|
| 52 |
-
"""Check if the exception is a rate limit error (429 RESOURCE_EXHAUSTED)."""
|
| 53 |
error_str = str(exception)
|
| 54 |
return "429" in error_str and "RESOURCE_EXHAUSTED" in error_str
|
| 55 |
|
|
|
|
| 49 |
return genai.Client(api_key=os.environ["GEMINI_API_KEY"])
|
| 50 |
|
| 51 |
def _is_rate_limit_error(exception):
|
|
|
|
| 52 |
error_str = str(exception)
|
| 53 |
return "429" in error_str and "RESOURCE_EXHAUSTED" in error_str
|
| 54 |
|