class

OpenAI::ChatCompletionRequestSystemMessage

Inherits JSON::Serializable < Reference < Object

Developer-provided instructions that the model should follow, regardless of messages sent by the user. With o1 models and newer, use developer messages for this purpose instead.

Constructors

new(content : ChatCompletionRequestSystemMessageContent = "", role : ChatCompletionRequestSystemMessageRole = ChatCompletionRequestSystemMessageRole::System, name : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content

The contents of the system message.

Source
content=(content : ChatCompletionRequestSystemMessageContent)

The contents of the system message.

Source
name

An optional name for the participant. Provides the model information to differentiate between participants of the same role.

Source
name=(name : String | Nil)

An optional name for the participant. Provides the model information to differentiate between participants of the same role.

Source
role

The role of the messages author, in this case system.

Source
role=(role : ChatCompletionRequestSystemMessageRole)

The role of the messages author, in this case system.

Source