langchain-ai
langchain
BlogDocsChangelog

fix(anthropic): skip cache_control for code_execution blocks

#34579Merged
Comparing
lwtaiyty:master
(
1a4c325
) with
master
(
be2c7f1
)
CodSpeed Performance Gauge
+3%
Untouched
3
Skipped
31

Benchmarks

Skipped (31)

Passed

test_stream_time
libs/partners/anthropic/tests/integration_tests/test_standard.py::TestAnthropicStandard
CodSpeed Performance Gauge
+9%
34.7 ms*31.9 ms
test_init_time
libs/partners/anthropic/tests/unit_tests/test_standard.py::TestAnthropicStandard
CodSpeed Performance Gauge
0%
799.2 µs*797.8 µs
test_init_time_with_client
libs/partners/anthropic/tests/unit_tests/test_standard.py
CodSpeed Performance Gauge
0%
2.3 ms*2.3 ms

Commits

Click on a commit to change the comparison range
Base
master
be2c7f1
+2.73%
Add unit tests for prompt caching middleware Unit tests for cache_control handling with code_execution blocks. Tests focus on correct handling of code_execution server tool blocks, which cannot have cache_control applied per Anthropic API requirements.
72b66d9
5 days ago
by lwtaiyty
+0.13%
Remove unused import of Set from typing
b87270a
4 days ago
by lwtaiyty
+0.08%
Update chat_models.py
1230e4b
4 days ago
by lwtaiyty
+0.01%
Update chat_models.py
6028e5c
4 days ago
by lwtaiyty
-0.18%
Update test_prompt_caching_middleware.py
74b18d5
4 days ago
by lwtaiyty
-0.09%
Merge branch 'master' into master
d962c53
3 days ago
by lwtaiyty
+0.26%
move test
1a4c325
1 day ago
by ccurme
© 2026 CodSpeed Technology
Home Terms Privacy Docs