From 727944c47886924800128d1c33df706b4159eb23 Mon Sep 17 00:00:00 2001 From: Luca Giannini <68999840+LGXerxes@users.noreply.github.com> Date: Fri, 12 Jul 2024 12:31:11 +0200 Subject: [PATCH] feat: ParallelToolCalls to ChatCompletionRequest with helper functions (#787) * added ParallelToolCalls to ChatCompletionRequest with helper functions * added tests for coverage * changed ParallelToolCalls to any --- chat.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chat.go b/chat.go index a1eb11720..eb494f41f 100644 --- a/chat.go +++ b/chat.go @@ -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 {