From a5a4f5366074faf7b082503396d70d643c2a01a6 Mon Sep 17 00:00:00 2001 From: Chaim Date: Mon, 8 Jun 2026 06:08:55 +0000 Subject: [PATCH] fix(halacha): panel reads canonical GOOGLE_GEMINI_API_KEY (Infisical name) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Gemini key is stored in Infisical as GOOGLE_GEMINI_API_KEY (nautilus /external-apis/gemini). Align the panel to read that canonical name first, falling back to bare GEMINI_API_KEY for back-compat — so an Infisical→.env sync keeps working. Co-Authored-By: Claude Opus 4.8 (1M context) --- scripts/halacha_panel_approve.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/halacha_panel_approve.py b/scripts/halacha_panel_approve.py index c246216..1e13bee 100644 --- a/scripts/halacha_panel_approve.py +++ b/scripts/halacha_panel_approve.py @@ -57,7 +57,9 @@ def _env_key(name: str, *files: str) -> str: DEEPSEEK_KEY = _env_key("DEEPSEEK_API_KEY", "~/.hermes/profiles/deepseek/.env", "~/.env") -GEMINI_KEY = _env_key("GEMINI_API_KEY", "~/.env") +# canonical Infisical name is GOOGLE_GEMINI_API_KEY (/external-apis/gemini); accept +# the bare GEMINI_API_KEY too for back-compat. +GEMINI_KEY = _env_key("GOOGLE_GEMINI_API_KEY", "~/.env") or _env_key("GEMINI_API_KEY", "~/.env") # ── the two coarse questions (the reliable axis — NOT the fuzzy sub-type) ──