class

OpenAI::RealtimeCreateClientSecretRequest

Inherits JSON::Serializable < Reference < Object

Create a session and client secret for the Realtime API. The request can specify either a realtime or a transcription session configuration. Learn more about the Realtime API.

Constructors

new(expires_after : RealtimeCreateClientSecretRequestExpiresAfter | Nil = nil, session : RealtimeCreateClientSecretRequestSession | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

expires_after

Configuration for the client secret expiration. Expiration refers to the time after which a client secret will no longer be valid for creating sessions. The session itself may continue after that time once started. A secret can be used to create multiple sessions until it expires.

Source
expires_after=(expires_after : RealtimeCreateClientSecretRequestExpiresAfter | Nil)

Configuration for the client secret expiration. Expiration refers to the time after which a client secret will no longer be valid for creating sessions. The session itself may continue after that time once started. A secret can be used to create multiple sessions until it expires.

Source
session

Session configuration to use for the client secret. Choose either a realtime session or a transcription session.

Source
session=(session : RealtimeCreateClientSecretRequestSession | Nil)

Session configuration to use for the client secret. Choose either a realtime session or a transcription session.

Source