Repository navigation
fix(anthropic): preserve message cache control for list content - #43447
Oxygenesis wants to merge 2 commits into
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
The latest head ( |
|
Follow-up on the shared CI failure: the four OpenAPI failures in the misc shard are now isolated in #43807, which updates the compliance tests to the current live Interactions schema; its OpenAPI tests pass in CI. I'm keeping this Bedrock cache-control PR focused and leaving those unrelated test changes out. After #43807 lands, this PR should only need a misc-shard rerun. |
|
I also opened #43812 for the separate ultrafast model-cost schema mismatch now present on main. This Bedrock cache-control PR remains unchanged; after the OpenAPI and cost-map maintenance fixes land, rerun the misc shard here. |
Summary
cache_controlfor Anthropic list content by applying it to the last converted block when no block-level setting exists.cache_controlprecedence.Problem
Fixes #43324. When content is a list, the translators inspect each content element but ignore
cache_controlon the containing message, so prompt-cache breakpoints disappear silently for Anthropic and Bedrock Converse.Testing
text/markdownMIME mapping supplied; the native run otherwise hit one unrelated existing MIME-type fixture failure.py_compileandgit diff --checkpassed.