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

fix(anthropic.py): fix parallel streaming on anthropic.py #3883

Merged
merged 1 commit into from
May 29, 2024

Conversation

krrishdholakia
Copy link
Contributor

Title

prevent parallel requests from cancelling each other

Relevant issues

Fixes #3881

Type

🐛 Bug Fix

Changes

  • fixes anthropic.py to not overwrite the client

[REQUIRED] Testing - Attach a screenshot of any new tests passing locall

If UI changes, send a screenshot/GIF of working UI fixes

passes minimal repro test i wrote to test this on sync + async calls

Screenshot 2024-05-28 at 4 30 29 PM

prevent parallel requests from cancelling each other

Fixes #3881
Copy link

vercel bot commented May 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 28, 2024 11:30pm

@krrishdholakia krrishdholakia merged commit b5c89a2 into main May 29, 2024
9 checks passed
@krrishdholakia krrishdholakia deleted the litellm_anthropic_parallel_streaming_fix branch May 29, 2024 00:22
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.

[Bug]: Multiple async streaming requests to Anthropic (and possibly other llms) cause an exception
1 participant