From e9934f540415415660cb3b7e2c4a5f3f44bdd495 Mon Sep 17 00:00:00 2001 From: codgician <15964984+codgician@users.noreply.github.com> Date: Sat, 26 Sep 2026 15:29:17 +0800 Subject: [PATCH] fix(github-copilot): use lazy logging for rejected API bases --- litellm/llms/github_copilot/authenticator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/llms/github_copilot/authenticator.py b/litellm/llms/github_copilot/authenticator.py index 71e43f923bf..2a832b26c35 100644 --- a/litellm/llms/github_copilot/authenticator.py +++ b/litellm/llms/github_copilot/authenticator.py @@ -111,7 +111,8 @@ class Authenticator: if _is_secure_api_base(candidate): return candidate verbose_logger.warning( - f"Ignoring {source} because it must be an HTTPS URL without credentials, query, or fragment" + "Ignoring %s because it must be an HTTPS URL without credentials, query, or fragment", + source, ) return None