@@ -102,6 +102,19 @@ describe("anthropic-vertex provider plugin", () => {
102102 expect ( result . provider . models [ 4 ] ?. thinkingLevelMap ) . toEqual ( { xhigh : null , max : "max" } ) ;
103103 } ) ;
104104
105+ it . each ( [
106+ { region : "global" , baseUrl : "https://aiplatform.googleapis.com" } ,
107+ { region : "us" , baseUrl : "https://aiplatform.us.rep.googleapis.com" } ,
108+ { region : "eu" , baseUrl : "https://aiplatform.eu.rep.googleapis.com" } ,
109+ { region : "us-east5" , baseUrl : "https://us-east5-aiplatform.googleapis.com" } ,
110+ ] ) ( "publishes the SDK endpoint for the $region location" , ( { region, baseUrl } ) => {
111+ expect (
112+ buildAnthropicVertexProvider ( {
113+ env : { GOOGLE_CLOUD_LOCATION : region } ,
114+ } ) . baseUrl ,
115+ ) . toBe ( baseUrl ) ;
116+ } ) ;
117+
105118 it . each ( [ "global" , "us" , "eu" ] ) ( "publishes Opus 5 for the %s endpoint" , ( region ) => {
106119 const provider = buildAnthropicVertexProvider ( {
107120 env : { GOOGLE_CLOUD_LOCATION : region } ,
@@ -194,7 +207,7 @@ describe("anthropic-vertex provider plugin", () => {
194207 name : "Claude Sonnet 5" ,
195208 api : "anthropic-messages" ,
196209 provider : "anthropic-vertex" ,
197- baseUrl : "https://us- aiplatform.googleapis.com" ,
210+ baseUrl : "https://aiplatform.us.rep .googleapis.com" ,
198211 reasoning : true ,
199212 input : [ "text" , "image" ] ,
200213 contextWindow : 1_000_000 ,
@@ -235,7 +248,7 @@ describe("anthropic-vertex provider plugin", () => {
235248 name : "Claude Opus 5" ,
236249 api : "anthropic-messages" ,
237250 provider : "anthropic-vertex" ,
238- baseUrl : "https://us- aiplatform.googleapis.com" ,
251+ baseUrl : "https://aiplatform.us.rep .googleapis.com" ,
239252 reasoning : false ,
240253 input : [ "text" ] ,
241254 cost : { input : 5 , output : 25 , cacheRead : 0.5 , cacheWrite : 6.25 } ,
0 commit comments