@@ -1660,6 +1660,7 @@ def compact(
16601660 input : Union [str , Iterable [ResponseInputItemParam ], None ] | Omit = omit ,
16611661 instructions : Optional [str ] | Omit = omit ,
16621662 previous_response_id : Optional [str ] | Omit = omit ,
1663+ prompt_cache_key : Optional [str ] | Omit = omit ,
16631664 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
16641665 # The extra values given here take precedence over values defined on the client or passed to this method.
16651666 extra_headers : Headers | None = None ,
@@ -1695,6 +1696,8 @@ def compact(
16951696 [conversation state](https://platform.openai.com/docs/guides/conversation-state).
16961697 Cannot be used in conjunction with `conversation`.
16971698
1699+ prompt_cache_key: A key to use when reading from or writing to the prompt cache.
1700+
16981701 extra_headers: Send extra headers
16991702
17001703 extra_query: Add additional query parameters to the request
@@ -1711,6 +1714,7 @@ def compact(
17111714 "input" : input ,
17121715 "instructions" : instructions ,
17131716 "previous_response_id" : previous_response_id ,
1717+ "prompt_cache_key" : prompt_cache_key ,
17141718 },
17151719 response_compact_params .ResponseCompactParams ,
17161720 ),
@@ -3321,6 +3325,7 @@ async def compact(
33213325 input : Union [str , Iterable [ResponseInputItemParam ], None ] | Omit = omit ,
33223326 instructions : Optional [str ] | Omit = omit ,
33233327 previous_response_id : Optional [str ] | Omit = omit ,
3328+ prompt_cache_key : Optional [str ] | Omit = omit ,
33243329 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
33253330 # The extra values given here take precedence over values defined on the client or passed to this method.
33263331 extra_headers : Headers | None = None ,
@@ -3356,6 +3361,8 @@ async def compact(
33563361 [conversation state](https://platform.openai.com/docs/guides/conversation-state).
33573362 Cannot be used in conjunction with `conversation`.
33583363
3364+ prompt_cache_key: A key to use when reading from or writing to the prompt cache.
3365+
33593366 extra_headers: Send extra headers
33603367
33613368 extra_query: Add additional query parameters to the request
@@ -3372,6 +3379,7 @@ async def compact(
33723379 "input" : input ,
33733380 "instructions" : instructions ,
33743381 "previous_response_id" : previous_response_id ,
3382+ "prompt_cache_key" : prompt_cache_key ,
33753383 },
33763384 response_compact_params .ResponseCompactParams ,
33773385 ),
0 commit comments