From 6086f470230af3ab8b06c239b3c38f758b5a6a77 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 21 Sep 2025 11:03:14 +0200 Subject: [PATCH] sh: Use dotter default var helper for credentials --- sh/.config/sh/env.d/llm-api.sh | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/sh/.config/sh/env.d/llm-api.sh b/sh/.config/sh/env.d/llm-api.sh index 63f8784..2a61a34 100644 --- a/sh/.config/sh/env.d/llm-api.sh +++ b/sh/.config/sh/env.d/llm-api.sh @@ -3,15 +3,7 @@ # # Received from dotter variables -{{#if cred_llm_groq_api_key}} -export GROQ_API_KEY="{{cred_llm_groq_api_key}}" -{{/if}} -{{#if cred_llm_groq_api_key}} -export GH_COPILOT_TOKEN="{{cred_llm_gh_copilot_token}}" -{{/if}} -{{#if cred_llm_groq_api_key}} -export ANTHROPIC_API_KEY="{{cred_llm_anthropic_api_key}}" -{{/if}} -{{#if cred_llm_groq_api_key}} -export GEMINI_API_KEY="{{cred_llm_gemini_api_key}}" -{{/if}} +export GROQ_API_KEY="{{with_default cred_llm_groq_api_key ''}}" +export GH_COPILOT_TOKEN="{{with_default cred_llm_gh_copilot_token ''}}" +export ANTHROPIC_API_KEY="{{with_default cred_llm_anthropic_api_key ''}}" +export GEMINI_API_KEY="{{with_default cred_llm_gemini_api_key ''}}"