mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
Merge pull request #19786 from Chesars/fix/python310-any-subclass-error
fix(containers): Fix Python 3.10 compatibility for OpenAIContainerConfig
This commit is contained in:
commit
c5ddbb9660
1 changed files with 2 additions and 5 deletions
|
|
@ -16,20 +16,17 @@ from litellm.types.containers.main import (
|
|||
)
|
||||
from litellm.types.router import GenericLiteLLMParams
|
||||
|
||||
from ...base_llm.containers.transformation import BaseContainerConfig
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from litellm.litellm_core_utils.litellm_logging import Logging as _LiteLLMLoggingObj
|
||||
|
||||
from ...base_llm.chat.transformation import BaseLLMException as _BaseLLMException
|
||||
from ...base_llm.containers.transformation import (
|
||||
BaseContainerConfig as _BaseContainerConfig,
|
||||
)
|
||||
|
||||
LiteLLMLoggingObj = _LiteLLMLoggingObj
|
||||
BaseContainerConfig = _BaseContainerConfig
|
||||
BaseLLMException = _BaseLLMException
|
||||
else:
|
||||
LiteLLMLoggingObj = Any
|
||||
BaseContainerConfig = Any
|
||||
BaseLLMException = Any
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue