-
Notifications
You must be signed in to change notification settings - Fork 23
Deprecate GOOGLE_APPLICATION_CREDENTIALS in favor of GOOGLE_API_KEY #232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| GOOGLE_APPLICATION_CREDENTIALS={{GOOGLE_APPLICATION_CREDENTIALS}} | ||
| GOOGLE_API_KEY={{GOOGLE_API_KEY}} | ||
| OPENAI_API_KEY={{OPENAI_API_KEY}} |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -18,12 +18,9 @@ This project automates the evaluation of language model responses using classifi | |||||
|
|
||||||
| Create a `.env` file in the root directory with the following variables: | ||||||
| ```plaintext | ||||||
| GOOGLE_APPLICATION_CREDENTIALS=path/to/secret.json | ||||||
| GOOGLE_API_KEY=your_google_api_key | ||||||
| OPENAI_API_KEY=your_openai_api_key # Required if testing against OpenAI models | ||||||
|
||||||
| OPENAI_API_KEY=your_openai_api_key # Required if testing against OpenAI models | |
| OPENAI_API_KEY=your_openai_api_key # Required by the evaluation scripts |
Copilot
AI
Mar 3, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The README still contains stale credential/CLI guidance that conflicts with switching to GOOGLE_API_KEY only: it mentions “Google Vertex AI” in the intro and later example commands/flags reference secret.json / --creds-path, but script_based_evaluation/main.py doesn’t accept those args and the models use GOOGLE_API_KEY directly. Please update/remove those sections so the setup instructions are consistent throughout this README.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The linked issue (#155) text says “Deprecate GOOGLE_APPLICATION_CREDENTIALS in favor of GEMINI_API_KEY”, but this PR standardizes on
GOOGLE_API_KEY(and the codebase appears to useGOOGLE_API_KEYonly). To avoid confusion for contributors, consider updating the docs/issue reference to use the same env var name consistently (eitherGOOGLE_API_KEYeverywhere or rename in code/docs ifGEMINI_API_KEYis the intended target).