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

Sync openapi spec #179

Merged
merged 1 commit into from
Jan 25, 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
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
Loading