Skip to content

[sidecar] better error handling for anthropic #2094

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

maan2003
Copy link
Contributor

we were eating some errors

sample output

stdout:

anthropic::err({"type":"error","error":{"type":"rate_limit_error","message":"This request would exceed your organization’s rate limit of 200,000 input tokens per minute. For details, refer to: https://docs.anthropic.com/en/api/rate-limits; see the response headers for current usage. Please reduce the prompt length or the maximum tokens requested, or try again later. You may also contact sales at https://www.anthropic.com/contact-sales to discuss your options for a rate limit increase."}})

error message:

Error processing input: Reqwest error: HTTP status client error (429 Too Many Requests) for url (https://api.anthropic.com/v1/messages)

@maan2003 maan2003 force-pushed the ma/rooster-aeroplane-flower branch from f5d54eb to ca5f6f7 Compare March 2, 2025 16:17
@maan2003 maan2003 force-pushed the ma/rooster-aeroplane-flower branch from ca5f6f7 to a9673d1 Compare March 2, 2025 16:27
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

Successfully merging this pull request may close these issues.

1 participant