Commit Graph
1 Commits
Author SHA1 Message Date
lukaszraczylo cff1761a21 feat(openai): opt-in per-conversation prompt_cache_key
When promptCache.key is set on an openai provider, the gateway sends a
hashed prompt_cache_key per conversation. The key is the SHA-256 of the
caller id and the session id. The session id is the client id, or the
system prompt plus the first user message.

The key is set only when the client sent no prompt_cache_key. It is set
on each attempt copy after the response-cache key is computed. It is not
stored, and it never carries a raw id.
2026-11-26 01:33:56 +00:00