The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
docs: document init_chat_model standard params (#27812)
Bagaturb2da3115ed4f
diff --git a/libs/langchain/langchain/chat_models/base.py b/libs/langchain/langchain/chat_models/base.pyindex 95720a9203..d17a2932bc 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. Ifconfig_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``<<selected ChatModel>>.__init__(model=model_name, **kwargs)``.Returns: