agent-zero
agent-zero copied to clipboard
Infinite error loop in _retry_request
My Agent did something silly trying to parse the full contents of a large SQL table. This caused an error but it doesn't look like it's sensibly handled because it just kept sending the same request. On latest code from main branch.
{
"system_error": "Traceback (most recent call last):
File "C:\Users\caspar\Anaconda3\envs\a0\Lib\site-packages\openai\_base_client.py", line 1643, in _retry_request
return await self._request(
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\caspar\Anaconda3\envs\a0\Lib\site-packages\openai\_base_client.py", line 1611, in _request
raise self._make_status_error_from_response(err.response) from None
openai.RateLimitError: Error code: 429 - {'error': {'message': 'Request too large for gpt-4o-mini in organization org-WHbv1JH43550krI92p9wOrfA on tokens per min (TPM): Limit 200000, Requested 695212. The input or output tokens must be reduced in order to run successfully. Visit https://platform.openai.com/account/rate-limits to learn more.', 'type': 'tokens', 'param': None, 'code': 'rate_limit_exceeded'}}
"
}