mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-24 15:43:54 +00:00
anthropic: set default model (#21986)
Various docs reference `ChatAnthropic()`, but this currently raises ValidationError.
This commit is contained in:
parent
0923136851
commit
35439cf3bd
@ -259,7 +259,7 @@ class ChatAnthropic(BaseChatModel):
|
||||
_client: anthropic.Client = Field(default=None)
|
||||
_async_client: anthropic.AsyncClient = Field(default=None)
|
||||
|
||||
model: str = Field(alias="model_name")
|
||||
model: str = Field(default="claude-3-haiku-20240307", alias="model_name")
|
||||
"""Model name to use."""
|
||||
|
||||
max_tokens: int = Field(default=1024, alias="max_tokens_to_sample")
|
||||
|
Loading…
Reference in New Issue
Block a user