I am wondering why there is a discrepancy between the json schema format required for function calling in the Chat Completion API and the Realtime API.
Chat completion function calling json format:
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Retrieves current weather for the given location.",
"parameters": {...},
"strict": true
}
}
{
"type": "function",
"name": "generate_horoscope",
"description": "Give today's horoscope for an astrological sign.",
"parameters": {...}
}
This is quite inconvenient when we want to interchange between the models.
Thank you in advance for your replies!