Skip to content

Commit c012b5c

Browse files
authored
Mark POST /completions prompt as a required param
Users almost always want to send this – they can always send null, empty string, or empty array if they really want an empty prompt.
1 parent 9ce9331 commit c012b5c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2244,6 +2244,7 @@ components:
22442244
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).
22452245
required:
22462246
- model
2247+
- prompt
22472248

22482249
CreateCompletionResponse:
22492250
type: object

0 commit comments

Comments
 (0)