Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-langchain-anthropic for
openSUSE:Factory checked in at 2026-08-21 16:53:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-langchain-anthropic (Old)
and /work/SRC/openSUSE:Factory/.python-langchain-anthropic.new.1258 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-langchain-anthropic"
Fri Aug 21 16:53:26 2026 rev:10 rq:1372627 version:1.6.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-langchain-anthropic/python-langchain-anthropic.changes
2026-08-20 16:15:36.785923588 +0200
+++
/work/SRC/openSUSE:Factory/.python-langchain-anthropic.new.1258/python-langchain-anthropic.changes
2026-08-21 16:54:50.561191013 +0200
@@ -1,0 +2,8 @@
+Thu Aug 20 18:42:02 UTC 2026 - Martin Pluskal <[email protected]>
+
+- Update to 1.6.1:
+ * Drop invalid_tool_call blocks from v1 content conversion
+ so partial streamed tool calls are not sent back to the
+ Anthropic API (kept on AIMessage.invalid_tool_calls)
+
+-------------------------------------------------------------------
Old:
----
langchain_anthropic-1.6.0.tar.gz
New:
----
langchain_anthropic-1.6.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-langchain-anthropic.spec ++++++
--- /var/tmp/diff_new_pack.PAteEs/_old 2026-08-21 16:54:51.481223682 +0200
+++ /var/tmp/diff_new_pack.PAteEs/_new 2026-08-21 16:54:51.484223788 +0200
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-langchain-anthropic
-Version: 1.6.0
+Version: 1.6.1
Release: 0
Summary: Integration package connecting Claude (Anthropic) APIs and
LangChain
License: MIT
++++++ langchain_anthropic-1.6.0.tar.gz -> langchain_anthropic-1.6.1.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/langchain_anthropic-1.6.0/PKG-INFO
new/langchain_anthropic-1.6.1/PKG-INFO
--- old/langchain_anthropic-1.6.0/PKG-INFO 2020-02-02 01:00:00.000000000
+0100
+++ new/langchain_anthropic-1.6.1/PKG-INFO 2020-02-02 01:00:00.000000000
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.5
Name: langchain-anthropic
-Version: 1.6.0
+Version: 1.6.1
Summary: Integration package connecting Claude (Anthropic) APIs and LangChain
Project-URL: Homepage,
https://docs.langchain.com/oss/python/integrations/providers/anthropic
Project-URL: Documentation,
https://reference.langchain.com/python/integrations/langchain_anthropic/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/langchain_anthropic-1.6.0/langchain_anthropic/_compat.py
new/langchain_anthropic-1.6.1/langchain_anthropic/_compat.py
--- old/langchain_anthropic-1.6.0/langchain_anthropic/_compat.py
2020-02-02 01:00:00.000000000 +0100
+++ new/langchain_anthropic-1.6.1/langchain_anthropic/_compat.py
2020-02-02 01:00:00.000000000 +0100
@@ -140,6 +140,9 @@
}
)
+ elif block["type"] == "invalid_tool_call":
+ continue
+
elif block["type"] == "reasoning" and model_provider == "anthropic":
new_block = {}
if "reasoning" in block:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/langchain_anthropic-1.6.0/langchain_anthropic/_version.py
new/langchain_anthropic-1.6.1/langchain_anthropic/_version.py
--- old/langchain_anthropic-1.6.0/langchain_anthropic/_version.py
2020-02-02 01:00:00.000000000 +0100
+++ new/langchain_anthropic-1.6.1/langchain_anthropic/_version.py
2020-02-02 01:00:00.000000000 +0100
@@ -1,3 +1,3 @@
"""Version information for `langchain-anthropic`."""
-__version__ = "1.6.0"
+__version__ = "1.6.1"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/langchain_anthropic-1.6.0/pyproject.toml
new/langchain_anthropic-1.6.1/pyproject.toml
--- old/langchain_anthropic-1.6.0/pyproject.toml 2020-02-02
01:00:00.000000000 +0100
+++ new/langchain_anthropic-1.6.1/pyproject.toml 2020-02-02
01:00:00.000000000 +0100
@@ -20,7 +20,7 @@
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
-version = "1.6.0"
+version = "1.6.1"
requires-python = ">=3.10.0,<4.0.0"
dependencies = [
"anthropic>=0.120.0,<1.0.0",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/langchain_anthropic-1.6.0/tests/unit_tests/test_compat.py
new/langchain_anthropic-1.6.1/tests/unit_tests/test_compat.py
--- old/langchain_anthropic-1.6.0/tests/unit_tests/test_compat.py
1970-01-01 01:00:00.000000000 +0100
+++ new/langchain_anthropic-1.6.1/tests/unit_tests/test_compat.py
2020-02-02 01:00:00.000000000 +0100
@@ -0,0 +1,37 @@
+"""Tests for Anthropic content compatibility helpers."""
+
+from langchain_core.messages import content as types
+
+from langchain_anthropic._compat import _convert_from_v1_to_anthropic
+
+
+def test_convert_from_v1_filters_invalid_tool_calls() -> None:
+ """Test that invalid tool calls are not sent to Anthropic."""
+ content: list[types.ContentBlock] = [
+ {"type": "text", "text": "Let me check."},
+ {
+ "type": "invalid_tool_call",
+ "id": "toolu_invalid",
+ "name": "get_weather",
+ "args": '{"city":',
+ "error": "Invalid JSON",
+ },
+ {
+ "type": "tool_call",
+ "id": "toolu_valid",
+ "name": "get_weather",
+ "args": {"city": "San Francisco"},
+ },
+ ]
+
+ result = _convert_from_v1_to_anthropic(content, [], "anthropic")
+
+ assert result == [
+ {"type": "text", "text": "Let me check."},
+ {
+ "type": "tool_use",
+ "id": "toolu_valid",
+ "name": "get_weather",
+ "input": {"city": "San Francisco"},
+ },
+ ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/langchain_anthropic-1.6.0/uv.lock
new/langchain_anthropic-1.6.1/uv.lock
--- old/langchain_anthropic-1.6.0/uv.lock 2020-02-02 01:00:00.000000000
+0100
+++ new/langchain_anthropic-1.6.1/uv.lock 2020-02-02 01:00:00.000000000
+0100
@@ -617,7 +617,7 @@
[[package]]
name = "langchain-anthropic"
-version = "1.6.0"
+version = "1.6.1"
source = { editable = "." }
dependencies = [
{ name = "anthropic" },