26
26
from ...types .chat_model import ChatModel
27
27
from ...types .beta .assistant import Assistant
28
28
from ...types .beta .assistant_deleted import AssistantDeleted
29
+ from ...types .shared_params .metadata import Metadata
29
30
from ...types .beta .assistant_tool_param import AssistantToolParam
30
31
from ...types .beta .assistant_response_format_option_param import AssistantResponseFormatOptionParam
31
32
@@ -58,7 +59,7 @@ def create(
58
59
model : Union [str , ChatModel ],
59
60
description : Optional [str ] | NotGiven = NOT_GIVEN ,
60
61
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
61
- metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
62
+ metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
62
63
name : Optional [str ] | NotGiven = NOT_GIVEN ,
63
64
response_format : Optional [AssistantResponseFormatOptionParam ] | NotGiven = NOT_GIVEN ,
64
65
temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
@@ -88,9 +89,11 @@ def create(
88
89
characters.
89
90
90
91
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.
94
97
95
98
name: The name of the assistant. The maximum length is 256 characters.
96
99
@@ -206,7 +209,7 @@ def update(
206
209
* ,
207
210
description : Optional [str ] | NotGiven = NOT_GIVEN ,
208
211
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
209
- metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
212
+ metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
210
213
model : str | NotGiven = NOT_GIVEN ,
211
214
name : Optional [str ] | NotGiven = NOT_GIVEN ,
212
215
response_format : Optional [AssistantResponseFormatOptionParam ] | NotGiven = NOT_GIVEN ,
@@ -232,9 +235,11 @@ def update(
232
235
characters.
233
236
234
237
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.
238
243
239
244
model: ID of the model to use. You can use the
240
245
[List models](https://platform.openai.com/docs/api-reference/models/list) API to
@@ -444,7 +449,7 @@ async def create(
444
449
model : Union [str , ChatModel ],
445
450
description : Optional [str ] | NotGiven = NOT_GIVEN ,
446
451
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
447
- metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
452
+ metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
448
453
name : Optional [str ] | NotGiven = NOT_GIVEN ,
449
454
response_format : Optional [AssistantResponseFormatOptionParam ] | NotGiven = NOT_GIVEN ,
450
455
temperature : Optional [float ] | NotGiven = NOT_GIVEN ,
@@ -474,9 +479,11 @@ async def create(
474
479
characters.
475
480
476
481
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.
480
487
481
488
name: The name of the assistant. The maximum length is 256 characters.
482
489
@@ -592,7 +599,7 @@ async def update(
592
599
* ,
593
600
description : Optional [str ] | NotGiven = NOT_GIVEN ,
594
601
instructions : Optional [str ] | NotGiven = NOT_GIVEN ,
595
- metadata : Optional [object ] | NotGiven = NOT_GIVEN ,
602
+ metadata : Optional [Metadata ] | NotGiven = NOT_GIVEN ,
596
603
model : str | NotGiven = NOT_GIVEN ,
597
604
name : Optional [str ] | NotGiven = NOT_GIVEN ,
598
605
response_format : Optional [AssistantResponseFormatOptionParam ] | NotGiven = NOT_GIVEN ,
@@ -618,9 +625,11 @@ async def update(
618
625
characters.
619
626
620
627
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.
624
633
625
634
model: ID of the model to use. You can use the
626
635
[List models](https://platform.openai.com/docs/api-reference/models/list) API to
0 commit comments