ClientEvent: {
    event_id?: string;
} & ({
    session: SessionConfig;
    type: "session.start";
} | {
    session: {
        delegation: Delegation;
    };
    type: "session.update";
} | {
    audio: string;
    type: "session.input_audio.append";
} | {
    type: "session.input_audio.mute" | "session.input_audio.unmute" | "session.close" | "response.create";
} | {
    content: string;
    delegation_id: string | null;
    type: "session.instructions.append" | "session.thinking.append" | "session.commentary.append";
} | {
    item: OpenAI.Responses.ResponseInputItem;
    type: "response.item.create";
})

Commands sent to the GPT-Live WebSocket.

Type declaration

  • Optional event_id?: string