Skip to content

Conversation

@Sanjan611
Copy link
Contributor

@Sanjan611 Sanjan611 commented Dec 9, 2025

Prompt caching example is outdated since this feature is now GA for Anthropic (and not beta), therefore the beta headers are not required. Also updated the Anthropic model ID as Sonnet 3.5 is retired now.


Note

Refresh prompt caching docs to use Anthropic GA header and claude-sonnet-4-5-20250929, removing deprecated beta header config.

  • Docs (fern/01-guide/05-baml-advanced/prompt-caching.mdx):
    • Update cURL example to use -H "anthropic-version: 2023-06-01" and model claude-sonnet-4-5-20250929.
    • Update BAML client options to model claude-sonnet-4-5-20250929; keep allowed_role_metadata ["cache_control"]; remove beta headers block.
    • Example prompt shows adding cache_control role metadata to messages.

Written by Cursor Bugbot for commit 59f9b1b. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Dec 9, 2025

@Sanjan611 is attempting to deploy a commit to the Boundary Team on Vercel.

A member of the Team first needs to authorize it.

@aaronvg aaronvg enabled auto-merge December 12, 2025 20:31
@aaronvg aaronvg added this pull request to the merge queue Dec 12, 2025
Merged via the queue into BoundaryML:canary with commit 1811be6 Dec 12, 2025
27 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants