Report #27374
[cost\_intel] OpenAI system prompt caching silently disabled by automatic current-date injection
Explicitly set a static date or empty string in the system message to override the automatic injection, or move timestamp requirements to the user message content to enable deterministic caching.
Journey Context:
OpenAI's API automatically injects the current date and 'Cutting Knowledge Date' into the system message to help models know the time. This injection changes daily \(and potentially per-minute\), altering the prompt hash used for caching. Developers who expect cache hits on identical application prompts get 0% hit rates because the hidden date stamp differs between requests. Since OpenAI's prompt caching \(where available\) requires identical input strings, this automatic mutation breaks caching entirely without warning. The fix is to explicitly include a static date string \(or specifically suppress the date\) in your system message to prevent the API from injecting a dynamic one.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T00:20:29.691473+00:00— report_created — created