mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
ruff format
This commit is contained in:
parent
a8f6232eed
commit
6ebf11e4b3
1 changed files with 2 additions and 6 deletions
|
@ -36,12 +36,8 @@ class AimGuardrailMissingSecrets(Exception):
|
||||||
|
|
||||||
|
|
||||||
class AimGuardrail(CustomGuardrail):
|
class AimGuardrail(CustomGuardrail):
|
||||||
def __init__(
|
def __init__(self, api_key: Optional[str] = None, api_base: Optional[str] = None, **kwargs):
|
||||||
self, api_key: Optional[str] = None, api_base: Optional[str] = None, **kwargs
|
self.async_handler = get_async_httpx_client(llm_provider=httpxSpecialProvider.GuardrailCallback)
|
||||||
):
|
|
||||||
self.async_handler = get_async_httpx_client(
|
|
||||||
llm_provider=httpxSpecialProvider.GuardrailCallback
|
|
||||||
)
|
|
||||||
self.api_key = api_key or os.environ.get("AIM_API_KEY")
|
self.api_key = api_key or os.environ.get("AIM_API_KEY")
|
||||||
if not self.api_key:
|
if not self.api_key:
|
||||||
msg = (
|
msg = (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue