Artifact 7bb81b8d1c23e058df97ad6df57dd16db65b9dd8bb0db5936d2974d2e61db523:
- File
src/provider_http.h
-
2026-11-20 00:29:28
— part of check-in
[376fd483ed]
on branch cache
— Prompt caching on every provider, as Pi's
Anthropic: cache_control on the system block, the last tool and the last block of the final user message; 5 minutes by default, ttl 1h with cacheRetention=long, none with cacheRetention=none (setting in pic.sqlite, PI_CACHE_RETENTION as fallback). Anthropic models through OpenRouter get the same markers. OpenAI Responses and Chat Completions send prompt_cache_key (the conversation id) and 24h retention when long, as Pi does. The system prompt and tools stay byte-identical across turns, and 1-hour cache writes are kept in the stored usage. (user: dmestas, size: 3351) [annotate] [blame] [check-ins using]
- 2026-11-20 02:30:30 — part of check-in [01796f84c3] on branch trunk — CI green on d3f1fb85511f; Fil-C pass (221) on ebc4b0e75a5e (user: dmestas, size: 3351) [annotate] [blame] [check-ins using]
-
2026-11-20 00:29:28
— part of check-in
[376fd483ed]
on branch cache
— Prompt caching on every provider, as Pi's