I am using OpenAI and running the agnet I get the below error periodically:
File “C:\Agent AI\PLAYGROUND\tccreator.venv\Lib\site-packages\litellm\litellm_core_utils\exception_mapping_utils.py”, line 1231, in exception_type
raise RateLimitError(
litellm.exceptions.RateLimitError: litellm.RateLimitError: litellm.RateLimitError: VertexAIException - {
“error”: {
“code”: 429,
“message”: “Resource has been exhausted (e.g. check quota).”,
“status”: “RESOURCE_EXHAUSTED”
Is there a way to address this issue and make the agent run without failing?
Thanks for your help.
joab.io
2
It looks like your Agents are exceeding the limits of your LLM subscription.
You can rate limit the agents by setting the maximum requests per minute
by setting this parameter for your agents in the crew.py file
max_rpm
= a number less than your quota allows
There are also other parameters such as maximum iterations and maximum retries that can be set. Follow some of the examples here:
Agents - CrewAI
Good luck!
Thanks so much for your quick response Joab. Will try your suggestion 
system
Closed
4
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.