@@ -70,6 +70,7 @@ def create(
7070 n : Optional [int ] | Omit = omit ,
7171 parallel_tool_calls : Optional [bool ] | Omit = omit ,
7272 presence_penalty : Optional [float ] | Omit = omit ,
73+ prompt_cache_key : Optional [str ] | Omit = omit ,
7374 reasoning_effort : Optional [Literal ["none" , "minimal" , "low" , "medium" , "high" , "xhigh" ]] | Omit = omit ,
7475 response_format : Optional [completion_create_params .ResponseFormat ] | Omit = omit ,
7576 safety_identifier : Optional [str ] | Omit = omit ,
@@ -119,6 +120,8 @@ def create(
119120
120121 presence_penalty: The penalty for repeated tokens.
121122
123+ prompt_cache_key: A key to use when reading from or writing to the prompt cache.
124+
122125 reasoning_effort: The effort level for reasoning models.
123126
124127 response_format: The response format to use.
@@ -172,6 +175,7 @@ def create(
172175 n : Optional [int ] | Omit = omit ,
173176 parallel_tool_calls : Optional [bool ] | Omit = omit ,
174177 presence_penalty : Optional [float ] | Omit = omit ,
178+ prompt_cache_key : Optional [str ] | Omit = omit ,
175179 reasoning_effort : Optional [Literal ["none" , "minimal" , "low" , "medium" , "high" , "xhigh" ]] | Omit = omit ,
176180 response_format : Optional [completion_create_params .ResponseFormat ] | Omit = omit ,
177181 safety_identifier : Optional [str ] | Omit = omit ,
@@ -222,6 +226,8 @@ def create(
222226
223227 presence_penalty: The penalty for repeated tokens.
224228
229+ prompt_cache_key: A key to use when reading from or writing to the prompt cache.
230+
225231 reasoning_effort: The effort level for reasoning models.
226232
227233 response_format: The response format to use.
@@ -273,6 +279,7 @@ def create(
273279 n : Optional [int ] | Omit = omit ,
274280 parallel_tool_calls : Optional [bool ] | Omit = omit ,
275281 presence_penalty : Optional [float ] | Omit = omit ,
282+ prompt_cache_key : Optional [str ] | Omit = omit ,
276283 reasoning_effort : Optional [Literal ["none" , "minimal" , "low" , "medium" , "high" , "xhigh" ]] | Omit = omit ,
277284 response_format : Optional [completion_create_params .ResponseFormat ] | Omit = omit ,
278285 safety_identifier : Optional [str ] | Omit = omit ,
@@ -323,6 +330,8 @@ def create(
323330
324331 presence_penalty: The penalty for repeated tokens.
325332
333+ prompt_cache_key: A key to use when reading from or writing to the prompt cache.
334+
326335 reasoning_effort: The effort level for reasoning models.
327336
328337 response_format: The response format to use.
@@ -373,6 +382,7 @@ def create(
373382 n : Optional [int ] | Omit = omit ,
374383 parallel_tool_calls : Optional [bool ] | Omit = omit ,
375384 presence_penalty : Optional [float ] | Omit = omit ,
385+ prompt_cache_key : Optional [str ] | Omit = omit ,
376386 reasoning_effort : Optional [Literal ["none" , "minimal" , "low" , "medium" , "high" , "xhigh" ]] | Omit = omit ,
377387 response_format : Optional [completion_create_params .ResponseFormat ] | Omit = omit ,
378388 safety_identifier : Optional [str ] | Omit = omit ,
@@ -409,6 +419,7 @@ def create(
409419 "n" : n ,
410420 "parallel_tool_calls" : parallel_tool_calls ,
411421 "presence_penalty" : presence_penalty ,
422+ "prompt_cache_key" : prompt_cache_key ,
412423 "reasoning_effort" : reasoning_effort ,
413424 "response_format" : response_format ,
414425 "safety_identifier" : safety_identifier ,
@@ -561,6 +572,7 @@ async def create(
561572 n : Optional [int ] | Omit = omit ,
562573 parallel_tool_calls : Optional [bool ] | Omit = omit ,
563574 presence_penalty : Optional [float ] | Omit = omit ,
575+ prompt_cache_key : Optional [str ] | Omit = omit ,
564576 reasoning_effort : Optional [Literal ["none" , "minimal" , "low" , "medium" , "high" , "xhigh" ]] | Omit = omit ,
565577 response_format : Optional [completion_create_params .ResponseFormat ] | Omit = omit ,
566578 safety_identifier : Optional [str ] | Omit = omit ,
@@ -610,6 +622,8 @@ async def create(
610622
611623 presence_penalty: The penalty for repeated tokens.
612624
625+ prompt_cache_key: A key to use when reading from or writing to the prompt cache.
626+
613627 reasoning_effort: The effort level for reasoning models.
614628
615629 response_format: The response format to use.
@@ -663,6 +677,7 @@ async def create(
663677 n : Optional [int ] | Omit = omit ,
664678 parallel_tool_calls : Optional [bool ] | Omit = omit ,
665679 presence_penalty : Optional [float ] | Omit = omit ,
680+ prompt_cache_key : Optional [str ] | Omit = omit ,
666681 reasoning_effort : Optional [Literal ["none" , "minimal" , "low" , "medium" , "high" , "xhigh" ]] | Omit = omit ,
667682 response_format : Optional [completion_create_params .ResponseFormat ] | Omit = omit ,
668683 safety_identifier : Optional [str ] | Omit = omit ,
@@ -713,6 +728,8 @@ async def create(
713728
714729 presence_penalty: The penalty for repeated tokens.
715730
731+ prompt_cache_key: A key to use when reading from or writing to the prompt cache.
732+
716733 reasoning_effort: The effort level for reasoning models.
717734
718735 response_format: The response format to use.
@@ -764,6 +781,7 @@ async def create(
764781 n : Optional [int ] | Omit = omit ,
765782 parallel_tool_calls : Optional [bool ] | Omit = omit ,
766783 presence_penalty : Optional [float ] | Omit = omit ,
784+ prompt_cache_key : Optional [str ] | Omit = omit ,
767785 reasoning_effort : Optional [Literal ["none" , "minimal" , "low" , "medium" , "high" , "xhigh" ]] | Omit = omit ,
768786 response_format : Optional [completion_create_params .ResponseFormat ] | Omit = omit ,
769787 safety_identifier : Optional [str ] | Omit = omit ,
@@ -814,6 +832,8 @@ async def create(
814832
815833 presence_penalty: The penalty for repeated tokens.
816834
835+ prompt_cache_key: A key to use when reading from or writing to the prompt cache.
836+
817837 reasoning_effort: The effort level for reasoning models.
818838
819839 response_format: The response format to use.
@@ -864,6 +884,7 @@ async def create(
864884 n : Optional [int ] | Omit = omit ,
865885 parallel_tool_calls : Optional [bool ] | Omit = omit ,
866886 presence_penalty : Optional [float ] | Omit = omit ,
887+ prompt_cache_key : Optional [str ] | Omit = omit ,
867888 reasoning_effort : Optional [Literal ["none" , "minimal" , "low" , "medium" , "high" , "xhigh" ]] | Omit = omit ,
868889 response_format : Optional [completion_create_params .ResponseFormat ] | Omit = omit ,
869890 safety_identifier : Optional [str ] | Omit = omit ,
@@ -900,6 +921,7 @@ async def create(
900921 "n" : n ,
901922 "parallel_tool_calls" : parallel_tool_calls ,
902923 "presence_penalty" : presence_penalty ,
924+ "prompt_cache_key" : prompt_cache_key ,
903925 "reasoning_effort" : reasoning_effort ,
904926 "response_format" : response_format ,
905927 "safety_identifier" : safety_identifier ,
0 commit comments