Skip to content

Commit

Permalink
Updates service_tier details (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang-openai committed Jul 19, 2024
1 parent 2f67be9 commit cd3c3fe
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 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 @@ -3894,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 @@ -3982,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 @@ -7671,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 @@ -8146,6 +8146,7 @@ components:
Specifies the latency tier to use for processing the request. This parameter is relevant for customers subscribed to the scale tier service:
- If set to 'auto', the system will utilize scale tier credits until they are exhausted.
- If set to 'default', the request will be processed using the default service tier with a lower uptime SLA and no latency guarentee.
- When not set, the default behavior is 'auto'.

When this parameter is set, the response body will include the `service_tier` utilized.
type: string
Expand Down Expand Up @@ -9648,7 +9649,6 @@ components:
nullable: true
description: The ready File object after the Upload is completed.
required:
- object
- bytes
- created_at
- expires_at
Expand Down Expand Up @@ -12933,9 +12933,10 @@ components:
description: One of `server_error` or `rate_limit_exceeded`.
enum:
[
"server_error",
"unsupported_file",
"invalid_file",
"internal_error",
"file_not_found",
"parsing_error",
"unhandled_mime_type",
]
message:
type: string
Expand Down

0 comments on commit cd3c3fe

Please sign in to comment.