Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates service_tier details #296

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading