Skip to content

Commit 727944c

Browse files
authored
feat: ParallelToolCalls to ChatCompletionRequest with helper functions (#787)
* added ParallelToolCalls to ChatCompletionRequest with helper functions * added tests for coverage * changed ParallelToolCalls to any
1 parent 03851d2 commit 727944c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chat.go

+2
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ type ChatCompletionRequest struct {
218218
ToolChoice any `json:"tool_choice,omitempty"`
219219
// Options for streaming response. Only set this when you set stream: true.
220220
StreamOptions *StreamOptions `json:"stream_options,omitempty"`
221+
// Disable the default behavior of parallel tool calls by setting it: false.
222+
ParallelToolCalls any `json:"parallel_tool_calls,omitempty"`
221223
}
222224

223225
type StreamOptions struct {

0 commit comments

Comments
 (0)