Skip to content

Commit 893ba52

Browse files
authored
Merge pull request #258 from openai/dev/steve/incomplete-status
Update openai.yaml
2 parents eba4279 + df5699f commit 893ba52

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

openapi.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,9 +1502,13 @@ paths:
15021502
tags:
15031503
- Files
15041504
summary: |
1505-
Upload a file that can be used across various endpoints. The size of all the files uploaded by one organization can be up to 100 GB.
1505+
Upload a file that can be used across various endpoints. Individual files can be up to 512 MB, and the size of all files uploaded by one organization can be up to 100 GB.
15061506
1507-
The size of individual files can be a maximum of 512 MB or 2 million tokens for Assistants. See the [Assistants Tools guide](/docs/assistants/tools) to learn more about the types of files supported. The Fine-tuning API only supports `.jsonl` files.
1507+
The Assistants API supports files up to 2 million tokens and of specific file types. See the [Assistants Tools guide](/docs/assistants/tools) for details.
1508+
1509+
The Fine-tuning API only supports `.jsonl` files.
1510+
1511+
The Batch API only supports `.jsonl` files up to 100 MB in size.
15081512
15091513
Please [contact us](https://help.openai.com/) if you need to increase these storage limits.
15101514
requestBody:
@@ -6652,11 +6656,11 @@ paths:
66526656
66536657
See [upload file](/docs/api-reference/files/create) for how to upload a file.
66546658
6655-
Your input file must be formatted as a [JSONL file](/docs/api-reference/batch/requestInput), and must be uploaded with the purpose `batch`.
6659+
Your input file must be formatted as a [JSONL file](/docs/api-reference/batch/requestInput), 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.
66566660
endpoint:
66576661
type: string
6658-
enum: ["/v1/chat/completions", "/v1/embeddings"]
6659-
description: The endpoint to be used for all requests in the batch. Currently `/v1/chat/completions` and `/v1/embeddings` are supported.
6662+
enum: ["/v1/chat/completions", "/v1/embeddings", "/v1/completions"]
6663+
description: The endpoint to be used for all requests in the batch. Currently `/v1/chat/completions`, `/v1/embeddings`, and `/v1/completions` are supported. Note that `/v1/embeddings` batches are also restricted to a maximum of 50,000 embedding inputs across all requests in the batch.
66606664
completion_window:
66616665
type: string
66626666
enum: ["24h"]
@@ -9642,7 +9646,7 @@ components:
96429646

96439647
AssistantsApiResponseFormatOption:
96449648
description: |
9645-
Specifies the format that the model must output. Compatible with [GPT-4 Turbo](/docs/models/gpt-4-and-gpt-4-turbo) and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
9649+
Specifies the format that the model must output. Compatible with [GPT-4o](/docs/models/gpt-4o), [GPT-4 Turbo](/docs/models/gpt-4-turbo-and-gpt-4), and all GPT-3.5 Turbo models since `gpt-3.5-turbo-1106`.
96469650
96479651
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the message the model generates is valid JSON.
96489652
@@ -10173,7 +10177,7 @@ components:
1017310177
description: The ID of the [assistant](/docs/api-reference/assistants) used for execution of this run.
1017410178
type: string
1017510179
status:
10176-
description: The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, or `expired`.
10180+
description: The status of the run, which can be either `queued`, `in_progress`, `requires_action`, `cancelling`, `cancelled`, `failed`, `completed`, `incomplete`, or `expired`.
1017710181
type: string
1017810182
enum:
1017910183
[
@@ -10184,6 +10188,7 @@ components:
1018410188
"cancelled",
1018510189
"failed",
1018610190
"completed",
10191+
"incomplete",
1018710192
"expired",
1018810193
]
1018910194
required_action:
@@ -12927,7 +12932,7 @@ components:
1292712932
description: The HTTP method to be used for the request. Currently only `POST` is supported.
1292812933
url:
1292912934
type: string
12930-
description: The OpenAI API relative URL to be used for the request. Currently `/v1/chat/completions` and `/v1/embeddings` are supported.
12935+
description: The OpenAI API relative URL to be used for the request. Currently `/v1/chat/completions`, `/v1/embeddings`, and `/v1/completions` are supported.
1293112936
x-oaiMeta:
1293212937
name: The request input object
1293312938
example: |

0 commit comments

Comments
 (0)