fix(proxy): annotate suffix list with reasoned mutable-ok (basedpyright)

Change suffix_appended_wildcard_models to a typed list.
This commit is contained in:
Mrunmayee Daware 2026-10-14 11:28:17 +05:30 • committed by GitHub
parent a9a07d421d
commit 7af8df82d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -325,7 +325,7 @@ def get_known_models_from_wildcard(wildcard_model: str, litellm_params: LiteLLM_
wildcard_models = [f"{model_prefix}{model}" for model in wildcard_models]
known_providers: Final = {provider.value for provider in LlmProviders}
suffix_appended_wildcard_models: Final = []
suffix_appended_wildcard_models: Final[list[str]] = [] # mutable-ok: local accumulator
for model in wildcard_models:
if not model.startswith(f"{wildcard_provider_prefix}/"):
# `get_provider_models` returns provider-prefixed ids (e.g. "ollama/gemma3:1b").