Skip to content

Tasks are not working with openai gpt-realtime model #4115

@kostyazgara

Description

@kostyazgara

Bug Description

I'm trying to use tasks and tasks groups with gpt-realtime model. In my application when tasks are running they just stuck and I can't event shut down the script.

Expected Behavior

Tasks and tasks group are executing normally without exceptions and freezing

Reproduction Steps

I tried to reproduce the error in one of agents examples. I reproduced the issue in my repository using one of livekit examples https://github.com/kostyazgara/doheny-surf-desk-realtime-issue. The only thing that I changed it's replaced stt and tts with `llm=openai.realtime.RealtimeModel(voice="alloy"),`. You can clone the repository, run `uv run agent.py console` and try to book a lesson to see that tasks are not working.

Operating System

MacOS

Models Used

gpt-realtime

Package Versions

"livekit-agents>=1.3.2",
"livekit-plugins-openai>=1.3.2",
"livekit-plugins-silero>=1.3.2",
"livekit-plugins-turn-detector>=1.3.2",
"livekit-plugins-noise-cancellation~=0.2.5",

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