Commit 8eba381d

stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
2024-11-21 02:17:44
feat(api): add gpt-4o-2024-11-20 model (#1877)
1 parent 7cdc6dd
src/openai/resources/batches.py
@@ -81,7 +81,7 @@ class Batches(SyncAPIResource):
               Your input file must be formatted as a
               [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input),
               and must be uploaded with the purpose `batch`. The file can contain up to 50,000
-              requests, and can be up to 100 MB in size.
+              requests, and can be up to 200 MB in size.
 
           metadata: Optional custom metadata for the batch.
 
@@ -286,7 +286,7 @@ class AsyncBatches(AsyncAPIResource):
               Your input file must be formatted as a
               [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input),
               and must be uploaded with the purpose `batch`. The file can contain up to 50,000
-              requests, and can be up to 100 MB in size.
+              requests, and can be up to 200 MB in size.
 
           metadata: Optional custom metadata for the batch.
 
src/openai/resources/files.py
@@ -86,7 +86,7 @@ class Files(SyncAPIResource):
         [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input)
         models.
 
-        The Batch API only supports `.jsonl` files up to 100 MB in size. The input also
+        The Batch API only supports `.jsonl` files up to 200 MB in size. The input also
         has a specific required
         [format](https://platform.openai.com/docs/api-reference/batch/request-input).
 
@@ -402,7 +402,7 @@ class AsyncFiles(AsyncAPIResource):
         [completions](https://platform.openai.com/docs/api-reference/fine-tuning/completions-input)
         models.
 
-        The Batch API only supports `.jsonl` files up to 100 MB in size. The input also
+        The Batch API only supports `.jsonl` files up to 200 MB in size. The input also
         has a specific required
         [format](https://platform.openai.com/docs/api-reference/batch/request-input).
 
src/openai/types/chat/chat_completion_audio_param.py
@@ -17,6 +17,7 @@ class ChatCompletionAudioParam(TypedDict, total=False):
     voice: Required[Literal["alloy", "ash", "ballad", "coral", "echo", "sage", "shimmer", "verse"]]
     """The voice the model uses to respond.
 
-    Supported voices are `alloy`, `ash`, `ballad`, `coral`, `echo`, `sage`,
-    `shimmer`, and `verse`.
+    Supported voices are `ash`, `ballad`, `coral`, `sage`, and `verse` (also
+    supported but not recommended are `alloy`, `echo`, and `shimmer`; these voices
+    are less expressive).
     """
src/openai/types/batch_create_params.py
@@ -32,7 +32,7 @@ class BatchCreateParams(TypedDict, total=False):
     Your input file must be formatted as a
     [JSONL file](https://platform.openai.com/docs/api-reference/batch/request-input),
     and must be uploaded with the purpose `batch`. The file can contain up to 50,000
-    requests, and can be up to 100 MB in size.
+    requests, and can be up to 200 MB in size.
     """
 
     metadata: Optional[Dict[str, str]]
src/openai/types/chat_model.py
@@ -10,6 +10,7 @@ ChatModel: TypeAlias = Literal[
     "o1-mini",
     "o1-mini-2024-09-12",
     "gpt-4o",
+    "gpt-4o-2024-11-20",
     "gpt-4o-2024-08-06",
     "gpt-4o-2024-05-13",
     "gpt-4o-realtime-preview",
.stats.yml
@@ -1,2 +1,2 @@
 configured_endpoints: 68
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-fb9db2d2c1f0d6b39d8ee042db5d5c59acba6ad1daf47c18792c1f5fb24b3401.yml
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-aa9b01fc0c17eb0cbc200533fc20d6a49c5e764ceaf8049e08b294532be6e9ff.yml