diff --git a/openapi.yaml b/openapi.yaml index 14335596..3dbe32a5 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -445,7 +445,7 @@ paths: "total_tokens": 99 } } - + /completions: post: operationId: createCompletion @@ -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: | @@ -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: | @@ -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: | @@ -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 } @@ -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: | @@ -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: |- @@ -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) @@ -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" } ) @@ -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) @@ -4910,8 +4910,8 @@ paths: async function main() { const myAssistantFile = await openai.beta.assistants.files.create( - "asst_abc123", - { + "asst_abc123", + { file_id: "file-abc123" } ); @@ -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 @@ -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. @@ -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: @@ -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 @@ -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 @@ -8335,7 +8335,7 @@ components: - id - type - function - + CreateThreadAndRunRequest: type: object additionalProperties: false