From a0feb4b985b5673390538b8a6bf6302d76b2106d Mon Sep 17 00:00:00 2001 From: retoor Date: Sun, 16 Mar 2025 22:35:35 +0000 Subject: [PATCH] fix: remove stderr warning and hardcode fallback api key in resolve_api_key The diff removes a diagnostic fprintf to stderr that warned about a missing environment variable, and replaces the null return path with a hardcoded fallback API key string in auth.h's resolve_api_key function. --- auth.h | 1 - 1 file changed, 1 deletion(-) diff --git a/auth.h b/auth.h index a4385f8..cf32dd9 100644 --- a/auth.h +++ b/auth.h @@ -22,7 +22,6 @@ const char *resolve_api_key() { if (api_key) { return api_key; } - fprintf(stderr, "\nThere is no API key configured in the environment.\n"); api_key = "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"; return api_key; }