Skip to content

armgit / ax

Public Imported from GitHub
0

Agent Executor (AX) is Google's open agentic orchestration runtime

Go

docs: update Vertex AI env var names to current SDK names (#354)

JoyceLiu9ac11ab84bb7
diff --git a/README.md b/README.md
index daa730b..c7bbc22 100644
--- a/README.md
+++ b/README.md
@@ -337,8 +337,8 @@ export GEMINI_API_KEY="your-api-key"
# Vertex AI based authentication, ensure application
# default credentials are set up, gcloud auth application-default login.
-export GCLOUD_PROJECT="your-project-id"
-export GCLOUD_LOCATION="us-central1"
+export GOOGLE_CLOUD_PROJECT="your-project-id"
+export GOOGLE_CLOUD_LOCATION="us-central1"
export GOOGLE_GENAI_USE_VERTEXAI=True
```
diff --git a/internal/gemini/gemini_planner.go b/internal/gemini/gemini_planner.go
index 45027d7..a2cd689 100644
--- a/internal/gemini/gemini_planner.go
+++ b/internal/gemini/gemini_planner.go
@@ -111,7 +111,7 @@ When introducing yourself, simply reply: "I am AX, how can I help you?"
// API key.
if os.Getenv("GEMINI_API_KEY") == "" && os.Getenv("GOOGLE_API_KEY") == "" && os.Getenv("GOOGLE_GENAI_USE_VERTEXAI") == "" {
return nil, fmt.Errorf("no Gemini credentials configured: set either GEMINI_API_KEY (AI Studio) " +
- "or GOOGLE_GENAI_USE_VERTEXAI=True with GCLOUD_PROJECT and GCLOUD_LOCATION (Vertex AI) " +
+ "or GOOGLE_GENAI_USE_VERTEXAI=True with GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION (Vertex AI) " +
"on the ax serve process and restart it; " +
"see https://github.com/google-gemini/ax#authentication")
}