Sfoglia il codice sorgente

fix: Change ParallelTooCalls from bool to *bool in GeneralOpenAIRequest for optional handling

CaIon 9 mesi fa
parent
commit
e01b517843
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      dto/openai_request.go

+ 1 - 1
dto/openai_request.go

@@ -43,7 +43,7 @@ type GeneralOpenAIRequest struct {
 	ResponseFormat   *ResponseFormat   `json:"response_format,omitempty"`
 	EncodingFormat   any               `json:"encoding_format,omitempty"`
 	Seed             float64           `json:"seed,omitempty"`
-	ParallelTooCalls bool              `json:"parallel_tool_calls,omitempty"`
+	ParallelTooCalls *bool             `json:"parallel_tool_calls,omitempty"`
 	Tools            []ToolCallRequest `json:"tools,omitempty"`
 	ToolChoice       any               `json:"tool_choice,omitempty"`
 	User             string            `json:"user,omitempty"`