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(pull : JSON::PullParser)
Sourcenew(content : ChatCompletionRequestDeveloperMessageContent = "", role : ChatCompletionRequestDeveloperMessageRole = ChatCompletionRequestDeveloperMessageRole::Developer, name : String | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
content=(content : ChatCompletionRequestDeveloperMessageContent)
The contents of the developer 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 : ChatCompletionRequestDeveloperMessageRole)
The role of the messages author, in this case developer.