The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
anthropic[patch]: env ANTHROPIC_API_URL not work (#20507)
Fayfox9fd36efdb53d
diff --git a/libs/partners/anthropic/langchain_anthropic/chat_models.py b/libs/partners/anthropic/langchain_anthropic/chat_models.pyindex faca14a49e..4a216d2c18 100644--- a/libs/partners/anthropic/langchain_anthropic/chat_models.py+++ b/libs/partners/anthropic/langchain_anthropic/chat_models.py@@ -251,7 +251,7 @@ class ChatAnthropic(BaseChatModel):max_retries: int = 2"""Number of retries allowed for requests sent to the Anthropic Completion API."""- anthropic_api_url: str = "https://api.anthropic.com"+ anthropic_api_url: Optional[str] = Noneanthropic_api_key: Optional[SecretStr] = Field(None, alias="api_key")"""Automatically read from env var `ANTHROPIC_API_KEY` if not provided."""