From e2b7e216ec0c5811c3467e5d877f08b159042811 Mon Sep 17 00:00:00 2001 From: bap1106 Date: Mon, 28 Sep 2026 15:48:47 +0700 Subject: [PATCH] fix(clf_ai_gateway): drop a rebind-ok that no longer suppresses anything After rebasing onto main, the type-discipline gate's new LIT013 rule flags the `# rebind-ok` on the endpoint-inference `dynamic_api_key` assignment. The rebind rule no longer fires on that line, so the suppression is inert. The sibling endpoint branches carry no comment there either. Co-Authored-By: Claude Opus 5.5 --- litellm/litellm_core_utils/get_llm_provider_logic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/litellm_core_utils/get_llm_provider_logic.py b/litellm/litellm_core_utils/get_llm_provider_logic.py index 7391399ea54..2cbeefc5d18 100644 --- a/litellm/litellm_core_utils/get_llm_provider_logic.py +++ b/litellm/litellm_core_utils/get_llm_provider_logic.py @@ -272,7 +272,7 @@ def get_llm_provider( elif endpoint == "api.clfaigateway.dev/v1": custom_llm_provider = "clf_ai_gateway" # rebind-ok: endpoint inference, like every branch clf_env_key = get_secret_str("CLF_AI_GATEWAY_API_KEY") - dynamic_api_key = api_key or clf_env_key # rebind-ok: caller key wins, like every branch + dynamic_api_key = api_key or clf_env_key elif endpoint == "api.mistral.ai/v1": custom_llm_provider = "mistral" dynamic_api_key = get_secret_str("MISTRAL_API_KEY")