The system prompt starts with the current time to the second.
Every call therefore begins with a different line, so a provider that caches by prefix can reuse nothing, and the roughly 6,000-token handbook after it is read again on every call.
- What to change
- Take the time out of the system prompt and put it in a labelled <environment> block at the top of the newest user message, as LP-PC-03 recommends. The system prompt is then the same on every call.
- Why it matters
- A prefix cache matches from the first token and stops at the first difference. With nothing changing at the top, the handbook can be served from the cache on every call after the first.
- Estimate
- about 6.7 million prompt tokens per 1,000 calls that the cache could have served
What the estimate assumes
An average call of about 6,800 prompt tokens (the handbook, the instructions and a short question) and 60 output tokens; every call after the first in a cache lifetime could reuse all but the newest message.