From 163dd1c1a4dc285d1615f4b76f9796eca1a31386 Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Wed, 6 Nov 2024 09:50:07 -0800 Subject: [PATCH] docs: document init_chat_model standard params (#27812) --- libs/langchain/langchain/chat_models/base.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libs/langchain/langchain/chat_models/base.py b/libs/langchain/langchain/chat_models/base.py index 95720a92032c8e..d17a2932bc8f24 100644 --- a/libs/langchain/langchain/chat_models/base.py +++ b/libs/langchain/langchain/chat_models/base.py @@ -149,7 +149,16 @@ def init_chat_model( ``config["configurable"]["{config_prefix}_{param}"]`` keys. If config_prefix is an empty string then model will be configurable via ``config["configurable"]["{param}"]``. - kwargs: Additional keyword args to pass to + temperature: Model temperature. + max_tokens: Max output tokens. + timeout: The maximum time (in seconds) to wait for a response from the model + before canceling the request. + max_retries: The maximum number of attempts the system will make to resend a + request if it fails due to issues like network timeouts or rate limits. + base_url: The URL of the API endpoint where requests are sent. + rate_limiter: A ``BaseRateLimiter`` to space out requests to avoid exceeding + rate limits. + kwargs: Additional model-specific keyword args to pass to ``<>.__init__(model=model_name, **kwargs)``. Returns: