mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-19 13:23:35 +00:00
docs: update to docstrings of ChatAnthropic class (#18493)
**Description:** Update docstrings of ChatAnthropic class **Issue:** Change to ChatAnthropic from ChatAnthropicMessages **Dependencies:** None **Lint and test**: `make format`, `make lint` and `make test` passed
This commit is contained in:
parent
63702a2044
commit
5c387a173f
@ -56,14 +56,18 @@ def _format_messages(messages: List[BaseMessage]) -> Tuple[Optional[str], List[D
|
|||||||
|
|
||||||
|
|
||||||
class ChatAnthropic(BaseChatModel):
|
class ChatAnthropic(BaseChatModel):
|
||||||
"""ChatAnthropicMessages chat model.
|
"""Anthropic chat model.
|
||||||
|
|
||||||
|
To use, you should have the packages ``anthropic`` and ``langchain-anthropic``
|
||||||
|
installed, and the environment variable ANTHROPIC_API_KEY set with your API key,
|
||||||
|
or pass it as a named parameter to the constructor.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from langchain_anthropic import ChatAnthropicMessages
|
from langchain_anthropic import ChatAnthropic
|
||||||
|
|
||||||
model = ChatAnthropicMessages()
|
model = ChatAnthropic()
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
|
Loading…
Reference in New Issue
Block a user