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 @@ -59,20 +59,11 @@ export namespace Provider {
5959
6060 function googleVertexVars ( options : Record < string , any > ) {
6161 const project =
62- Env . get ( "GOOGLE_VERTEX_PROJECT" ) ??
63- options [ "project" ] ??
64- Env . get ( "GOOGLE_CLOUD_PROJECT" ) ??
65- Env . get ( "GCP_PROJECT" ) ??
66- Env . get ( "GCLOUD_PROJECT" )
62+ options [ "project" ] ?? Env . get ( "GOOGLE_CLOUD_PROJECT" ) ?? Env . get ( "GCP_PROJECT" ) ?? Env . get ( "GCLOUD_PROJECT" )
6763 const location =
68- Env . get ( "GOOGLE_VERTEX_LOCATION" ) ??
69- options [ "location" ] ??
70- Env . get ( "GOOGLE_CLOUD_LOCATION" ) ??
71- Env . get ( "VERTEX_LOCATION" ) ??
72- "us-central1"
73- const endpoint =
74- Env . get ( "GOOGLE_VERTEX_ENDPOINT" ) ??
75- ( location === "global" ? "aiplatform.googleapis.com" : `${ location } -aiplatform.googleapis.com` )
64+ options [ "location" ] ?? Env . get ( "GOOGLE_CLOUD_LOCATION" ) ?? Env . get ( "VERTEX_LOCATION" ) ?? "us-central1"
65+ const endpoint = location === "global" ? "aiplatform.googleapis.com" : `${ location } -aiplatform.googleapis.com`
66+
7667 return {
7768 GOOGLE_VERTEX_PROJECT : project ,
7869 GOOGLE_VERTEX_LOCATION : location ,
You can’t perform that action at this time.
0 commit comments