You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
anyOf is allowed in tools schemas for OpenAI, but is parsed as being invalid in playground.
Schema:
{
"type": "function",
"function": {
"name": "create_booking",
"description": "Creates a booking on the user's behalf",
"parameters": {
"type": "object",
"properties": {
"place_id": {
"type": "string",
"description": "The ID of the place to create a booking for"
},
"booking_details": {
"anyOf": [
{
"type": "object",
"description": "Restaurant booking with specific date and time",
"properties": {
"date": {
"type": "string",
"description": "The date of the booking, in format YYYY-MM-DD"
},
"time": {
"type": "string",
"description": "The time of the booking, in format HH:MM"
}
},
"required": ["date", "time"]
},
{
"type": "object",
"description": "Hotel booking with specific check-in and check-out dates",
"properties": {
"check_in": {
"type": "string",
"description": "The check-in date of the booking, in format YYYY-MM-DD"
},
"check_out": {
"type": "string",
"description": "The check-out date of the booking, in format YYYY-MM-DD"
}
},
"required": ["check_in", "check_out"]
}
]
}
},
"required": ["place_id", "booking_details"],
"additionalProperties": false
}
}
}
Example question:
Book a table at place ID '12345' for January 15, 2025, at 7:00 PM.
The text was updated successfully, but these errors were encountered:
axiomofjoy
changed the title
[playground][ui] tool schemas containing anyOf are parsed as invalid
[playground][ui] openai tool schemas containing anyOf are parsed as invalid
Jan 7, 2025
anyOf
is allowed in tools schemas for OpenAI, but is parsed as being invalid in playground.Schema:
Example question:
The text was updated successfully, but these errors were encountered: