Skip to content

Commit d101684

Browse files
author
Will Hang
committed
.
1 parent 60afe06 commit d101684

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

openapi.yaml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ paths:
119119
"id": "chatcmpl-123",
120120
"object": "chat.completion",
121121
"created": 1677652288,
122-
"model": "gpt-3.5-turbo-0125",
122+
"model": "gpt-4o-mini",
123123
"system_fingerprint": "fp_44709d6fcb",
124124
"choices": [{
125125
"index": 0,
@@ -216,7 +216,7 @@ paths:
216216
"id": "chatcmpl-123",
217217
"object": "chat.completion",
218218
"created": 1677652288,
219-
"model": "gpt-3.5-turbo-0125",
219+
"model": "gpt-4o-mini",
220220
"system_fingerprint": "fp_44709d6fcb",
221221
"choices": [{
222222
"index": 0,
@@ -291,13 +291,13 @@ paths:
291291

292292
main();
293293
response: &chat_completion_chunk_example |
294-
{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0125", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]}
294+
{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-4o-mini", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"logprobs":null,"finish_reason":null}]}
295295

296-
{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0125", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}]}
296+
{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-4o-mini", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"logprobs":null,"finish_reason":null}]}
297297

298298
....
299299

300-
{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0125", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]}
300+
{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-4o-mini", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]}
301301
- title: Functions
302302
request:
303303
curl: |
@@ -414,7 +414,7 @@ paths:
414414
"id": "chatcmpl-abc123",
415415
"object": "chat.completion",
416416
"created": 1699896916,
417-
"model": "gpt-3.5-turbo-0125",
417+
"model": "gpt-4o-mini",
418418
"choices": [
419419
{
420420
"index": 0,
@@ -496,7 +496,7 @@ paths:
496496
"id": "chatcmpl-123",
497497
"object": "chat.completion",
498498
"created": 1702685778,
499-
"model": "gpt-3.5-turbo-0125",
499+
"model": "gpt-4o-mini",
500500
"choices": [
501501
{
502502
"index": 0,
@@ -1777,7 +1777,7 @@ paths:
17771777
"expires_at": 1719127296
17781778
}
17791779

1780-
/uploads/{upload_id}/part:
1780+
/uploads/{upload_id}/parts:
17811781
post:
17821782
operationId: addUploadPart
17831783
tags:
@@ -1833,7 +1833,9 @@ paths:
18331833
tags:
18341834
- Uploads
18351835
summary: |
1836-
Completes the [Upload](/docs/api-reference/uploads/object) and returns a [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.
1836+
Completes the [Upload](/docs/api-reference/uploads/object).
1837+
1838+
Within the returned Upload object, there is a nested [File](/docs/api-reference/files/object) object that is ready to use in the rest of the platform.
18371839

18381840
You can specify the order of the Parts by passing in an ordered list of the Part IDs.
18391841

@@ -3892,7 +3894,7 @@ paths:
38923894
name: Retrieve message
38933895
group: threads
38943896
beta: true
3895-
returns: The [message](/docs/api-reference/threads/messages/object) object matching the specified ID.
3897+
returns: The [message](/docs/api-reference/messages/object) object matching the specified ID.
38963898
examples:
38973899
request:
38983900
curl: |
@@ -3980,7 +3982,7 @@ paths:
39803982
name: Modify message
39813983
group: threads
39823984
beta: true
3983-
returns: The modified [message](/docs/api-reference/threads/messages/object) object.
3985+
returns: The modified [message](/docs/api-reference/messages/object) object.
39843986
examples:
39853987
request:
39863988
curl: |
@@ -7669,7 +7671,7 @@ components:
76697671
description: The text contents of the message.
76707672
title: Text content
76717673
- type: array
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-4-visual-preview` model.
7674+
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.
76737675
title: Array of content parts
76747676
items:
76757677
$ref: "#/components/schemas/ChatCompletionRequestMessageContentPart"
@@ -8901,7 +8903,6 @@ components:
89018903
description: |
89028904
The name of the file to upload.
89038905
type: string
8904-
format: binary
89058906
purpose:
89068907
description: |
89078908
The intended purpose of the uploaded file.
@@ -8933,7 +8934,7 @@ components:
89338934
description: |
89348935
The chunk of bytes for this Part.
89358936
type: string
8936-
# format: binary
8937+
format: binary
89378938
required:
89388939
- data
89398940

@@ -9643,7 +9644,7 @@ components:
96439644
description: The object type, which is always "upload".
96449645
enum: [upload]
96459646
file:
9646-
type: object
9647+
$ref: "#/components/schemas/OpenAIFile"
96479648
nullable: true
96489649
description: The ready File object after the Upload is completed.
96499650
required:

0 commit comments

Comments
 (0)