@@ -262,6 +262,7 @@ def create(
262262 compound_custom : Optional [completion_create_params .CompoundCustom ] | Omit = omit ,
263263 disable_tool_validation : bool | Omit = omit ,
264264 documents : Optional [Iterable [completion_create_params .Document ]] | Omit = omit ,
265+ enable_citations : Optional [bool ] | Omit = omit ,
265266 exclude_domains : Optional [SequenceNotStr [str ]] | Omit = omit ,
266267 frequency_penalty : Optional [float ] | Omit = omit ,
267268 function_call : Optional [completion_create_params .FunctionCall ] | Omit = omit ,
@@ -316,6 +317,10 @@ def create(
316317 documents: A list of documents to provide context for the conversation. Each document
317318 contains text that can be referenced by the model.
318319
320+ enable_citations: Whether to enable citations in the response. When enabled, the model will
321+ include citations for information retrieved from provided documents or web
322+ searches.
323+
319324 exclude_domains: Deprecated: Use search_settings.exclude_domains instead. A list of domains to
320325 exclude from the search results when the model uses a web search tool.
321326
@@ -462,6 +467,7 @@ def create(
462467 "compound_custom" : compound_custom ,
463468 "disable_tool_validation" : disable_tool_validation ,
464469 "documents" : documents ,
470+ "enable_citations" : enable_citations ,
465471 "exclude_domains" : exclude_domains ,
466472 "frequency_penalty" : frequency_penalty ,
467473 "function_call" : function_call ,
@@ -736,6 +742,7 @@ async def create(
736742 compound_custom : Optional [completion_create_params .CompoundCustom ] | Omit = omit ,
737743 disable_tool_validation : bool | Omit = omit ,
738744 documents : Optional [Iterable [completion_create_params .Document ]] | Omit = omit ,
745+ enable_citations : Optional [bool ] | Omit = omit ,
739746 exclude_domains : Optional [SequenceNotStr [str ]] | Omit = omit ,
740747 frequency_penalty : Optional [float ] | Omit = omit ,
741748 function_call : Optional [completion_create_params .FunctionCall ] | Omit = omit ,
@@ -790,6 +797,10 @@ async def create(
790797 documents: A list of documents to provide context for the conversation. Each document
791798 contains text that can be referenced by the model.
792799
800+ enable_citations: Whether to enable citations in the response. When enabled, the model will
801+ include citations for information retrieved from provided documents or web
802+ searches.
803+
793804 exclude_domains: Deprecated: Use search_settings.exclude_domains instead. A list of domains to
794805 exclude from the search results when the model uses a web search tool.
795806
@@ -936,6 +947,7 @@ async def create(
936947 "compound_custom" : compound_custom ,
937948 "disable_tool_validation" : disable_tool_validation ,
938949 "documents" : documents ,
950+ "enable_citations" : enable_citations ,
939951 "exclude_domains" : exclude_domains ,
940952 "frequency_penalty" : frequency_penalty ,
941953 "function_call" : function_call ,
0 commit comments