codekingpro/portable-devtools
114k
1from typing import TYPE_CHECKING, Any2 3from langchain_classic._api import create_importer4 5if TYPE_CHECKING:6 from langchain_community.chat_models.mlflow_ai_gateway import (7 ChatMLflowAIGateway,8 ChatParams,9 )10 11# Create a way to dynamically look up deprecated imports.12# Used to consolidate logic for raising deprecation warnings and13# handling optional imports.14DEPRECATED_LOOKUP = {15 "ChatMLflowAIGateway": "langchain_community.chat_models.mlflow_ai_gateway",16 "ChatParams": "langchain_community.chat_models.mlflow_ai_gateway",17}18 19_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)20 21 22def __getattr__(name: str) -> Any:23 """Look up attributes dynamically."""24 return _import_attribute(name)25 26 27__all__ = [28 "ChatMLflowAIGateway",29 "ChatParams",30]31 