From 2fe0369049bf1fb1e671d546aed4e4d390aff1f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=AA=20Nam=20Kh=C3=A1nh?= <55955273+khanhkhanhlele@users.noreply.github.com> Date: Fri, 7 Nov 2025 21:04:29 +0700 Subject: [PATCH] docs: fix typos in some files (#33867) --- .../integration_template/docs/vectorstores.ipynb | 2 +- libs/core/langchain_core/messages/content.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/cli/langchain_cli/integration_template/docs/vectorstores.ipynb b/libs/cli/langchain_cli/integration_template/docs/vectorstores.ipynb index 7f7f58b15c9..c77e495ad72 100644 --- a/libs/cli/langchain_cli/integration_template/docs/vectorstores.ipynb +++ b/libs/cli/langchain_cli/integration_template/docs/vectorstores.ipynb @@ -295,7 +295,7 @@ "source": [ "## TODO: Any functionality specific to this vector store\n", "\n", - "E.g. creating a persisten database to save to your disk, etc." + "E.g. creating a persistent database to save to your disk, etc." ] }, { diff --git a/libs/core/langchain_core/messages/content.py b/libs/core/langchain_core/messages/content.py index 4b6a63e95f0..568579bc203 100644 --- a/libs/core/langchain_core/messages/content.py +++ b/libs/core/langchain_core/messages/content.py @@ -867,7 +867,7 @@ def _get_data_content_block_types() -> tuple[str, ...]: Example: ("image", "video", "audio", "text-plain", "file") Note that old style multimodal blocks type literals with new style blocks. - Speficially, "image", "audio", and "file". + Specifically, "image", "audio", and "file". See the docstring of `_normalize_messages` in `language_models._utils` for details. """ @@ -906,7 +906,7 @@ def is_data_content_block(block: dict) -> bool: # 'text' is checked to support v0 PlainTextContentBlock types # We must guard against new style TextContentBlock which also has 'text' `type` - # by ensuring the presense of `source_type` + # by ensuring the presence of `source_type` if block["type"] == "text" and "source_type" not in block: # noqa: SIM103 # This is more readable return False