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.

interface ChatCompletionDeveloperMessageParam {
    content: string | ChatCompletionContentPartText[];
    name?: string;
    role: "developer";
}

Properties

Properties

content: string | ChatCompletionContentPartText[]

The contents of the developer message.

name?: string

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

role: "developer"

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