2626from ...types .chat_model import ChatModel
2727from ...types .beta .assistant import Assistant
2828from ...types .beta .assistant_deleted import AssistantDeleted
29+ from ...types .shared_params .metadata import Metadata
2930from ...types .beta .assistant_tool_param import AssistantToolParam
3031from ...types .beta .assistant_response_format_option_param import AssistantResponseFormatOptionParam
3132
@@ -58,7 +59,7 @@ def create(
5859 model : Union [str , ChatModel ],
5960 description : Optional [str ] | NotGiven = NOT_GIVEN ,
6061 instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
61- metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
62+ metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
6263 name : Optional [str ] | NotGiven = NOT_GIVEN ,
6364 response_format : Optional [AssistantResponseFormatOptionParam ] | NotGiven = NOT_GIVEN ,
6465 temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
@@ -88,9 +89,11 @@ def create(
8889 characters.
8990
9091 metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
91- for storing additional information about the object in a structured format. Keys
92- can be a maximum of 64 characters long and values can be a maximum of 512
93- characters long.
92+ for storing additional information about the object in a structured format, and
93+ querying for objects via API or the dashboard.
94+
95+ Keys are strings with a maximum length of 64 characters. Values are strings with
96+ a maximum length of 512 characters.
9497
9598 name: The name of the assistant. The maximum length is 256 characters.
9699
@@ -206,7 +209,7 @@ def update(
206209 * ,
207210 description : Optional [str ] | NotGiven = NOT_GIVEN ,
208211 instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
209- metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
212+ metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
210213 model : str | NotGiven = NOT_GIVEN ,
211214 name : Optional [str ] | NotGiven = NOT_GIVEN ,
212215 response_format : Optional [AssistantResponseFormatOptionParam ] | NotGiven = NOT_GIVEN ,
@@ -232,9 +235,11 @@ def update(
232235 characters.
233236
234237 metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
235- for storing additional information about the object in a structured format. Keys
236- can be a maximum of 64 characters long and values can be a maximum of 512
237- characters long.
238+ for storing additional information about the object in a structured format, and
239+ querying for objects via API or the dashboard.
240+
241+ Keys are strings with a maximum length of 64 characters. Values are strings with
242+ a maximum length of 512 characters.
238243
239244 model: ID of the model to use. You can use the
240245 [List models](https://platform.openai.com/docs/api-reference/models/list) API to
@@ -444,7 +449,7 @@ async def create(
444449 model : Union [str , ChatModel ],
445450 description : Optional [str ] | NotGiven = NOT_GIVEN ,
446451 instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
447- metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
452+ metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
448453 name : Optional [str ] | NotGiven = NOT_GIVEN ,
449454 response_format : Optional [AssistantResponseFormatOptionParam ] | NotGiven = NOT_GIVEN ,
450455 temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
@@ -474,9 +479,11 @@ async def create(
474479 characters.
475480
476481 metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
477- for storing additional information about the object in a structured format. Keys
478- can be a maximum of 64 characters long and values can be a maximum of 512
479- characters long.
482+ for storing additional information about the object in a structured format, and
483+ querying for objects via API or the dashboard.
484+
485+ Keys are strings with a maximum length of 64 characters. Values are strings with
486+ a maximum length of 512 characters.
480487
481488 name: The name of the assistant. The maximum length is 256 characters.
482489
@@ -592,7 +599,7 @@ async def update(
592599 * ,
593600 description : Optional [str ] | NotGiven = NOT_GIVEN ,
594601 instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
595- metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
602+ metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
596603 model : str | NotGiven = NOT_GIVEN ,
597604 name : Optional [str ] | NotGiven = NOT_GIVEN ,
598605 response_format : Optional [AssistantResponseFormatOptionParam ] | NotGiven = NOT_GIVEN ,
@@ -618,9 +625,11 @@ async def update(
618625 characters.
619626
620627 metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
621- for storing additional information about the object in a structured format. Keys
622- can be a maximum of 64 characters long and values can be a maximum of 512
623- characters long.
628+ for storing additional information about the object in a structured format, and
629+ querying for objects via API or the dashboard.
630+
631+ Keys are strings with a maximum length of 64 characters. Values are strings with
632+ a maximum length of 512 characters.
624633
625634 model: ID of the model to use. You can use the
626635 [List models](https://platform.openai.com/docs/api-reference/models/list) API to
0 commit comments