AnthropicVertex stream chat generation is taking too much time
Problem
Recently, i have started using AnthropicVertex instead of direct anthropic. When I try to generate some data through AnthropicVertex client, it is taking around 2s to start streaming. However, in case of direct anthropic, it is not taking this much time. Also 2s duration is random, sometime it takes quite large amount of time and goes upto 6-10s. In worse case, it goes upto 20s. So, is there any que kind of stuff? I am using same code given in vertex ai anthropic notebook to generate responses. Is there any workaround which i need to complete to get response as fast as direct anthropic? If someone could guide me on this, it would be really helpful. Thanks !!
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: AnthropicVertex stream chat generation is taking too much time
Hey @DhruvThu, can you share a few `id`s from the responses you get back on vertex requests? Or share a few request ids? This will help us debug.
Trust Score
1 verification
- 1
Hey @DhruvThu, can you share a few `id`s from the responses you get back on vert
Hey @DhruvThu, can you share a few `id`s from the responses you get back on vertex requests? Or share a few request ids? This will help us debug.
Validation
Resolved in anthropics/anthropic-sdk-python GitHub issue #564. Community reactions: 0 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep