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

state=finished raised RateLimitError #286

Closed
ice-ux opened this issue Dec 1, 2023 · 3 comments
Closed

state=finished raised RateLimitError #286

ice-ux opened this issue Dec 1, 2023 · 3 comments

Comments

@ice-ux
Copy link

ice-ux commented Dec 1, 2023

tenacity.RetryError: RetryError[<Future at 0x1c7385c4820 state=finished raised RateLimitError>]

@Simplereally
Copy link

Traceback (most recent call last):
  File "C:\Programming\ChatDev\run.py", line 114, in <module>
    chat_chain.execute_chain()
  File "C:\Programming\ChatDev\chatdev\chat_chain.py", line 163, in execute_chain
    self.execute_step(phase_item)
  File "C:\Programming\ChatDev\chatdev\chat_chain.py", line 133, in execute_step
    self.chat_env = self.phases[phase].execute(self.chat_env,
  File "C:\Programming\ChatDev\chatdev\phase.py", line 291, in execute
    self.chatting(chat_env=chat_env,
  File "C:\Programming\ChatDev\chatdev\utils.py", line 77, in wrapper
    return func(*args, **kwargs)
  File "C:\Programming\ChatDev\chatdev\phase.py", line 130, in chatting
    assistant_response, user_response = role_play_session.step(input_user_msg, chat_turn_limit == 1)
  File "C:\Programming\ChatDev\camel\agents\role_playing.py", line 242, in step
    assistant_response = self.assistant_agent.step(user_msg_rst)
  File "C:\ProgramData\anaconda3\envs\ChatDev_conda_env\lib\site-packages\tenacity\__init__.py", line 289, in wrapped_f
    return self(f, *args, **kw)
  File "C:\ProgramData\anaconda3\envs\ChatDev_conda_env\lib\site-packages\tenacity\__init__.py", line 379, in __call__
    do = self.iter(retry_state=retry_state)
  File "C:\ProgramData\anaconda3\envs\ChatDev_conda_env\lib\site-packages\tenacity\__init__.py", line 326, in iter
    raise retry_exc from fut.exception()
tenacity.RetryError: RetryError[<Future at 0x20526c20940 state=finished raised RateLimitError>]

@BackMountainDevil
Copy link

paste all terminal output

@Alphamasterliu
Copy link
Contributor

Alphamasterliu commented Dec 21, 2023

Hello,
When you're troubleshooting the error in the program, you should investigate the line before

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

in the terminal output. This line usually contains the exact statement that led to the error and will be crucial for identifying the root cause of the problem.

If you have any specific questions or require further assistance, do not hesitate to raise them! Thank you for your support and interest in ChatDev. ☺

If it turns out that the issue is really related to the Rate Limit, you might find the discussion in #26 helpful. Hope this assists you.

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

4 participants