I’m getting an error when trying to define the function to return arrays of items. The documentation does not explain how this is done. Has anyone able to get Functions to return Array of items?
In context=(‘properties’, ‘RequestExamples’), array schema missing items"
2 Likes
Hey I asked this 2 days ago and got useful information that works, you can have a look here: Function Calling parameter types
the docs also mention using Json schema OpenAI Platform
in this example, it defines a parameter that is an array of strings
param1: {
type: "array",
items: {
type: "string",
},
},
6 Likes
Thanks, I saw that post but was confusing me a bit. The cool thing was when I asked ChatGPT it gave me the correct answer!
2 Likes