community[patch]: more deprecations (#15782)

This commit is contained in:
Erick Friis
2024-01-09 20:36:16 -08:00
committed by GitHub
parent 33dccf0f66
commit 85a4594ed7
11 changed files with 36 additions and 52 deletions

View File

@@ -9,6 +9,7 @@ from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Optional, Union, ca
from urllib.parse import urlparse
import requests
from langchain_core._api.deprecation import deprecated
from langchain_core.callbacks import (
AsyncCallbackManagerForLLMRun,
CallbackManagerForLLMRun,
@@ -203,6 +204,11 @@ def _get_question(messages: List[BaseMessage]) -> HumanMessage:
return question
@deprecated(
since="0.0.12",
removal="0.2.0",
alternative_import="langchain_google_vertexai.ChatVertexAI",
)
class ChatVertexAI(_VertexAICommon, BaseChatModel):
"""`Vertex AI` Chat large language models API."""