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
@ -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…
Reference in New Issue
Block a user