class

OpenAI::ExpiresAfterParam

Inherits JSON::Serializable < Reference < Object

Controls when the session expires relative to an anchor timestamp.

Constructors

new(anchor : ExpiresAfterParamAnchor = ExpiresAfterParamAnchor::CreatedAt, seconds : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

anchor

Base timestamp used to calculate expiration. Currently fixed to created_at.

Source
anchor=(anchor : ExpiresAfterParamAnchor)

Base timestamp used to calculate expiration. Currently fixed to created_at.

Source
seconds

Number of seconds after the anchor when the session expires.

Source
seconds=(seconds : Int64)

Number of seconds after the anchor when the session expires.

Source
validate!
Source