mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-14 23:26:34 +00:00
more
This commit is contained in:
parent
8fc1d5bb12
commit
13719df998
@ -736,11 +736,7 @@ class BaseChatModel(RunnableSerializable[LanguageModelInput, AIMessageV1], ABC):
|
|||||||
ls_params["ls_stop"] = stop
|
ls_params["ls_stop"] = stop
|
||||||
|
|
||||||
# model
|
# model
|
||||||
model = (
|
model = getattr(self, "model", None) or getattr(self, "model_name", None)
|
||||||
kwargs.get("model")
|
|
||||||
or getattr(self, "model", None)
|
|
||||||
or getattr(self, "model_name", None)
|
|
||||||
)
|
|
||||||
if isinstance(model, str):
|
if isinstance(model, str):
|
||||||
ls_params["ls_model_name"] = model
|
ls_params["ls_model_name"] = model
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user