CreateChatCompletionRequestMessage: {
    role:
        | "function"
        | "user"
        | "system"
        | "tool"
        | "assistant";
    content?:
        | undefined
        | null
        | string
        | (ChatCompletionContentPartText | ChatCompletionContentPartRefusal)[]
        | ChatCompletionContentPartText[]
        | ChatCompletionContentPart[];
}

Type declaration

ChatCompletionMessageParam should be used instead