mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
fix(huggingface): Helper logic for init_chat_model with HuggingFace backend (#34259)
This commit is contained in:
@@ -405,7 +405,7 @@ def _init_chat_model_helper(
|
||||
_check_pkg("langchain_huggingface")
|
||||
from langchain_huggingface import ChatHuggingFace
|
||||
|
||||
return ChatHuggingFace(model_id=model, **kwargs)
|
||||
return ChatHuggingFace.from_model_id(model_id=model, **kwargs)
|
||||
if model_provider == "groq":
|
||||
_check_pkg("langchain_groq")
|
||||
from langchain_groq import ChatGroq
|
||||
|
||||
Reference in New Issue
Block a user