Hey guys,
I added a tool in the Realtime API beta console that calls an external API for a request, but that call takes some time so I am looking to stream the response. I looked into it and I saw that when functions are called in the Realtime API beta, they use a “conversation.item.create” with the “function_call_output” type, but I’m unsure how I can make send those requests properly. I did manage to partially send one, but I recieve an error about either a missing or incorrect call_id that is not in the conversation history. I’m unsure how I can get a call_id to send the “conversation.item.create” requests. I looked more into the documentation, but I saw that OpenAI’s method doesn’t work for the Realtime-API-beta. Essentially, I want to inject my own “function_call_output” into the conversation.
Thanks!