forked from phoenix/litellm-mirror
fix linting error
This commit is contained in:
parent
7ad3fe464e
commit
72dd21dc47
1 changed files with 7 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
import asyncio
|
import asyncio
|
||||||
import os
|
import os
|
||||||
import traceback
|
import traceback
|
||||||
from typing import Any, Mapping, Optional, Union
|
from typing import TYPE_CHECKING, Any, Mapping, Optional, Union
|
||||||
|
|
||||||
import httpx
|
import httpx
|
||||||
|
|
||||||
|
@ -9,6 +9,11 @@ import litellm
|
||||||
|
|
||||||
from .types import httpxSpecialProvider
|
from .types import httpxSpecialProvider
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from litellm import LlmProviders
|
||||||
|
else:
|
||||||
|
LlmProviders = Any
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from litellm._version import version
|
from litellm._version import version
|
||||||
except:
|
except:
|
||||||
|
@ -381,7 +386,7 @@ class HTTPHandler:
|
||||||
|
|
||||||
|
|
||||||
def get_async_httpx_client(
|
def get_async_httpx_client(
|
||||||
llm_provider: Union[litellm.LlmProviders, httpxSpecialProvider],
|
llm_provider: Union[LlmProviders, httpxSpecialProvider],
|
||||||
params: Optional[dict] = None,
|
params: Optional[dict] = None,
|
||||||
) -> AsyncHTTPHandler:
|
) -> AsyncHTTPHandler:
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue