mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix: fix linting errors
This commit is contained in:
parent
55e153556a
commit
7e769f3b89
3 changed files with 7 additions and 3 deletions
|
@ -1,7 +1,8 @@
|
||||||
from litellm.integrations.custom_logger import CustomLogger
|
from typing import Literal, Optional
|
||||||
|
|
||||||
import litellm
|
import litellm
|
||||||
from litellm.proxy.proxy_server import UserAPIKeyAuth, DualCache
|
from litellm.integrations.custom_logger import CustomLogger
|
||||||
from typing import Optional, Literal
|
from litellm.proxy.proxy_server import DualCache, UserAPIKeyAuth
|
||||||
|
|
||||||
|
|
||||||
# This file includes the custom callbacks for LiteLLM Proxy
|
# This file includes the custom callbacks for LiteLLM Proxy
|
||||||
|
@ -27,6 +28,7 @@ class MyCustomHandler(
|
||||||
"image_generation",
|
"image_generation",
|
||||||
"moderation",
|
"moderation",
|
||||||
"audio_transcription",
|
"audio_transcription",
|
||||||
|
"pass_through_endpoint",
|
||||||
],
|
],
|
||||||
):
|
):
|
||||||
return data
|
return data
|
||||||
|
|
|
@ -198,6 +198,7 @@ class _PROXY_DynamicRateLimitHandler(CustomLogger):
|
||||||
"image_generation",
|
"image_generation",
|
||||||
"moderation",
|
"moderation",
|
||||||
"audio_transcription",
|
"audio_transcription",
|
||||||
|
"pass_through_endpoint",
|
||||||
],
|
],
|
||||||
) -> Optional[
|
) -> Optional[
|
||||||
Union[Exception, str, dict]
|
Union[Exception, str, dict]
|
||||||
|
|
|
@ -66,6 +66,7 @@ class testLogger(CustomLogger):
|
||||||
"image_generation",
|
"image_generation",
|
||||||
"moderation",
|
"moderation",
|
||||||
"audio_transcription",
|
"audio_transcription",
|
||||||
|
"pass_through_endpoint",
|
||||||
],
|
],
|
||||||
):
|
):
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue