When I use the Java API provided by Azure at GitHub - Azure-Samples/aoai-realtime-audio-sdk: Azure OpenAI code resources for using gpt-4o-realtime capabilities. with the VAD mode, after a session runs for a while, OpenAI returns the following error: {“az.sdk.message”:“”,“exception”:“content length exceeded 65536 bytes.”}. Do you know what might be causing this?
1 Like
I found the issue, the library uses netty websockets and it has a constant of 65536 for the max size of the messages over the websocket. But sometimes the responses from the model exceed that limit which causes an error. I temporarily fixed it locally by forking the original azure-sdk-for-java and making a local build of the realtime api java sdk with the value increased.