Skip to content

The agent engineering platform.

anthropic[patch]: model type string (#18510)

Erick Friis68c1878380bb
diff --git a/libs/partners/anthropic/langchain_anthropic/chat_models.py b/libs/partners/anthropic/langchain_anthropic/chat_models.py
index 5e4a16c384..16ad5be7b1 100644
--- a/libs/partners/anthropic/langchain_anthropic/chat_models.py
+++ b/libs/partners/anthropic/langchain_anthropic/chat_models.py
@@ -177,7 +177,7 @@ class ChatAnthropic(BaseChatModel):
@property
def _llm_type(self) -> str:
"""Return type of chat model."""
- return "chat-anthropic-messages"
+ return "anthropic-chat"
@root_validator(pre=True)
def build_extra(cls, values: Dict) -> Dict: