6059 6059
6060 Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](/docs/guides/prompt-caching).6060 Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](/docs/guides/prompt-caching).
6061 6061
60626062 - `prompt_cache_retention: optional "in-memory" or "24h"` - `prompt_cache_retention: optional "in_memory" or "24h"`
6063 6063
6064 The retention policy for the prompt cache. Set to `24h` to enable extended prompt caching, which keeps cached prefixes active for longer, up to a maximum of 24 hours. [Learn more](/docs/guides/prompt-caching#prompt-cache-retention).6064 The retention policy for the prompt cache. Set to `24h` to enable extended prompt caching, which keeps cached prefixes active for longer, up to a maximum of 24 hours. [Learn more](/docs/guides/prompt-caching#prompt-cache-retention).
6065 6065
60666066 - `"in-memory"` - `"in_memory"`
6067 6067
6068 - `"24h"`6068 - `"24h"`
6069 6069
6423 "version": "version"6423 "version": "version"
6424 },6424 },
6425 "prompt_cache_key": "prompt-cache-key-1234",6425 "prompt_cache_key": "prompt-cache-key-1234",
64266426 "prompt_cache_retention": "in-memory", "prompt_cache_retention": "in_memory",
6427 "reasoning": {6427 "reasoning": {
6428 "effort": "none",6428 "effort": "none",
6429 "generate_summary": "auto",6429 "generate_summary": "auto",