Migration guide from Beta
Migrate from Beta OpenAI client in Voximplant.
If you are using the deprecated OpenAI realtime client in your application, this guide will help you to migrate to the newest version of the realtime client.
Follow the steps below to migrate to the GA version:
Beta namespace for the GA RealtimeAPI Client. For example, OpenAI.Beta.functionName becomes OpenAI.functionName, the same for events, etc.RealtimeAPIClient methods related to the API communication (sessionUpdate, responseCreate, conversationItemCreate, etc.) expect parameters to be a full object as it is described in the OpenAI Realtime API reference, except the "type" field on the top level, which is determined by the method name itself.For example, in the Beta Client sessionUpdate was called in the following manner:
In the GA Client sessionUpdate is called as follows:
input_audio_buffer.speech_started event is received from OpenAI’s server VAD: