fix: don't hard-code the tier names

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Mateo Wang 2026-05-28 18:10:45 -07:00 committed by GitHub
parent 8a31571bc1
commit f835f846e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
)