Skip to content

Commit

Permalink
Sync openapi spec (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
awbraunstein authored Jan 25, 2024
1 parent 14cdf21 commit 97dfb59
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5791,6 +5791,8 @@ components:
- type: string
enum:
[
"gpt-4-0125-preview",
"gpt-4-turbo-preview",
"gpt-4-1106-preview",
"gpt-4-vision-preview",
"gpt-4",
Expand Down Expand Up @@ -5861,7 +5863,7 @@ components:
response_format:
type: object
description: |
An object specifying the format that the model must output. Compatible with `gpt-4-1106-preview` and `gpt-3.5-turbo-1106`.
An object specifying the format that the model must output. Compatible with [GPT-4 Turbo](/docs/models/gpt-4-and-gpt-4-turbo) and `gpt-3.5-turbo-1106`.
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the message the model generates is valid JSON.
Expand Down Expand Up @@ -6738,18 +6740,23 @@ components:
x-oaiExpandable: true
model:
description: *model_description
example: "text-embedding-ada-002"
example: "text-embedding-3-small"
anyOf:
- type: string
- type: string
enum: ["text-embedding-ada-002"]
enum: ["text-embedding-ada-002", "text-embedding-3-small", "text-embedding-3-large"]
x-oaiTypeLabel: string
encoding_format:
description: "The format to return the embeddings in. Can be either `float` or [`base64`](https://pypi.org/project/pybase64/)."
example: "float"
default: "float"
type: string
enum: ["float", "base64"]
dimensions:
description: |
The number of dimensions the resulting output embeddings should have. Only supported in `text-embedding-3` and later models.
type: integer
minimum: 1
user: *end_user_param_configuration
required:
- model
Expand Down

0 comments on commit 97dfb59

Please sign in to comment.