class

OpenAI::ChatCompletionRequestDeveloperMessage

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, developer messages replace the previous system messages.

Constructors

new(content : ChatCompletionRequestDeveloperMessageContent = "", role : ChatCompletionRequestDeveloperMessageRole = ChatCompletionRequestDeveloperMessageRole::Developer, name : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content

The contents of the developer message.

Source
content=(content : ChatCompletionRequestDeveloperMessageContent)

The contents of the developer 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 developer.

Source
role=(role : ChatCompletionRequestDeveloperMessageRole)

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

Source