From b51b5cf12df368e70ef7985ca839c721bdc60a56 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 26 Aug 2024 14:40:25 -0700 Subject: [PATCH] feat: Display environment variables status when showing missing variables --- aider/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aider/models.py b/aider/models.py index 0d48478d0..011b7153e 100644 --- a/aider/models.py +++ b/aider/models.py @@ -728,9 +728,11 @@ def sanity_check_model(io, model): if model.missing_keys: show = True - io.tool_error(f"Model {model}: Missing these environment variables:") + io.tool_error(f"Model {model}: Environment variables status:") for key in model.missing_keys: - io.tool_error(f"- {key}") + value = os.environ.get(key, '') + status = "✓ Set" if value else "✗ Not set" + io.tool_error(f"- {key}: {status}") if platform.system() == "Windows" or True: io.tool_output(