mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-23 15:19:33 +00:00
docs: document init_chat_model standard params (#27812)
This commit is contained in:
parent
395674d503
commit
b2da3115ed
@ -149,7 +149,16 @@ def init_chat_model(
|
|||||||
``config["configurable"]["{config_prefix}_{param}"]`` keys. If
|
``config["configurable"]["{config_prefix}_{param}"]`` keys. If
|
||||||
config_prefix is an empty string then model will be configurable via
|
config_prefix is an empty string then model will be configurable via
|
||||||
``config["configurable"]["{param}"]``.
|
``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)``.
|
``<<selected ChatModel>>.__init__(model=model_name, **kwargs)``.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
Loading…
Reference in New Issue
Block a user