fix(pricing): add noqa PLC0415 for deferred litellm import

This commit is contained in:
Aneesh Sharma 2026-08-22 14:19:31 +05:30
parent a46a60cf6a
commit 6dddbf3a50

View file

@ -10,7 +10,7 @@ from typing import Any, cast
def resolve_litellm_model(model: str) -> str | None:
"""Return a provider-qualified model name that LiteLLM can price."""
try:
import litellm
import litellm # noqa: PLC0415
normalized = model.strip()
for prefix in ("litellm/", "any-llm/", "openai/"):