mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
anthropic[minor]: claude 3 (#18508)
This commit is contained in:
@@ -77,7 +77,7 @@ class ChatAnthropic(BaseChatModel):
|
||||
model: str = Field(alias="model_name")
|
||||
"""Model name to use."""
|
||||
|
||||
max_tokens: int = Field(default=256, alias="max_tokens_to_sample")
|
||||
max_tokens: int = Field(default=1024, alias="max_tokens_to_sample")
|
||||
"""Denotes the number of tokens to predict per generation."""
|
||||
|
||||
temperature: Optional[float] = None
|
||||
|
||||
@@ -35,7 +35,7 @@ class _AnthropicCommon(BaseLanguageModel):
|
||||
model: str = Field(default="claude-2", alias="model_name")
|
||||
"""Model name to use."""
|
||||
|
||||
max_tokens_to_sample: int = Field(default=256, alias="max_tokens")
|
||||
max_tokens_to_sample: int = Field(default=1024, alias="max_tokens")
|
||||
"""Denotes the number of tokens to predict per generation."""
|
||||
|
||||
temperature: Optional[float] = None
|
||||
|
||||
Reference in New Issue
Block a user