feat: ParallelToolCalls to ChatCompletionRequest with helper functions (#787)

* added ParallelToolCalls to ChatCompletionRequest with helper functions

* added tests for coverage

* changed ParallelToolCalls to any
This commit is contained in:
Luca Giannini
2024-07-12 12:31:11 +02:00
committed by GitHub
parent 03851d2032
commit 727944c478

View File

@@ -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 {