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

Use anyOf for enums with suggested values #54

Merged
merged 1 commit into from
Jun 28, 2023
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
16 changes: 8 additions & 8 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1634,7 +1634,7 @@ components:
model:
description: &model_description |
ID of the model to use. You can use the [List models](/docs/api-reference/models/list) API to see all of your available models, or see our [Model overview](/docs/models/overview) for descriptions of them.
oneOf:
anyOf:
- type: string
- type: string
enum: ["text-davinci-003","text-davinci-002","text-davinci-001","code-davinci-002","text-curie-001","text-babbage-001","text-ada-001"]
Expand Down Expand Up @@ -1979,7 +1979,7 @@ components:
model:
description: ID of the model to use. See the [model endpoint compatibility](/docs/models/model-endpoint-compatibility) table for details on which models work with the Chat API.
example: "gpt-3.5-turbo"
oneOf:
anyOf:
- type: string
- type: string
enum: ["gpt-4","gpt-4-0314","gpt-4-0613","gpt-4-32k","gpt-4-32k-0314","gpt-4-32k-0613","gpt-3.5-turbo","gpt-3.5-turbo-16k","gpt-3.5-turbo-0301","gpt-3.5-turbo-0613","gpt-3.5-turbo-16k-0613"]
Expand Down Expand Up @@ -2165,7 +2165,7 @@ components:
description: ID of the model to use. You can use the `text-davinci-edit-001` or `code-davinci-edit-001` model with this endpoint.
type: string
example: "text-davinci-edit-001"
oneOf:
anyOf:
- type: string
- type: string
enum: ["text-davinci-edit-001","code-davinci-edit-001"]
Expand Down Expand Up @@ -2377,7 +2377,7 @@ components:
nullable: false
default: "text-moderation-latest"
example: "text-moderation-stable"
oneOf:
anyOf:
- type: string
- type: string
enum: ["text-moderation-latest","text-moderation-stable"]
Expand Down Expand Up @@ -2548,7 +2548,7 @@ components:
default: "curie"
example: "curie"
nullable: true
oneOf:
anyOf:
- type: string
- type: string
enum: ["ada","babbage","curie","davinci"]
Expand Down Expand Up @@ -2690,7 +2690,7 @@ components:
model:
description: *model_description
example: "text-embedding-ada-002"
oneOf:
anyOf:
- type: string
- type: string
enum: ["text-embedding-ada-002"]
Expand Down Expand Up @@ -2779,7 +2779,7 @@ components:
description: |
ID of the model to use. Only `whisper-1` is currently available.
example: whisper-1
oneOf:
anyOf:
- type: string
- type: string
enum: ["whisper-1"]
Expand Down Expand Up @@ -2828,7 +2828,7 @@ components:
description: |
ID of the model to use. Only `whisper-1` is currently available.
example: whisper-1
oneOf:
anyOf:
- type: string
- type: string
enum: ["whisper-1"]
Expand Down