Skip to content

Commit

Permalink
Mark POST /completions prompt as a required param
Browse files Browse the repository at this point in the history
Users almost always want to send this – they can always send null, empty string, or empty array if they really want an empty prompt.
  • Loading branch information
rattrayalex committed Jun 14, 2023
1 parent 9ce9331 commit c012b5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2244,6 +2244,7 @@ components:
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](/docs/guides/safety-best-practices/end-user-ids).
required:
- model
- prompt

CreateCompletionResponse:
type: object
Expand Down

0 comments on commit c012b5c

Please sign in to comment.