class

OpenAI::HistoryParam

Inherits JSON::Serializable < Reference < Object

Controls how much historical context is retained for the session.

Constructors

new(enabled : Bool | Nil = nil, recent_threads : Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

enabled

Enables chat users to access previous ChatKit threads. Defaults to true.

Source
enabled=(enabled : Bool | Nil)

Enables chat users to access previous ChatKit threads. Defaults to true.

Source
recent_threads

Number of recent ChatKit threads users have access to. Defaults to unlimited when unset.

Source
recent_threads=(recent_threads : Int64 | Nil)

Number of recent ChatKit threads users have access to. Defaults to unlimited when unset.

Source