Skip to content

Commit 47ae7ff

Browse files
author
Will Hang
committed
.
1 parent 3f58858 commit 47ae7ff

File tree

1 file changed

+32
-5
lines changed

1 file changed

+32
-5
lines changed

openapi.yaml

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1729,7 +1729,7 @@ paths:
17291729
tags:
17301730
- Uploads
17311731
summary: |
1732-
Creates an intermediate [Upload](/docs/api-reference/uploads/object) object that you can add [Parts](/docs/api-reference/uploads/part-object) to. Currently, an Upload can accept at most 10 GB in total and expires after an hour after you create it.
1732+
Creates an intermediate [Upload](/docs/api-reference/uploads/object) object that you can add [Parts](/docs/api-reference/uploads/part-object) to. Currently, an Upload can accept at most 8 GB in total and expires after an hour after you create it.
17331733

17341734
Once you complete the Upload, we will create a [File](/docs/api-reference/files/object) object that contains all the parts you uploaded. This File is usable in the rest of our platform as a regular File object.
17351735

@@ -1785,9 +1785,18 @@ paths:
17851785
summary: |
17861786
Adds a [Part](/docs/api-reference/uploads/part-object) to an [Upload](/docs/api-reference/uploads/object) object. A Part represents a chunk of bytes from the file you are trying to upload.
17871787

1788-
Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 10 GB.
1788+
Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.
17891789

17901790
It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you [complete the Upload](/docs/api-reference/uploads/complete).
1791+
parameters:
1792+
- in: path
1793+
name: upload_id
1794+
required: true
1795+
schema:
1796+
type: string
1797+
example: upload_abc123
1798+
description: |
1799+
The ID of the Upload.
17911800
requestBody:
17921801
required: true
17931802
content:
@@ -1829,6 +1838,15 @@ paths:
18291838
You can specify the order of the Parts by passing in an ordered list of the Part IDs.
18301839

18311840
The number of bytes uploaded upon completion must match the number of bytes initially specified when creating the Upload object. No Parts may be added after an Upload is completed.
1841+
parameters:
1842+
- in: path
1843+
name: upload_id
1844+
required: true
1845+
schema:
1846+
type: string
1847+
example: upload_abc123
1848+
description: |
1849+
The ID of the Upload.
18321850
requestBody:
18331851
required: true
18341852
content:
@@ -1880,6 +1898,15 @@ paths:
18801898
- Uploads
18811899
summary: |
18821900
Cancels the Upload. No Parts may be added after an Upload is cancelled.
1901+
parameters:
1902+
- in: path
1903+
name: upload_id
1904+
required: true
1905+
schema:
1906+
type: string
1907+
example: upload_abc123
1908+
description: |
1909+
The ID of the Upload.
18831910
responses:
18841911
"200":
18851912
description: OK
@@ -3865,7 +3892,7 @@ paths:
38653892
name: Retrieve message
38663893
group: threads
38673894
beta: true
3868-
returns: The [message](/docs/api-reference/threads/messages/object) object matching the specified ID.
3895+
returns: The [message](/docs/api-reference/messages/object) object matching the specified ID.
38693896
examples:
38703897
request:
38713898
curl: |
@@ -3953,7 +3980,7 @@ paths:
39533980
name: Modify message
39543981
group: threads
39553982
beta: true
3956-
returns: The modified [message](/docs/api-reference/threads/messages/object) object.
3983+
returns: The modified [message](/docs/api-reference/messages/object) object.
39573984
examples:
39583985
request:
39593986
curl: |
@@ -7642,7 +7669,7 @@ components:
76427669
description: The text contents of the message.
76437670
title: Text content
76447671
- type: array
7645-
description: An array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Image input is only supported when using the `gpt-4-visual-preview` model.
7672+
description: An array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Image input is only supported when using the `gpt-4o` model.
76467673
title: Array of content parts
76477674
items:
76487675
$ref: "#/components/schemas/ChatCompletionRequestMessageContentPart"

0 commit comments

Comments
 (0)