Skip to content

Commit

Permalink
feat: ParallelToolCalls to ChatCompletionRequest with helper functions (
Browse files Browse the repository at this point in the history
#787)

* added ParallelToolCalls to ChatCompletionRequest with helper functions

* added tests for coverage

* changed ParallelToolCalls to any
  • Loading branch information
structwafel authored Jul 12, 2024
1 parent 03851d2 commit 727944c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ type ChatCompletionRequest struct {
ToolChoice any `json:"tool_choice,omitempty"`
// Options for streaming response. Only set this when you set stream: true.
StreamOptions *StreamOptions `json:"stream_options,omitempty"`
// Disable the default behavior of parallel tool calls by setting it: false.
ParallelToolCalls any `json:"parallel_tool_calls,omitempty"`
}

type StreamOptions struct {
Expand Down

0 comments on commit 727944c

Please sign in to comment.