Skip to content

Commit

Permalink
Mark ChatCompletionResponseMessage content and function_call.{name,ar…
Browse files Browse the repository at this point in the history
…guments} as required
  • Loading branch information
rattrayalex committed Aug 12, 2023
1 parent 1b45e10 commit 3885c28
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ paths:
curl https://api.openai.com/v1/files/file-XjGxS3KTG0uNmNOK362iJua3 \
-H "Authorization: Bearer $OPENAI_API_KEY"
python: |
import os
import os
import openai
openai.api_key = os.getenv("OPENAI_API_KEY")
openai.File.retrieve("file-XjGxS3KTG0uNmNOK362iJua3")
Expand Down Expand Up @@ -2084,8 +2084,12 @@ components:
arguments:
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.
required:
- name
- arguments
required:
- role
- content

ChatCompletionStreamResponseDelta:
type: object
Expand Down Expand Up @@ -3204,7 +3208,7 @@ components:
n_epochs:
type: integer
description: |
The number of epochs to train the model for. An epoch refers to one
The number of epochs to train the model for. An epoch refers to one
full cycle through the training dataset.
batch_size:
type: integer
Expand Down Expand Up @@ -3370,7 +3374,7 @@ x-oaiMeta:
- id: completions
title: Completions
description: |
Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position.
Given a prompt, the model will return one or more predicted completions, and can also return the probabilities of alternative tokens at each position.
Note: We recommend most users use our Chat Completions API. [Learn more](/docs/deprecations/2023-07-06-gpt-and-embeddings)
sections:
- type: object
Expand Down

0 comments on commit 3885c28

Please sign in to comment.