from langchain import HuggingFaceHub…
- User
from langchain import HuggingFaceHub llm_huggingface=HuggingFaceHub(repo_id="mistral-community/Mixtral-8x22B-v0.1",model_kwargs={"temperature":0,"max_length":64})
- Assistant
- User
LangChainDeprecationWarning: The class
langchain_community.llms.huggingface_hub.HuggingFaceHubwas deprecated in langchain-community 0.0.21 and will be removed in 0.2.0. Use HuggingFaceEndpoint instead. warn_deprecated( - Assistant
The warning message you've received indicates that the
HuggingFaceHubclass, from thelangchain_community.llms.huggingface_hubmodule, has been deprecated as of version0.0.21of thelangchain-communitypackage. The developers plan to remove it completely in version0.2.0. The recommended action is to switch to using theHuggingFaceEndpointclass instead.