Skip to content

Anthropic automatic caching support #12712

@danthegoodman1

Description

@danthegoodman1

Description

They now support automatic caching https://platform.claude.com/docs/en/build-with-claude/prompt-caching#automatic-caching

Annoyingly, the types support putting this in the top level provider options already, however it gets stripped before being sent to the provider.

AI SDK Version

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai/providerrelated to a provider package. Must be assigned together with at least one `provider/*` labelfeatureNew feature or requestprovider/anthropicIssues related to the @ai-sdk/anthropic providersupport

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions