Skip to content

[FEATURE] Adding TTL for prompt caching support for other providers beside Bedrock #1721

@kpx-dev

Description

@kpx-dev

Problem Statement

This PR (#1660 (comment)) introduce the TTL support for Bedrock, we also need to support for other providers such as Anthropic (https://platform.claude.com/docs/en/build-with-claude/prompt-caching#1-hour-cache-duration)

Proposed Solution

Follow the similar implementation here: #1660 (comment), we'll support other Providers API

Use Case

Save on token and ttl with prompt caching

Alternatives Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions