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

Fix anyOf enum incompatibility with csharp client generators. #57

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/master' into any-enum-fix
# Conflicts:
#	openapi.yaml
  • Loading branch information
bobend committed Jul 11, 2023
commit a65d3fa53b087d2229714476a286085a53c3d66a
10 changes: 9 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1640,6 +1640,7 @@ components:
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.
type: string
enum: ["text-davinci-003","text-davinci-002","text-davinci-001","code-davinci-002","text-curie-001","text-babbage-001","text-ada-001"]
x-oaiTypeLabel: string
prompt:
description: &completions_prompt_description |
The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.
Expand Down Expand Up @@ -1987,6 +1988,7 @@ components:
example: "gpt-3.5-turbo"
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"]
x-oaiTypeLabel: string
messages:
description: A list of messages comprising the conversation so far. [Example Python code](https://github.com/openai/openai-cookbook/blob/main/examples/How_to_format_inputs_to_ChatGPT_models.ipynb).
type: array
Expand Down Expand Up @@ -2168,10 +2170,11 @@ components:
type: object
properties:
model:
description: ID of the model to use. You can use the `text-davinci-edit-001` or `code-davinci-edit-001` model with this endpoint.
description: ID of the model to use. You can use the `text-davinci-edit-001` or `code-davinci-edit-001` model with this endpoint.
example: "text-davinci-edit-001"
type: string
enum: ["text-davinci-edit-001","code-davinci-edit-001"]
x-oaiTypeLabel: string
input:
description:
The input text to use as a starting point for the edit.
Expand Down Expand Up @@ -2384,6 +2387,7 @@ components:
example: "text-moderation-stable"
type: string
enum: ["text-moderation-latest","text-moderation-stable"]
x-oaiTypeLabel: string
required:
- input

Expand Down Expand Up @@ -2553,6 +2557,7 @@ components:
nullable: true
type: string
enum: ["ada","babbage","curie","davinci"]
x-oaiTypeLabel: string
n_epochs:
description: |
The number of epochs to train the model for. An epoch refers to one
Expand Down Expand Up @@ -2693,6 +2698,7 @@ components:
example: "text-embedding-ada-002"
type: string
enum: ["text-embedding-ada-002"]
x-oaiTypeLabel: string
input:
description: |
Input text to embed, encoded as a string or array of tokens. To embed multiple inputs in a single request, pass an array of strings or array of token arrays. Each input must not exceed the max input tokens for the model (8191 tokens for `text-embedding-ada-002`). [Example Python code](https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb) for counting tokens.
Expand Down Expand Up @@ -2780,6 +2786,7 @@ components:
example: whisper-1
type: string
enum: ["whisper-1"]
x-oaiTypeLabel: string
prompt:
description: |
An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should match the audio language.
Expand Down Expand Up @@ -2827,6 +2834,7 @@ components:
example: whisper-1
type: string
enum: ["whisper-1"]
x-oaiTypeLabel: string
prompt:
description: |
An optional text to guide the model's style or continue a previous audio segment. The [prompt](/docs/guides/speech-to-text/prompting) should be in English.
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.