Skip to content

bug: not support responses api #680

@CCpro10

Description

@CCpro10

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]any json:"$defs,omitempty"
Type string json:"type"
Properties map[string]any json:"properties,omitempty"
Required []string json:"required,omitempty"
}

the Properties json result str is empty

I wish is {} , not empty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions