From 38099800cc0adc0e8f07bc1fc44d0a10fc4009a4 Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Mon, 7 Oct 2024 09:51:42 -0700 Subject: [PATCH] docs: fix anthropic max_tokens docstring (#27166) --- libs/partners/anthropic/langchain_anthropic/chat_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/partners/anthropic/langchain_anthropic/chat_models.py b/libs/partners/anthropic/langchain_anthropic/chat_models.py index 7b7e48462c0..d7f2643f0f7 100644 --- a/libs/partners/anthropic/langchain_anthropic/chat_models.py +++ b/libs/partners/anthropic/langchain_anthropic/chat_models.py @@ -295,7 +295,7 @@ class ChatAnthropic(BaseChatModel): Name of Anthropic model to use. E.g. "claude-3-sonnet-20240229". temperature: float Sampling temperature. Ranges from 0.0 to 1.0. - max_tokens: Optional[int] + max_tokens: int Max number of tokens to generate. Key init args — client params: