spring-ai icon indicating copy to clipboard operation
spring-ai copied to clipboard

Add suport to anthropic prompt caching

Open Claudio-code opened this issue 1 year ago • 1 comments

Please do a quick search on GitHub issues first, the feature you are about to request might have already been requested.

Expected Behavior

Integration uses cache for many contexts, one of which is cost reduction as shown in the documentation

Current Behavior

Context

The cache is in beta but can already be added to the integration

Claudio-code avatar Sep 24 '24 11:09 Claudio-code

Should probalby look at Geminis context caching as well: https://ai.google.dev/gemini-api/docs/caching

aleksabl avatar Sep 24 '24 12:09 aleksabl

New PR: https://github.com/spring-projects/spring-ai/pull/4199

sobychacko avatar Aug 21 '25 01:08 sobychacko