Skip to content

Schema for functions 'update-workflow' and 'create-workflow' are missing items #5

@ibrofk

Description

@ibrofk

Invalid schema for function 'update-workflow': In context=('properties', 'workflow', 'properties', 'nodes'), array schema missing items.
this occurs for bot update and create workflows tools when connection to openai models
here how it was solved it
in the index.ts find
name: { type: "string" },
active: { type: "boolean" },
nodes: { type: "array" },
connections: { type: "object" },
settings: { type: "object" }
replaced with this
name: { type: "string" },
active: { type: "boolean" },
nodes: {
type: "array",
items: { type: "object" } // Specified that the array contains objects
},
connections: { type: "object" },
settings: { type: "object" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions