Skip to content

Gpt-realtime Model with_azure function - API version 2025-08-08 #4719

@michael-wimmer-mw

Description

@michael-wimmer-mw

Bug Description

Hi,

we currently try to migrate the api version for the azure gpt realtime model to version 2025-08-08 as the 2024-10-01-preview is announced to be retired on end of april 2026.
From the documentation
RealtimeModel documentation

I can see that objects for input_audio_transcription have changed from
openai.types.beta.realtime.session.InputAudioTranscription (API-Version 2024-10-01)
to
openai.types.realtime.AudioTranscription (API-Version 2025-08-08).

However, in the code I can see that only the object InputAudioTranscription is accepted by the with_azure function

Github realtime_model.py

A similar behaviour can be found for turn_detection.
The model cannot be instantiated with the new objects but api-version 2025-08-08 does not work with the old objects as well.

Is there a fix planned or are there any known workarounds for this?

Thank you

Expected Behavior

Realtime Model can be instantiated with api version 2025-08-08 as described in the documentation

Reproduction Steps

1. 
2.
3.
...
- Sample code snippet, or a GitHub Gist link -

Operating System

Unix

Models Used

No response

Package Versions

livekit-agents==1.3.12

Session/Room/Call IDs

No response

Proposed Solution

Additional Context

No response

Screenshots and Recordings

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions