interface ChatCompletionUserMessageParam {
    content: string | ChatCompletionContentPart[];
    name?: string;
    role: "user";
}

Properties

Properties

content: string | ChatCompletionContentPart[]

The contents of the user message.

name?: string

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

role: "user"

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