claude-on-vertex-ai changedbuild-with-claude/claude-on-vertex-ai
Nearest release: v2.1.296, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+20added
Lines−9removed
From line
69
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits24to this page, all time
The whole hunk
from line 69, old and new numbered
/
from line 69
6969 import com.anthropic.models.messages.MessageCreateParams;
7070 import com.anthropic.models.messages.Model;
7171 import com.anthropic.vertex.backends.VertexBackend;
72 import com.google.auth.oauth2.GoogleCredentials;
7273
73 void main() {
74 void main() throws Exception {
7475 AnthropicClient client = AnthropicOkHttpClient.builder()
75 .backend(VertexBackend.fromEnv())
76 .backend(
77 VertexBackend.builder()
78 .googleCredentials(GoogleCredentials.getApplicationDefault())
79 .region("global")
80 .project("MY_PROJECT_ID")
81 .build()
82 )
7683 .build();
7784
7885 MessageCreateParams params = MessageCreateParams.builder()
from line 274
267274 import com.anthropic.models.messages.MessageCreateParams;
268275 import com.anthropic.models.messages.Model;
269276 import com.anthropic.vertex.backends.VertexBackend;
277 import com.google.auth.oauth2.GoogleCredentials;
270278
271 void main() {
272 // Uses default Google Cloud credentials
279 void main() throws Exception {
273280 AnthropicClient client = AnthropicOkHttpClient.builder()
274 .backend(VertexBackend.fromEnv())
281 .backend(
282 VertexBackend.builder()
283 .googleCredentials(GoogleCredentials.getApplicationDefault())
284 .region("global")
285 .project("MY_PROJECT_ID")
286 .build()
287 )
275288 .build();
276289
277290 Message message = client
from line 551
538551 import com.google.auth.oauth2.GoogleCredentials;
539552
540553 void main() throws Exception {
541 // Uses default Google Cloud credentials
542554 AnthropicClient client = AnthropicOkHttpClient.builder()
543555 .backend(
544556 VertexBackend.builder()
from line 934
922934 import com.google.auth.oauth2.GoogleCredentials;
923935
924936 void main() throws Exception {
925 // Uses default Google Cloud credentials with specific region
926937 AnthropicClient client = AnthropicOkHttpClient.builder()
927938 .backend(
928939 VertexBackend.builder()
No line in this hunk matches that.