mirror of
https://github.com/usestrix/strix.git
synced 2026-08-28 05:25:00 +00:00
fix(pricing): add noqa PLC0415 for deferred litellm import
This commit is contained in:
parent
a46a60cf6a
commit
6dddbf3a50
1 changed files with 1 additions and 1 deletions
|
|
@ -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/"):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue