Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Anthropic prompt caching for tool definitions #3820

Open
namukang opened this issue Nov 21, 2024 · 0 comments
Open

Support Anthropic prompt caching for tool definitions #3820

namukang opened this issue Nov 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@namukang
Copy link

namukang commented Nov 21, 2024

Feature Description

The AI SDK currently supports Anthropic's prompt caching for system messages and messages (including tool calls and tool results), but not tool definitions: #3062 (reply in thread)

Anthropic docs: https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching#what-can-be-cached
AI SDK docs: https://sdk.vercel.ai/providers/ai-sdk-providers/anthropic#cache-control

I'd like to be able to implement prompt caching on the tool definitions using the AI SDK. Thank you!

@namukang namukang added the enhancement New feature or request label Nov 21, 2024
@namukang namukang changed the title Support caching tool definitions for Anthropic models Support Anthropic prompt caching for tool definitions Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant