Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Hang committed Jul 18, 2024
1 parent 60afe06 commit d101684
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ paths:
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"model": "gpt-3.5-turbo-0125",
"model": "gpt-4o-mini",
"system_fingerprint": "fp_44709d6fcb",
"choices": [{
"index": 0,
Expand Down Expand Up @@ -216,7 +216,7 @@ paths:
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"model": "gpt-3.5-turbo-0125",
"model": "gpt-4o-mini",
"system_fingerprint": "fp_44709d6fcb",
"choices": [{
"index": 0,
Expand Down Expand Up @@ -291,13 +291,13 @@ paths:

main();
response: &chat_completion_chunk_example |
{"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}]}
{"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}]}

{"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}]}
{"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}]}

....

{"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"}]}
{"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"}]}
- title: Functions
request:
curl: |
Expand Down Expand Up @@ -414,7 +414,7 @@ paths:
"id": "chatcmpl-abc123",
"object": "chat.completion",
"created": 1699896916,
"model": "gpt-3.5-turbo-0125",
"model": "gpt-4o-mini",
"choices": [
{
"index": 0,
Expand Down Expand Up @@ -496,7 +496,7 @@ paths:
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1702685778,
"model": "gpt-3.5-turbo-0125",
"model": "gpt-4o-mini",
"choices": [
{
"index": 0,
Expand Down Expand Up @@ -1777,7 +1777,7 @@ paths:
"expires_at": 1719127296
}

/uploads/{upload_id}/part:
/uploads/{upload_id}/parts:
post:
operationId: addUploadPart
tags:
Expand Down Expand Up @@ -1833,7 +1833,9 @@ paths:
tags:
- Uploads
summary: |
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.
Completes the [Upload](/docs/api-reference/uploads/object).

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.

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

Expand Down Expand Up @@ -3892,7 +3894,7 @@ paths:
name: Retrieve message
group: threads
beta: true
returns: The [message](/docs/api-reference/threads/messages/object) object matching the specified ID.
returns: The [message](/docs/api-reference/messages/object) object matching the specified ID.
examples:
request:
curl: |
Expand Down Expand Up @@ -3980,7 +3982,7 @@ paths:
name: Modify message
group: threads
beta: true
returns: The modified [message](/docs/api-reference/threads/messages/object) object.
returns: The modified [message](/docs/api-reference/messages/object) object.
examples:
request:
curl: |
Expand Down Expand Up @@ -7669,7 +7671,7 @@ components:
description: The text contents of the message.
title: Text content
- type: array
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.
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.
title: Array of content parts
items:
$ref: "#/components/schemas/ChatCompletionRequestMessageContentPart"
Expand Down Expand Up @@ -8901,7 +8903,6 @@ components:
description: |
The name of the file to upload.
type: string
format: binary
purpose:
description: |
The intended purpose of the uploaded file.
Expand Down Expand Up @@ -8933,7 +8934,7 @@ components:
description: |
The chunk of bytes for this Part.
type: string
# format: binary
format: binary
required:
- data

Expand Down Expand Up @@ -9643,7 +9644,7 @@ components:
description: The object type, which is always "upload".
enum: [upload]
file:
type: object
$ref: "#/components/schemas/OpenAIFile"
nullable: true
description: The ready File object after the Upload is completed.
required:
Expand Down

0 comments on commit d101684

Please sign in to comment.