Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Connect

live.sideband.connect(SidebandConnectParams**kwargs)
Function

Attach to an existing Live session. Do not send session.start again.

ParametersExpand Collapse
graceful_close: Optional[bool]

Opt in to the graceful WebSocket closing handshake when the session ends. The server may also enable this behavior by default.

Connect

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ.get("OPENAI_API_KEY"),  # This is the default and can be omitted
)
client.live.sideband.connect()
Returns Examples