Skip to content

Commit

Permalink
Fix ChatCompletionRequestFunctionMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
athyuttamre committed Dec 11, 2023
1 parent 23a4b18 commit 3400918
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ paths:
"total_tokens": 99
}
}

/completions:
post:
operationId: createCompletion
Expand Down Expand Up @@ -1057,7 +1057,7 @@ paths:
audio_file = open("speech.mp3", "rb")
transcript = client.audio.transcriptions.create(
model="whisper-1",
model="whisper-1",
file=audio_file
)
node: |
Expand Down Expand Up @@ -1115,7 +1115,7 @@ paths:
audio_file = open("speech.mp3", "rb")
transcript = client.audio.translations.create(
model="whisper-1",
model="whisper-1",
file=audio_file
)
node: |
Expand Down Expand Up @@ -1467,7 +1467,7 @@ paths:
client = OpenAI()
client.fine_tuning.jobs.create(
training_file="file-abc123",
training_file="file-abc123",
model="gpt-3.5-turbo"
)
node.js: |
Expand Down Expand Up @@ -1515,8 +1515,8 @@ paths:
client = OpenAI()
client.fine_tuning.jobs.create(
training_file="file-abc123",
model="gpt-3.5-turbo",
training_file="file-abc123",
model="gpt-3.5-turbo",
hyperparameters={
"n_epochs":2
}
Expand Down Expand Up @@ -1567,8 +1567,8 @@ paths:
client = OpenAI()
client.fine_tuning.jobs.create(
training_file="file-abc123",
validation_file="file-def456",
training_file="file-abc123",
validation_file="file-def456",
model="gpt-3.5-turbo"
)
node.js: |
Expand Down Expand Up @@ -1789,7 +1789,7 @@ paths:
client = OpenAI()
client.fine_tuning.jobs.list_events(
fine_tuning_job_id="ftjob-abc123",
fine_tuning_job_id="ftjob-abc123",
limit=2
)
node.js: |-
Expand Down Expand Up @@ -1937,7 +1937,7 @@ paths:
client = OpenAI()
fine_tune = client.fine_tunes.create(
training_file="file-abc123",
training_file="file-abc123",
model="davinci"
}
print(fine_tune)
Expand Down Expand Up @@ -3331,9 +3331,9 @@ paths:
client = OpenAI()
my_updated_thread = client.beta.threads.update(
"thread_abc123",
"thread_abc123",
metadata={
"modified": "true",
"modified": "true",
"user": "abc123"
}
)
Expand Down Expand Up @@ -4900,7 +4900,7 @@ paths:
client = OpenAI()
assistant_file = client.beta.assistants.files.create(
assistant_id="asst_abc123",
assistant_id="asst_abc123",
file_id="file-abc123"
)
print(assistant_file)
Expand All @@ -4910,8 +4910,8 @@ paths:
async function main() {
const myAssistantFile = await openai.beta.assistants.files.create(
"asst_abc123",
{
"asst_abc123",
{
file_id: "file-abc123"
}
);
Expand Down Expand Up @@ -5771,16 +5771,16 @@ components:
type: string
enum: ["function"]
description: The role of the messages author, in this case `function`.
arguments:
content:
type: string
description: The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
description: The contents of the function message.
name:
type: string
description: The name of the function to call.
required:
- role
- arguments
- content
- name

FunctionParameters:
type: object
Expand Down Expand Up @@ -6083,7 +6083,7 @@ components:
response_format:
type: object
description: |
An object specifying the format that the model must output.
An object specifying the format that the model must output.
Setting to `{ "type": "json_object" }` enables JSON mode, which guarantees the message the model generates is valid JSON.
Expand All @@ -6101,7 +6101,7 @@ components:
maximum: 9223372036854775807
nullable: true
description: |
This feature is in Beta.
This feature is in Beta.
If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same `seed` and parameters should return the same result.
Determinism is not guaranteed, and you should refer to the `system_fingerprint` response parameter to monitor changes in the backend.
x-oaiMeta:
Expand Down Expand Up @@ -6905,7 +6905,7 @@ components:
default: auto
n_epochs:
description: |
The number of epochs to train the model for. An epoch refers to one full cycle
The number of epochs to train the model for. An epoch refers to one full cycle
through the training dataset.
oneOf:
- type: string
Expand Down Expand Up @@ -8306,7 +8306,7 @@ components:
description: The output of the tool call to be submitted to continue the run.
required:
- tool_outputs

RunToolCallObject:
type: object
description: Tool call objects
Expand Down Expand Up @@ -8335,7 +8335,7 @@ components:
- id
- type
- function

CreateThreadAndRunRequest:
type: object
additionalProperties: false
Expand Down

0 comments on commit 3400918

Please sign in to comment.