BaseEventLoop.create_connection() got an unexpected keyword argument 'additional_headers'

We are getting this weird error when we use agent SDK and VoicePipeline:

openai.agents stream: Error processing output: BaseEventLoop.create_connection() got an unexpected keyword argument ‘additional_headers’

What might be the cause?

Our code is very simple:

        system_message = """
        You are a helpful voice assistant that answers phone calls.
        Your job is to be helpful, friendly, and concise in your responses.
        If you don't know something, be honest about it.
        Keep your responses brief since this is a phone conversation.
        """
        self.agent = Agent(
            name="eva_twilio_agent",
            model="gpt-4o-mini",
            instructions=system_message
        )
        # Create a voice workflow with default stt and tts models
        voice_workflow = SingleAgentVoiceWorkflow(
            agent=self.agent,
        )

        # Create the voice pipeline with the workflow
        self.voice_pipeline = VoicePipeline(workflow=voice_workflow)

        # Create the streamed audio input
        self.streamed_audio_input = StreamedAudioInput()

Then we create a separate task:
async def _process_voice_conversation(self):
“”"
Process the voice conversation using the correct flow:
Twilio audio → STT → Agent/LLM → TTS → Twilio audio
“”"
logger.info(“>>>>>Starting voice processing task”)
try:
# Run the voice pipeline with the streamed audio input
result = await self.voice_pipeline.run(self.streamed_audio_input)

When the service starts:
# Start the voice processing task
self.processing_task = asyncio.create_task(self._process_voice_conversation())