https://www.boundaryml.com logo
🟡 Using Anthropic's Automatic Caching with BAML
# questions
r
Is there a way to use Anthropic's automatic caching? Looks like we can only do explicit cache breakpoints today with BAML.
ah, I think I can just pass that
Copy code
cache_control {
      "type" "ephemeral"
    }
in the options and let it pass through.
a
yeah anything that isn’t BAML specific gets forwarded to request body
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