Ironclad / rivet

The open-source visual AI programming environment and TypeScript library
https://rivet.ironcladapp.com
MIT License
2.73k stars 240 forks source link

[Feature]: Support Anthropic API caching in Rivet #439

Open justinwetch opened 2 months ago

justinwetch commented 2 months ago

Feature Request

Very recently, Anthropic has added support for API caching which can save on input token costs by up to 90%. Would be a huge boon for using Claude models in Rivet. docs: https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching

Code of Conduct

manojks1999 commented 1 month ago

Hi @justinwetch , can I work on this?

veloisgood commented 1 month ago

this would be extremely useful. I'm extremely interested.

abrenneke commented 1 month ago

Try running from source, I've implemented prompt caching into the latest commit