diff --git a/docs/docs/integrations/chat/anthropic.ipynb b/docs/docs/integrations/chat/anthropic.ipynb index 54a7e10006e..091ba69fd5f 100644 --- a/docs/docs/integrations/chat/anthropic.ipynb +++ b/docs/docs/integrations/chat/anthropic.ipynb @@ -19,7 +19,7 @@ "\n", "This notebook provides a quick overview for getting started with Anthropic [chat models](/docs/concepts/chat_models). For detailed documentation of all ChatAnthropic features and configurations head to the [API reference](https://python.langchain.com/api_reference/anthropic/chat_models/langchain_anthropic.chat_models.ChatAnthropic.html).\n", "\n", - "Anthropic has several chat models. You can find information about their latest models and their costs, context windows, and supported input types in the [Anthropic docs](https://docs.anthropic.com/en/docs/models-overview).\n", + "Anthropic has several chat models. You can find information about their latest models and their costs, context windows, and supported input types in the [Anthropic docs](https://docs.anthropic.com/en/docs/about-claude/models/overview).\n", "\n", "\n", ":::info AWS Bedrock and Google VertexAI\n", @@ -840,7 +840,7 @@ "source": [ "## Token-efficient tool use\n", "\n", - "Anthropic supports a (beta) [token-efficient tool use](https://docs.anthropic.com/en/docs/build-with-claude/tool-use/token-efficient-tool-use) feature. To use it, specify the relevant beta-headers when instantiating the model." + "Anthropic supports a (beta) [token-efficient tool use](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/token-efficient-tool-use) feature. To use it, specify the relevant beta-headers when instantiating the model." ] }, { @@ -1198,7 +1198,7 @@ "source": [ "## Built-in tools\n", "\n", - "Anthropic supports a variety of [built-in tools](https://docs.anthropic.com/en/docs/build-with-claude/tool-use/text-editor-tool), which can be bound to the model in the [usual way](/docs/how_to/tool_calling/). Claude will generate tool calls adhering to its internal schema for the tool:" + "Anthropic supports a variety of [built-in tools](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/text-editor-tool), which can be bound to the model in the [usual way](/docs/how_to/tool_calling/). Claude will generate tool calls adhering to its internal schema for the tool:" ] }, { @@ -1208,7 +1208,7 @@ "source": [ "### Web search\n", "\n", - "Claude can use a [web search tool](https://docs.anthropic.com/en/docs/build-with-claude/tool-use/web-search-tool) to run searches and ground its responses with citations." + "Claude can use a [web search tool](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/web-search-tool) to run searches and ground its responses with citations." ] }, { @@ -1522,7 +1522,7 @@ "source": [ "### Text editor\n", "\n", - "The text editor tool can be used to view and modify text files. See docs [here](https://docs.anthropic.com/en/docs/build-with-claude/tool-use/text-editor-tool) for details." + "The text editor tool can be used to view and modify text files. See docs [here](https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/text-editor-tool) for details." ] }, { diff --git a/docs/src/theme/ChatModelTabs.js b/docs/src/theme/ChatModelTabs.js index 8123da811e6..18de07434fc 100644 --- a/docs/src/theme/ChatModelTabs.js +++ b/docs/src/theme/ChatModelTabs.js @@ -119,7 +119,7 @@ export default function ChatModelTabs(props) { value: "anthropic", label: "Anthropic", model: "claude-3-7-sonnet-20250219", - comment: "# Note: Model versions may become outdated. Check https://docs.anthropic.com/en/docs/models-overview for latest versions", + comment: "# Note: Model versions may become outdated. Check https://docs.anthropic.com/en/docs/about-claude/models/overview for latest versions", apiKeyName: "ANTHROPIC_API_KEY", packageName: "langchain[anthropic]", }, diff --git a/libs/partners/anthropic/langchain_anthropic/chat_models.py b/libs/partners/anthropic/langchain_anthropic/chat_models.py index c5d6a6c3234..daf0d38fcd2 100644 --- a/libs/partners/anthropic/langchain_anthropic/chat_models.py +++ b/libs/partners/anthropic/langchain_anthropic/chat_models.py @@ -502,7 +502,7 @@ def _handle_anthropic_bad_request(e: anthropic.BadRequestError) -> None: class ChatAnthropic(BaseChatModel): """Anthropic chat models. - See `Anthropic's docs `__ for a + See `Anthropic's docs `__ for a list of the latest models. Setup: diff --git a/libs/partners/anthropic/tests/integration_tests/test_chat_models.py b/libs/partners/anthropic/tests/integration_tests/test_chat_models.py index 600495c84b7..ea7615fd332 100644 --- a/libs/partners/anthropic/tests/integration_tests/test_chat_models.py +++ b/libs/partners/anthropic/tests/integration_tests/test_chat_models.py @@ -462,7 +462,7 @@ def test_tool_use() -> None: assert tool_call["id"] is not None # Testing token-efficient tools - # https://docs.anthropic.com/en/docs/build-with-claude/tool-use/token-efficient-tool-use + # https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/token-efficient-tool-use assert gathered.usage_metadata assert response.usage_metadata assert (