Skip to content

Missing Instruction option in OpenAI Realtime #2273

@khantseithu

Description

@khantseithu

In previous 0.x version, we're allowed to configured instructions for openai realtime model.

model = openai.realtime.RealtimeModel(
                api_key=openai_api_key,
                model=config.model_name,
                voice=config.voice,
                temperature=config.temperature,
                # instructions=config.instructions, (this is missing)
                input_audio_transcription=InputAudioTranscription(
                    language='en',
                    model='gpt-4o-mini-transcribe',
                    prompt=combined_instructions # voice vibe does not work with this
                )
            )

My main problem is we've a feature called voice vibe using https://www.openai.fm/ which works by passing along to the system prompt. The instructions in AgentSession, Agent class doesn't work for voice vibe either. I noticed google.realtime.RealtimeModel has instruction field to be configurable, can we bring back instruction field to openai realtime as well.

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