-
Notifications
You must be signed in to change notification settings - Fork 752
Open
Description
when i request openai responses api using a tool which no Properties
i got this:
Responses API error: 400 {"error":{"message":"code: invalid_function_parameters; message: Invalid schema for function 'GetCurrentTime': In context=(), object schema missing properties.","type":"invalid_request_error","param":"tools[7].parameters","code":"-4003"}}
when properties is nil
// ToolArgumentsSchema represents a JSON Schema for tool arguments.
type ToolArgumentsSchema struct {
Defs map[string]anyjson:"$defs,omitempty"
Type stringjson:"type"
Properties map[string]anyjson:"properties,omitempty"
Required []stringjson:"required,omitempty"
}
the Properties json result str is empty
I wish is {} , not empty
danieldockicoderabbitai
Metadata
Metadata
Assignees
Labels
No labels