Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
vertexai.py24 linesDownload Raw Back to chat_models
1from typing import TYPE_CHECKING, Any2 3from langchain_classic._api import create_importer4 5if TYPE_CHECKING:6    from langchain_community.chat_models.vertexai import ChatVertexAI7 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 = {"ChatVertexAI": "langchain_community.chat_models.vertexai"}12 13_import_attribute = create_importer(__package__, deprecated_lookups=DEPRECATED_LOOKUP)14 15 16def __getattr__(name: str) -> Any:17    """Look up attributes dynamically."""18    return _import_attribute(name)19 20 21__all__ = [22    "ChatVertexAI",23]24 
codekingpro/portable-devtools · Team Ai