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:
2
chat.go
2
chat.go
@@ -218,6 +218,8 @@ type ChatCompletionRequest struct {
|
|||||||
ToolChoice any `json:"tool_choice,omitempty"`
|
ToolChoice any `json:"tool_choice,omitempty"`
|
||||||
// Options for streaming response. Only set this when you set stream: true.
|
// Options for streaming response. Only set this when you set stream: true.
|
||||||
StreamOptions *StreamOptions `json:"stream_options,omitempty"`
|
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 {
|
type StreamOptions struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user