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.

interface ChatCompletionSystemMessageParam {
    content: string | ChatCompletionContentPartText[];
    name?: string;
    role: "system";
}

Properties

Properties

content: string | ChatCompletionContentPartText[]

The contents of the system message.

name?: string

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

role: "system"

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