class

OpenAI::RealtimeCreateClientSecretRequestExpiresAfter

Inherits JSON::Serializable < Reference < Object

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.

Constructors

new(anchor : RealtimeCreateClientSecretRequestExpiresAfterAnchor | Nil = nil, seconds : Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

anchor

The anchor point for the client secret expiration, meaning that seconds will be added to the created_at time of the client secret to produce an expiration timestamp. Only created_at is currently supported.

Source
anchor=(anchor : RealtimeCreateClientSecretRequestExpiresAfterAnchor | Nil)

The anchor point for the client secret expiration, meaning that seconds will be added to the created_at time of the client secret to produce an expiration timestamp. Only created_at is currently supported.

Source
seconds

The number of seconds from the anchor point to the expiration. Select a value between 10 and 7200 (2 hours). This default to 600 seconds (10 minutes) if not specified.

Source
seconds=(seconds : Int64 | Nil)

The number of seconds from the anchor point to the expiration. Select a value between 10 and 7200 (2 hours). This default to 600 seconds (10 minutes) if not specified.

Source