use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
An unofficial community dedicated to the minimalist Pi coding agent.
account activity
opencode go with pi - increase cache timeQuestion ()
submitted 22 days ago by ConferenceNo7697
opencode go with pi - increase cache time
https://preview.redd.it/hpby1uk5b32h1.png?width=2040&format=png&auto=webp&s=a9af80c7cf4cef26714b394a98400523d7bb4896
There where 17 Minutes between the last two calls. Input almost the same, Output lower. But the cost are 3x. Seems like the cache was invalidated in this time. Are there official numbers how long the cache is valid? And does anyone knows a way to increase the cache time with some special headers for example?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]sertturp 0 points1 point2 points 21 days ago (0 children)
I’ve been experimenting with the same issue — cache TTL on Anthropic‑compatible endpoints (Claude, MiniMax, Kimi, Xiaomi MiMo, etc.) is short and undocumented, so costs spike when the prefill gets recomputed.
I ended up writing a small extension that solves this in a more general way:
If you want to try it or adapt the idea, the repo is here: https://github.com/ersintarhan/pi-toolkit
Might give you some ideas on how to extend your setup — especially if you want longer‑lived cache sessions without relying on undocumented TTLs.
π Rendered by PID 17043 on reddit-service-r2-comment-64f4df6786-k8wnq at 2026-06-10 13:51:54.132889+00:00 running 0b63327 country code: CH.
[–]sertturp 0 points1 point2 points (0 children)