Skip to content

Commit

Permalink
Mark ChatCompletionResponseMessage content and `function_call.{name…
Browse files Browse the repository at this point in the history
…,arguments}` as required

I'm not certain this is correct, but I don't think we've ever seen anything different. 

Doing this allows types to flow from a response into a request during a function call flow seamlessly; without this, it's quite a pain for the user.
  • Loading branch information
rattrayalex committed Aug 10, 2023
1 parent ec0b395 commit 1dcf661
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 1dcf661

Please sign in to comment.