markbasinger here is the payload for your reference
{
"messages": [
{
"role": "user",
"content": "Find beachfront hotels in San Diego for less than $300 a month with free breakfast."
}
],
"function_call" : "auto",
"functions" : [
{
"name": "search_hotels",
"description": "Retrieves hotels from the search index based on the parameters provided",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The location of the hotel (i.e. Seattle, WA)"
},
"max_price": {
"type": "number",
"description": "The maximum price for the hotel"
},
"features": {
"type": "string",
"description": "A comma separated list of features (i.e. beachfront, free wifi, etc.)"
}
},
"required": ["location"]
}
}
]
}
Do note that there is some additional comma `required": ["location"],` in the original json which will needs to be removed - hopefully the author DerekLegenzoff will fix this. As this additional comma will not affect the python SDK however it will give the error for actual API calls (without any sdks) - I already raised and fixed that in the original docs in my PR