Skip to content

Commit

Permalink
Mark tool_choice.{type,function} as required
Browse files Browse the repository at this point in the history
Fixes openai/openai-node#521

Current API behavior is to throw if `type: function` is not provided, my assumption is that `function` is also required.

cc @athyuttamre
  • Loading branch information
rattrayalex authored Nov 22, 2023
1 parent a7a0b63 commit 97ecc78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5823,6 +5823,9 @@ components:
description: The name of the function to call.
required:
- name
required:
- type
- function

ChatCompletionMessageToolCalls:
type: array
Expand Down

0 comments on commit 97ecc78

Please sign in to comment.