langchain-ai
langchain
BlogDocsChangelog

fix(anthropic): prevent crash with cache_control and empty message content

#34025
Comparing
viktortnk:fix/anthropic-cache-control-index-error
(
c44b82c
) with
master
(
328ba36
)
CodSpeed Performance Gauge
0%
Untouched
3
Skipped
31

Benchmarks

Skipped (31)

Passed

test_init_time_with_client
libs/partners/anthropic/tests/unit_tests/test_standard.py
CodSpeed Performance Gauge
+1%
2.2 ms*2.2 ms
test_init_time
libs/partners/anthropic/tests/unit_tests/test_standard.py::TestAnthropicStandard
CodSpeed Performance Gauge
0%
763.7 µs*762.6 µs
test_stream_time
libs/partners/anthropic/tests/integration_tests/test_standard.py::TestAnthropicStandard
CodSpeed Performance Gauge
0%
34.6 ms*34.6 ms

Commits

Click on a commit to change the comparison range
Base
master
328ba36
+0.31%
fix(anthropic): prevent crash with cache_control and empty message content
c44b82c
2 days ago
by viktortnk
© 2025 CodSpeed Technology
Home Terms Privacy Docs