Преглед на файлове

Merge pull request #1110 from wangr0031/fix_parallel_tool_calls

feat: chat/completion路由透传parallel_tool_calls参数
IcedTangerine преди 11 месеца
родител
ревизия
87540b4f7c
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      dto/openai_request.go

+ 1 - 0
dto/openai_request.go

@@ -43,6 +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"`
 	Tools            []ToolCallRequest `json:"tools,omitempty"`
 	ToolChoice       any               `json:"tool_choice,omitempty"`
 	User             string            `json:"user,omitempty"`