mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-13 14:50:00 +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
|
||||
|
||||
# model
|
||||
model = (
|
||||
kwargs.get("model")
|
||||
or getattr(self, "model", None)
|
||||
or getattr(self, "model_name", None)
|
||||
)
|
||||
model = getattr(self, "model", None) or getattr(self, "model_name", None)
|
||||
if isinstance(model, str):
|
||||
ls_params["ls_model_name"] = model
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user