summaryrefslogtreecommitdiff
path: root/packages/cli/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src')
-rw-r--r--packages/cli/src/config/auth.test.ts6
-rw-r--r--packages/cli/src/config/auth.ts6
2 files changed, 6 insertions, 6 deletions
diff --git a/packages/cli/src/config/auth.test.ts b/packages/cli/src/config/auth.test.ts
index a4c0cf25..96defb1e 100644
--- a/packages/cli/src/config/auth.test.ts
+++ b/packages/cli/src/config/auth.test.ts
@@ -40,7 +40,7 @@ describe('validateAuthMethod', () => {
it('should return an error message if GEMINI_API_KEY is not set', () => {
expect(validateAuthMethod(AuthType.USE_GEMINI)).toBe(
- 'GEMINI_API_KEY environment variable not found. Add that to your .env and try again, no reload needed!',
+ 'GEMINI_API_KEY environment variable not found. Add that to your environment and try again (no reload needed if using .env)!',
);
});
});
@@ -59,10 +59,10 @@ describe('validateAuthMethod', () => {
it('should return an error message if no required environment variables are set', () => {
expect(validateAuthMethod(AuthType.USE_VERTEX_AI)).toBe(
- 'Must specify GOOGLE_GENAI_USE_VERTEXAI=true and either:\n' +
+ 'When using Vertex AI, you must specify either:\n' +
'• GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION environment variables.\n' +
'• GOOGLE_API_KEY environment variable (if using express mode).\n' +
- 'Update your .env and try again, no reload needed!',
+ 'Update your environment and try again (no reload needed if using .env)!',
);
});
});
diff --git a/packages/cli/src/config/auth.ts b/packages/cli/src/config/auth.ts
index 0f97b4d5..91d4eee3 100644
--- a/packages/cli/src/config/auth.ts
+++ b/packages/cli/src/config/auth.ts
@@ -18,7 +18,7 @@ export const validateAuthMethod = (authMethod: string): string | null => {
if (authMethod === AuthType.USE_GEMINI) {
if (!process.env.GEMINI_API_KEY) {
- return 'GEMINI_API_KEY environment variable not found. Add that to your .env and try again, no reload needed!';
+ return 'GEMINI_API_KEY environment variable not found. Add that to your environment and try again (no reload needed if using .env)!';
}
return null;
}
@@ -29,10 +29,10 @@ export const validateAuthMethod = (authMethod: string): string | null => {
const hasGoogleApiKey = !!process.env.GOOGLE_API_KEY;
if (!hasVertexProjectLocationConfig && !hasGoogleApiKey) {
return (
- 'Must specify GOOGLE_GENAI_USE_VERTEXAI=true and either:\n' +
+ 'When using Vertex AI, you must specify either:\n' +
'• GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION environment variables.\n' +
'• GOOGLE_API_KEY environment variable (if using express mode).\n' +
- 'Update your .env and try again, no reload needed!'
+ 'Update your environment and try again (no reload needed if using .env)!'
);
}
return null;