Skip to content

Support prompt caching for claude models #1419

@liangjs

Description

@liangjs

Do we plan to support the prompt caching feature for the claude models?
This can reduce the cost when the agent runs many long steps.

It requires to set a special cache_control in the chat messages.
Referece: https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching

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