Powered by
🟡 Using Anthropic's Automatic Caching with BAML
# questions
r
rrxxww
05/05/2026, 6:22 PM
Is there a way to use Anthropic's automatic caching? Looks like we can only do explicit cache breakpoints today with BAML.
rrxxww
05/05/2026, 6:57 PM
ah, I think I can just pass that
Copy code
cache_control { "type" "ephemeral" }
in the options and let it pass through.
a
avery (BAML)
05/05/2026, 9:39 PM
yeah anything that isn’t BAML specific gets forwarded to request body
avery (BAML)
05/05/2026, 9:40 PM
so if they ever add some new fancy field you should always be able to use it with BAML even if we haven’t updated to explicitly support it
Previous
Next