From f835f846e607e83c31a79c9187070645ac90f13b Mon Sep 17 00:00:00 2001 From: Mateo Wang <277851410+mateo-berri@users.noreply.github.com> Date: Thu, 28 May 2026 18:10:45 -0700 Subject: [PATCH] fix: don't hard-code the tier names Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- 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 af4c080336c..b9051bcd6f0 100644 --- a/litellm/litellm_core_utils/get_llm_provider_logic.py +++ b/litellm/litellm_core_utils/get_llm_provider_logic.py @@ -74,7 +74,7 @@ def _is_azure_claude_model(model: str) -> bool: import re _CLAUDE_PATTERN = re.compile( - r"^claude-(?:opus|sonnet|haiku)-\d+-\d+(?:-\d{8})?$", re.IGNORECASE + r"^claude-[a-z]+-\d+-\d+(?:-\d{8})?$", re.IGNORECASE )