File tree Expand file tree Collapse file tree
packages/opencode/src/provider Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,7 +67,11 @@ export namespace Provider {
6767 const project =
6868 options [ "project" ] ?? Env . get ( "GOOGLE_CLOUD_PROJECT" ) ?? Env . get ( "GCP_PROJECT" ) ?? Env . get ( "GCLOUD_PROJECT" )
6969 const location =
70- options [ "location" ] ?? Env . get ( "GOOGLE_CLOUD_LOCATION" ) ?? Env . get ( "VERTEX_LOCATION" ) ?? "us-central1"
70+ options [ "location" ] ??
71+ Env . get ( "GOOGLE_VERTEX_LOCATION" ) ??
72+ Env . get ( "GOOGLE_CLOUD_LOCATION" ) ??
73+ Env . get ( "VERTEX_LOCATION" ) ??
74+ "us-central1"
7175 const endpoint = location === "global" ? "aiplatform.googleapis.com" : `${ location } -aiplatform.googleapis.com`
7276
7377 return {
@@ -437,7 +441,11 @@ export namespace Provider {
437441 Env . get ( "GCLOUD_PROJECT" )
438442
439443 const location =
440- provider . options ?. location ?? Env . get ( "GOOGLE_CLOUD_LOCATION" ) ?? Env . get ( "VERTEX_LOCATION" ) ?? "us-central1"
444+ provider . options ?. location ??
445+ Env . get ( "GOOGLE_VERTEX_LOCATION" ) ??
446+ Env . get ( "GOOGLE_CLOUD_LOCATION" ) ??
447+ Env . get ( "VERTEX_LOCATION" ) ??
448+ "us-central1"
441449
442450 const autoload = Boolean ( project )
443451 if ( ! autoload ) return { autoload : false }
You can’t perform that action at this time.
0 commit comments