Skip to content

[BUG] RateLimitError not generalizable #3882

@Zephyroam

Description

@Zephyroam

Required prerequisites

What version of camel are you using?

0.2.90

System information

latest version.

Problem description

https://github.com/camel-ai/camel/blob/master/camel/agents/chat_agent.py#L3495

It can only catch the RateLimitError of OpenAI API. This only applies for OpenAI models and OpenAI compatible models. For anthropic models, the error will be thrown out.

Reproducible example code

The Python snippets:

Command lines:

Extra dependencies:

 

Steps to reproduce:

Traceback

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions