Skip to content

The agent engineering platform.

docs: fix anthropic max_tokens docstring (#27166)

Bagatur38099800cc0a
diff --git a/libs/partners/anthropic/langchain_anthropic/chat_models.py b/libs/partners/anthropic/langchain_anthropic/chat_models.py
index 7b7e48462c..d7f2643f0f 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: