diff --git a/dto/openai_request.go b/dto/openai_request.go index 0b8b5dc54..75b30b865 100644 --- a/dto/openai_request.go +++ b/dto/openai_request.go @@ -232,10 +232,13 @@ func (r *GeneralOpenAIRequest) GetSystemRoleName() string { return "system" } +const CustomType = "custom" + type ToolCallRequest struct { ID string `json:"id,omitempty"` Type string `json:"type"` - Function FunctionRequest `json:"function"` + Function FunctionRequest `json:"function,omitempty"` + Custom json.RawMessage `json:"custom,omitempty"` } type FunctionRequest struct {