mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
(code quality) run ruff rule to ban unused imports (#7313)
* remove unused imports * fix AmazonConverseConfig * fix test * fix import * ruff check fixes * test fixes * fix testing * fix imports
This commit is contained in:
parent
7e01805caa
commit
62a1cdec47
347 changed files with 5473 additions and 7207 deletions
|
@ -1,8 +1,5 @@
|
|||
import importlib
|
||||
import traceback
|
||||
from typing import Dict, List, Literal, Optional
|
||||
|
||||
from pydantic import BaseModel, RootModel
|
||||
from typing import Dict, List, Optional
|
||||
|
||||
import litellm
|
||||
from litellm import get_secret
|
||||
|
@ -239,8 +236,6 @@ def init_guardrails_v2( # noqa: PLR0915
|
|||
)
|
||||
import os
|
||||
|
||||
from litellm.proxy.utils import get_instance_fn
|
||||
|
||||
# Custom guardrail
|
||||
_guardrail = litellm_params["guardrail"]
|
||||
_file_name, _class_name = _guardrail.split(".")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue