Skip to content

[Bug]: NO FALLBACK when streaming and [Bug]: litellm.InternalServerError: AnthropicException - Overloaded. Handle with litellm.InternalServerError. #6957

@laol777

Description

@laol777

What happened?

No fallback when streaming
basicly the same problem like #6532 with very similar config

Router(
        model_list=settings.LITELLM_MODEL_DEPLOYMENTS,
        num_retries=3,
        retry_after=5,  # waits min 5s before retrying request
        timeout=290,
        allowed_fails=3,  # cooldown model if it fails > 3 call in a minute.
        cooldown_time=10,  # cooldown the deployment for 10 seconds if it num_fails > allowed_fails
        default_fallbacks=["claude-3-5-sonnet-aws"],
    )
# model = claude3.5 anthropic
# fallback model = claude3.5 aws bedrock

Relevant log output

No response

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions