Skip to content

Commit

Permalink
Merge pull request openai#65 from rattrayalex/rattrayalex-patch-1
Browse files Browse the repository at this point in the history
Mark ChatCompletionResponseMessage `content` and `function_call.{name,arguments}` as required
  • Loading branch information
athyuttamre committed Aug 10, 2023
2 parents ec0b395 + 1dcf661 commit 20bf20f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1957,8 +1957,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

0 comments on commit 20bf20f

Please sign in to comment.