Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite error loop in _retry_request #139

Open
InfantLab opened this issue Sep 20, 2024 · 0 comments
Open

Infinite error loop in _retry_request #139

InfantLab opened this issue Sep 20, 2024 · 0 comments

Comments

@InfantLab
Copy link

InfantLab commented Sep 20, 2024

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'}}
"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant