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" }
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" }