Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
llm_requests.py24 linesDownload Raw Back to chains
1from typing import TYPE_CHECKING, Any2 3from langchain_classic._api import create_importer4 5if TYPE_CHECKING:6    from langchain_community.chains.llm_requests import LLMRequestsChain7 8# Create a way to dynamically look up deprecated imports.9# Used to consolidate logic for raising deprecation warnings and10# handling optional imports.11DEPRECATED_LOOKUP = {12    "LLMRequestsChain": "langchain_community.chains.llm_requests",13}14 15_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)16 17 18def __getattr__(name: str) -> Any:19    """Look up attributes dynamically."""20    return _import_attribute(name)21 22 23__all__ = ["LLMRequestsChain"]24 
codekingpro/portable-devtools · Team Ai