logoalt Hacker News

handfuloflight • 11/07/2024 • 1 reply • view on HN

> However, we also try to leverage prompt-caching as much as possible to lower costs and improve latency.

Interesting! That does have 5 minute expiry on Claude, and your users can use Codebuff in an unoptimal way. Do you have plans in aligning your users towards using the tool in a way that makes the most use of prompt caches?


Replies

jahooma • 11/07/2024

That's a really great point. Since we manage the context, we should clear the old files if it's been > 5 minutes. Thanks for the idea!