FG
💻 Software🤖 AI & LLMsAnthropic

AnthropicVertex stream chat generation is taking too much time

Freshover 1 year ago
Mar 14, 20260 views
Confidence Score86%
86%

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

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: AnthropicVertex stream chat generation is taking too much time

Low Risk

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.

84

Trust Score

1 verification

100% success
  1. 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

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

claudeanthropicllmapi