mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-30 06:43:27 +00:00
fix(proxy): annotate suffix list with reasoned mutable-ok (basedpyright)
Change suffix_appended_wildcard_models to a typed list.
This commit is contained in:
parent
a9a07d421d
commit
7af8df82d0
1 changed files with 1 additions and 1 deletions
|
|
@ -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").
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue