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(pull : JSON::PullParser)
Sourcenew(content : ChatCompletionRequestSystemMessageContent = "", role : ChatCompletionRequestSystemMessageRole = ChatCompletionRequestSystemMessageRole::System, name : String | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
content=(content : ChatCompletionRequestSystemMessageContent)
The contents of the system message.
name
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
An optional name for the participant. Provides the model information to differentiate between participants of the same role.
role=(role : ChatCompletionRequestSystemMessageRole)
The role of the messages author, in this case system.