|
2 | 2 |
|
3 | 3 | from __future__ import annotations
|
4 | 4 |
|
5 |
| -from typing import List, Iterable, Optional |
| 5 | +from typing import List, Union, Iterable, Optional |
6 | 6 | from typing_extensions import Literal
|
7 | 7 |
|
8 | 8 | import httpx
|
@@ -57,7 +57,29 @@ def with_streaming_response(self) -> AssistantsWithStreamingResponse:
|
57 | 57 | def create(
|
58 | 58 | self,
|
59 | 59 | *,
|
60 |
| - model: str, |
| 60 | + model: Union[ |
| 61 | + str, |
| 62 | + Literal[ |
| 63 | + "gpt-4-turbo", |
| 64 | + "gpt-4-turbo-2024-04-09", |
| 65 | + "gpt-4-0125-preview", |
| 66 | + "gpt-4-turbo-preview", |
| 67 | + "gpt-4-1106-preview", |
| 68 | + "gpt-4-vision-preview", |
| 69 | + "gpt-4", |
| 70 | + "gpt-4-0314", |
| 71 | + "gpt-4-0613", |
| 72 | + "gpt-4-32k", |
| 73 | + "gpt-4-32k-0314", |
| 74 | + "gpt-4-32k-0613", |
| 75 | + "gpt-3.5-turbo", |
| 76 | + "gpt-3.5-turbo-16k", |
| 77 | + "gpt-3.5-turbo-0613", |
| 78 | + "gpt-3.5-turbo-1106", |
| 79 | + "gpt-3.5-turbo-0125", |
| 80 | + "gpt-3.5-turbo-16k-0613", |
| 81 | + ], |
| 82 | + ], |
61 | 83 | description: Optional[str] | NotGiven = NOT_GIVEN,
|
62 | 84 | file_ids: List[str] | NotGiven = NOT_GIVEN,
|
63 | 85 | instructions: Optional[str] | NotGiven = NOT_GIVEN,
|
@@ -87,7 +109,7 @@ def create(
|
87 | 109 | attached to this assistant. There can be a maximum of 20 files attached to the
|
88 | 110 | assistant. Files are ordered by their creation date in ascending order.
|
89 | 111 |
|
90 |
| - instructions: The system instructions that the assistant uses. The maximum length is 32768 |
| 112 | + instructions: The system instructions that the assistant uses. The maximum length is 256,000 |
91 | 113 | characters.
|
92 | 114 |
|
93 | 115 | metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
|
@@ -194,7 +216,7 @@ def update(
|
194 | 216 | file was previously attached to the list but does not show up in the list, it
|
195 | 217 | will be deleted from the assistant.
|
196 | 218 |
|
197 |
| - instructions: The system instructions that the assistant uses. The maximum length is 32768 |
| 219 | + instructions: The system instructions that the assistant uses. The maximum length is 256,000 |
198 | 220 | characters.
|
199 | 221 |
|
200 | 222 | metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
|
@@ -360,7 +382,29 @@ def with_streaming_response(self) -> AsyncAssistantsWithStreamingResponse:
|
360 | 382 | async def create(
|
361 | 383 | self,
|
362 | 384 | *,
|
363 |
| - model: str, |
| 385 | + model: Union[ |
| 386 | + str, |
| 387 | + Literal[ |
| 388 | + "gpt-4-turbo", |
| 389 | + "gpt-4-turbo-2024-04-09", |
| 390 | + "gpt-4-0125-preview", |
| 391 | + "gpt-4-turbo-preview", |
| 392 | + "gpt-4-1106-preview", |
| 393 | + "gpt-4-vision-preview", |
| 394 | + "gpt-4", |
| 395 | + "gpt-4-0314", |
| 396 | + "gpt-4-0613", |
| 397 | + "gpt-4-32k", |
| 398 | + "gpt-4-32k-0314", |
| 399 | + "gpt-4-32k-0613", |
| 400 | + "gpt-3.5-turbo", |
| 401 | + "gpt-3.5-turbo-16k", |
| 402 | + "gpt-3.5-turbo-0613", |
| 403 | + "gpt-3.5-turbo-1106", |
| 404 | + "gpt-3.5-turbo-0125", |
| 405 | + "gpt-3.5-turbo-16k-0613", |
| 406 | + ], |
| 407 | + ], |
364 | 408 | description: Optional[str] | NotGiven = NOT_GIVEN,
|
365 | 409 | file_ids: List[str] | NotGiven = NOT_GIVEN,
|
366 | 410 | instructions: Optional[str] | NotGiven = NOT_GIVEN,
|
@@ -390,7 +434,7 @@ async def create(
|
390 | 434 | attached to this assistant. There can be a maximum of 20 files attached to the
|
391 | 435 | assistant. Files are ordered by their creation date in ascending order.
|
392 | 436 |
|
393 |
| - instructions: The system instructions that the assistant uses. The maximum length is 32768 |
| 437 | + instructions: The system instructions that the assistant uses. The maximum length is 256,000 |
394 | 438 | characters.
|
395 | 439 |
|
396 | 440 | metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
|
@@ -497,7 +541,7 @@ async def update(
|
497 | 541 | file was previously attached to the list but does not show up in the list, it
|
498 | 542 | will be deleted from the assistant.
|
499 | 543 |
|
500 |
| - instructions: The system instructions that the assistant uses. The maximum length is 32768 |
| 544 | + instructions: The system instructions that the assistant uses. The maximum length is 256,000 |
501 | 545 | characters.
|
502 | 546 |
|
503 | 547 | metadata: Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
0 commit comments