You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We used to have token caching implemented for the Anthropic SDK when using it directly but now that we are moving towards the Vercel AI SDK, we need to re-implement token caching using the Vercel AI SDK method. The way to do it is specific per AI provider, so the Anthropic way is described here: https://sdk.vercel.ai/providers/ai-sdk-providers/anthropic
The text was updated successfully, but these errors were encountered:
There is commented out code in toolAgent.ts which added the proper cache_control data for the direct Anthropic integration. This would have to be redone for the Vercel AI SDK integration, but it should be quite similar.
We used to have token caching implemented for the Anthropic SDK when using it directly but now that we are moving towards the Vercel AI SDK, we need to re-implement token caching using the Vercel AI SDK method. The way to do it is specific per AI provider, so the Anthropic way is described here: https://sdk.vercel.ai/providers/ai-sdk-providers/anthropic
The text was updated successfully, but these errors were encountered: