Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/openai/resources/mod.ts>ChatCompletionUserMessageParam

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
interface ChatCompletionUserMessageParam
import { type ChatCompletionUserMessageParam } from "https://deno.land/x/openai@v4.38.5/resources/mod.ts";

Properties

content: string | Array<ChatCompletionContentPart>

The contents of the user message.

role: "user"

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

optional
name: string

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