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

[Bug] Num retry not working? #7949

Open
AashiqRamachandran-bf opened this issue Mar 12, 2025 · 0 comments
Open

[Bug] Num retry not working? #7949

AashiqRamachandran-bf opened this issue Mar 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@AashiqRamachandran-bf
Copy link

What happened?

When I try to use sonnet 3.7 on bedrock, I keep getting LiteLLM error ssaying rate limit reached, even when num_rety is set to 50.

lm = dspy.LM(
model="bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0",
temperature=1.0,
max_tokens=8000,
num_retries=50
)

Not sure if I am doing anything wrong. Is there a better way to dynamically backoff?

Steps to reproduce

lm = dspy.LM(
model="bedrock/us.anthropic.claude-3-7-sonnet-20250219-v1:0",
temperature=1.0,
max_tokens=8000,
num_retries=50
)
dspy.configure(lm)

DSPy version

2.6.11

@AashiqRamachandran-bf AashiqRamachandran-bf added the bug Something isn't working label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant