docs: document init_chat_model standard params (#27812)

This commit is contained in:
Bagatur 2024-11-06 09:50:07 -08:00 committed by GitHub
parent 395674d503
commit b2da3115ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
``<<selected ChatModel>>.__init__(model=model_name, **kwargs)``.
Returns: